Loading apex/permission/service/java/com/android/permission/persistence/IoUtils.java +2 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,8 @@ import android.annotation.NonNull; /** * Utility class for IO. * * @hide */ public class IoUtils { Loading cmds/statsd/src/atoms.proto +38 −1 Original line number Diff line number Diff line Loading @@ -444,6 +444,8 @@ message Atom { TvTunerStateChanged tv_tuner_state_changed = 276 [(module) = "framework"]; MediaOutputOpSwitchReported mediaoutput_op_switch_reported = 277 [(module) = "settings"]; CellBroadcastMessageFiltered cb_message_filtered = 278 [(module) = "cellbroadcast"]; // StatsdStats tracks platform atoms with ids upto 500. // Update StatsdStats::kMaxPushedAtomId when atom ids here approach that value. Loading Loading @@ -9134,8 +9136,10 @@ message IntegrityRulesPushed { /** * Logs when a cell broadcast message is received on the device. * * Logged from CellBroadcastService module: * Logged from Cell Broadcast module and platform: * packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ * packages/apps/CellBroadcastReceiver/ * frameworks/opt/telephony/src/java/com/android/internal/telephony/CellBroadcastServiceManager.java */ message CellBroadcastMessageReported { // The type of Cell Broadcast message Loading @@ -9146,8 +9150,40 @@ message CellBroadcastMessageReported { CDMA_SPC = 3; } // The parts of the cell broadcast message pipeline enum ReportSource { UNKNOWN_SOURCE = 0; FRAMEWORK = 1; CB_SERVICE = 2; CB_RECEIVER_APP = 3; } // GSM, CDMA, CDMA-SCP optional CbType type = 1; // The source of the report optional ReportSource source = 2; } /** * Logs when a cell broadcast message is filtered out, or otherwise intentionally not sent to CBR. * * Logged from CellBroadcastService module: * packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ */ message CellBroadcastMessageFiltered { enum FilterReason { NOT_FILTERED = 0; DUPLICATE_MESSAGE = 1; GEOFENCED_MESSAGE = 2; AREA_INFO_MESSAGE = 3; } // GSM, CDMA, CDMA-SCP optional CellBroadcastMessageReported.CbType type = 1; // The source of the report optional FilterReason filter = 2; } /** Loading @@ -9174,6 +9210,7 @@ message CellBroadcastMessageError { UNEXPECTED_GSM_MESSAGE_TYPE_FROM_FWK = 12; UNEXPECTED_CDMA_MESSAGE_TYPE_FROM_FWK = 13; UNEXPECTED_CDMA_SCP_MESSAGE_TYPE_FROM_FWK = 14; NO_CONNECTION_TO_CB_SERVICE = 15; } // What kind of error occurred Loading core/java/android/accessibilityservice/AccessibilityService.java +6 −0 Original line number Diff line number Diff line Loading @@ -520,6 +520,12 @@ public abstract class AccessibilityService extends Service { */ public static final int GLOBAL_ACTION_ACCESSIBILITY_SHORTCUT = 13; /** * Action to show Launcher's all apps. * @hide */ public static final int GLOBAL_ACTION_ACCESSIBILITY_ALL_APPS = 14; private static final String LOG_TAG = "AccessibilityService"; /** Loading core/java/android/content/pm/PackageInstaller.java +11 −1 Original line number Diff line number Diff line Loading @@ -1449,6 +1449,13 @@ public class PackageInstaller { /** {@hide} */ public static final int UID_UNKNOWN = -1; /** * This value is derived from the maximum file name length. No package above this limit * can ever be successfully installed on the device. * @hide */ public static final int MAX_PACKAGE_NAME_LENGTH = 255; /** {@hide} */ @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 115609023) public int mode = MODE_INVALID; Loading Loading @@ -1642,6 +1649,8 @@ public class PackageInstaller { /** * Optionally set a label representing the app being installed. * * This value will be trimmed to the first 1000 characters. */ public void setAppLabel(@Nullable CharSequence appLabel) { this.appLabel = (appLabel != null) ? appLabel.toString() : null; Loading Loading @@ -1711,7 +1720,8 @@ public class PackageInstaller { * * <p>Initially, all restricted permissions are whitelisted but you can change * which ones are whitelisted by calling this method or the corresponding ones * on the {@link PackageManager}. * on the {@link PackageManager}. Only soft or hard restricted permissions on the current * Android version are supported and any invalid entries will be removed. * * @see PackageManager#addWhitelistedRestrictedPermission(String, String, int) * @see PackageManager#removeWhitelistedRestrictedPermission(String, String, int) Loading core/java/android/content/pm/PackageItemInfo.java +10 −2 Original line number Diff line number Diff line Loading @@ -49,8 +49,16 @@ import java.util.Objects; * in the implementation of Parcelable in subclasses. */ public class PackageItemInfo { /** The maximum length of a safe label, in characters */ private static final int MAX_SAFE_LABEL_LENGTH = 50000; /** * The maximum length of a safe label, in characters * * TODO(b/157997155): It may make sense to expose this publicly so that apps can check for the * value and truncate the strings/use a different label, without having to hardcode and make * assumptions about the value. * @hide */ public static final int MAX_SAFE_LABEL_LENGTH = 1000; /** @hide */ public static final float DEFAULT_MAX_LABEL_SIZE_PX = 500f; Loading Loading
apex/permission/service/java/com/android/permission/persistence/IoUtils.java +2 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,8 @@ import android.annotation.NonNull; /** * Utility class for IO. * * @hide */ public class IoUtils { Loading
cmds/statsd/src/atoms.proto +38 −1 Original line number Diff line number Diff line Loading @@ -444,6 +444,8 @@ message Atom { TvTunerStateChanged tv_tuner_state_changed = 276 [(module) = "framework"]; MediaOutputOpSwitchReported mediaoutput_op_switch_reported = 277 [(module) = "settings"]; CellBroadcastMessageFiltered cb_message_filtered = 278 [(module) = "cellbroadcast"]; // StatsdStats tracks platform atoms with ids upto 500. // Update StatsdStats::kMaxPushedAtomId when atom ids here approach that value. Loading Loading @@ -9134,8 +9136,10 @@ message IntegrityRulesPushed { /** * Logs when a cell broadcast message is received on the device. * * Logged from CellBroadcastService module: * Logged from Cell Broadcast module and platform: * packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ * packages/apps/CellBroadcastReceiver/ * frameworks/opt/telephony/src/java/com/android/internal/telephony/CellBroadcastServiceManager.java */ message CellBroadcastMessageReported { // The type of Cell Broadcast message Loading @@ -9146,8 +9150,40 @@ message CellBroadcastMessageReported { CDMA_SPC = 3; } // The parts of the cell broadcast message pipeline enum ReportSource { UNKNOWN_SOURCE = 0; FRAMEWORK = 1; CB_SERVICE = 2; CB_RECEIVER_APP = 3; } // GSM, CDMA, CDMA-SCP optional CbType type = 1; // The source of the report optional ReportSource source = 2; } /** * Logs when a cell broadcast message is filtered out, or otherwise intentionally not sent to CBR. * * Logged from CellBroadcastService module: * packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ */ message CellBroadcastMessageFiltered { enum FilterReason { NOT_FILTERED = 0; DUPLICATE_MESSAGE = 1; GEOFENCED_MESSAGE = 2; AREA_INFO_MESSAGE = 3; } // GSM, CDMA, CDMA-SCP optional CellBroadcastMessageReported.CbType type = 1; // The source of the report optional FilterReason filter = 2; } /** Loading @@ -9174,6 +9210,7 @@ message CellBroadcastMessageError { UNEXPECTED_GSM_MESSAGE_TYPE_FROM_FWK = 12; UNEXPECTED_CDMA_MESSAGE_TYPE_FROM_FWK = 13; UNEXPECTED_CDMA_SCP_MESSAGE_TYPE_FROM_FWK = 14; NO_CONNECTION_TO_CB_SERVICE = 15; } // What kind of error occurred Loading
core/java/android/accessibilityservice/AccessibilityService.java +6 −0 Original line number Diff line number Diff line Loading @@ -520,6 +520,12 @@ public abstract class AccessibilityService extends Service { */ public static final int GLOBAL_ACTION_ACCESSIBILITY_SHORTCUT = 13; /** * Action to show Launcher's all apps. * @hide */ public static final int GLOBAL_ACTION_ACCESSIBILITY_ALL_APPS = 14; private static final String LOG_TAG = "AccessibilityService"; /** Loading
core/java/android/content/pm/PackageInstaller.java +11 −1 Original line number Diff line number Diff line Loading @@ -1449,6 +1449,13 @@ public class PackageInstaller { /** {@hide} */ public static final int UID_UNKNOWN = -1; /** * This value is derived from the maximum file name length. No package above this limit * can ever be successfully installed on the device. * @hide */ public static final int MAX_PACKAGE_NAME_LENGTH = 255; /** {@hide} */ @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 115609023) public int mode = MODE_INVALID; Loading Loading @@ -1642,6 +1649,8 @@ public class PackageInstaller { /** * Optionally set a label representing the app being installed. * * This value will be trimmed to the first 1000 characters. */ public void setAppLabel(@Nullable CharSequence appLabel) { this.appLabel = (appLabel != null) ? appLabel.toString() : null; Loading Loading @@ -1711,7 +1720,8 @@ public class PackageInstaller { * * <p>Initially, all restricted permissions are whitelisted but you can change * which ones are whitelisted by calling this method or the corresponding ones * on the {@link PackageManager}. * on the {@link PackageManager}. Only soft or hard restricted permissions on the current * Android version are supported and any invalid entries will be removed. * * @see PackageManager#addWhitelistedRestrictedPermission(String, String, int) * @see PackageManager#removeWhitelistedRestrictedPermission(String, String, int) Loading
core/java/android/content/pm/PackageItemInfo.java +10 −2 Original line number Diff line number Diff line Loading @@ -49,8 +49,16 @@ import java.util.Objects; * in the implementation of Parcelable in subclasses. */ public class PackageItemInfo { /** The maximum length of a safe label, in characters */ private static final int MAX_SAFE_LABEL_LENGTH = 50000; /** * The maximum length of a safe label, in characters * * TODO(b/157997155): It may make sense to expose this publicly so that apps can check for the * value and truncate the strings/use a different label, without having to hardcode and make * assumptions about the value. * @hide */ public static final int MAX_SAFE_LABEL_LENGTH = 1000; /** @hide */ public static final float DEFAULT_MAX_LABEL_SIZE_PX = 500f; Loading