/aosp14/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
H A D | BackupManagerMonitorEventSender.java | 93 Bundle extras) { in monitorEvent() argument 106 if (extras != null) { in monitorEvent() 185 if (extras == null) { in putMonitoringExtra() 186 extras = new Bundle(); in putMonitoringExtra() 189 return extras; in putMonitoringExtra() 202 if (extras == null) { in putMonitoringExtra() 206 return extras; in putMonitoringExtra() 219 if (extras == null) { in putMonitoringExtra() 223 return extras; in putMonitoringExtra() 236 if (extras == null) { in putMonitoringExtra() [all …]
|
/aosp14/frameworks/base/core/java/android/content/ |
H A D | SyncActivityTooManyDeletes.java | 50 Bundle extras = getIntent().getExtras(); in onCreate() local 51 if (extras == null) { in onCreate() 56 mNumDeletes = extras.getLong("numDeletes"); in onCreate() 58 mAuthority = extras.getString("authority"); in onCreate() 59 mProvider = extras.getString("provider"); in onCreate() 117 Bundle extras = new Bundle(); in startSyncReallyDelete() local 119 extras.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); in startSyncReallyDelete() 121 extras.putBoolean(ContentResolver.SYNC_EXTRAS_UPLOAD, true); in startSyncReallyDelete() 122 ContentResolver.requestSync(mAccount, mAuthority, extras); in startSyncReallyDelete() 126 Bundle extras = new Bundle(); in startSyncUndoDeletes() local [all …]
|
H A D | PeriodicSync.java | 36 public final Bundle extras; field in PeriodicSync 48 public PeriodicSync(Account account, String authority, Bundle extras, long periodInSeconds) { in PeriodicSync() argument 51 if (extras == null) { in PeriodicSync() 52 this.extras = new Bundle(); in PeriodicSync() 54 this.extras = new Bundle(extras); in PeriodicSync() 68 this.extras = new Bundle(other.extras); in PeriodicSync() 77 public PeriodicSync(Account account, String authority, Bundle extras, in PeriodicSync() argument 81 this.extras = new Bundle(extras); in PeriodicSync() 89 this.extras = in.readBundle(); in PeriodicSync() 103 dest.writeBundle(extras); in writeToParcel() [all …]
|
H A D | ContentProviderResult.java | 38 public final @Nullable Bundle extras; field in ContentProviderResult 49 public ContentProviderResult(@NonNull Bundle extras) { in ContentProviderResult() argument 50 this(null, null, Objects.requireNonNull(extras), null); in ContentProviderResult() 61 this.extras = extras; in ContentProviderResult() 77 extras = source.readBundle(); in ContentProviderResult() 79 extras = null; in ContentProviderResult() 92 extras = cpr.extras; in ContentProviderResult() 110 if (extras != null) { in writeToParcel() 112 dest.writeBundle(extras); in writeToParcel() 151 if (extras != null) { in toString() [all …]
|
/aosp14/frameworks/base/core/java/android/appwidget/ |
H A D | AppWidgetProvider.java | 67 Bundle extras = intent.getExtras(); in onReceive() local 68 if (extras != null) { in onReceive() 75 Bundle extras = intent.getExtras(); in onReceive() local 76 if (extras != null && extras.containsKey(AppWidgetManager.EXTRA_APPWIDGET_ID)) { in onReceive() 81 Bundle extras = intent.getExtras(); in onReceive() local 82 if (extras != null && extras.containsKey(AppWidgetManager.EXTRA_APPWIDGET_ID) in onReceive() 83 && extras.containsKey(AppWidgetManager.EXTRA_APPWIDGET_OPTIONS)) { in onReceive() 84 int appWidgetId = extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID); in onReceive() 94 Bundle extras = intent.getExtras(); in onReceive() local 95 if (extras != null) { in onReceive() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageRemovedInfo.java | 77 Bundle extras = new Bundle(2); in sendSystemPackageUpdatedBroadcastsInternal() local 79 extras.putBoolean(Intent.EXTRA_REPLACING, true); in sendSystemPackageUpdatedBroadcastsInternal() 84 mRemovedPackage, extras, 0 /*flags*/, in sendSystemPackageUpdatedBroadcastsInternal() 88 mRemovedPackage, extras, 0 /*flags*/, in sendSystemPackageUpdatedBroadcastsInternal() 115 Bundle extras = new Bundle(); in sendPackageRemovedBroadcastInternal() local 117 extras.putInt(Intent.EXTRA_UID, removedUid); in sendPackageRemovedBroadcastInternal() 118 extras.putBoolean(Intent.EXTRA_DATA_REMOVED, mDataRemoved); in sendPackageRemovedBroadcastInternal() 120 extras.putBoolean(Intent.EXTRA_DONT_KILL_APP, !killApp); in sendPackageRemovedBroadcastInternal() 121 extras.putBoolean(Intent.EXTRA_USER_INITIATED, !removedBySystem); in sendPackageRemovedBroadcastInternal() 124 extras.putBoolean(Intent.EXTRA_REPLACING, true); in sendPackageRemovedBroadcastInternal() [all …]
|
H A D | BroadcastHelper.java | 128 if (extras != null) { in doSendBroadcast() 129 intent.putExtras(extras); in doSendBroadcast() 176 Bundle extras = new Bundle(); in sendResourcesChangedBroadcast() local 253 Bundle extras = new Bundle(4); in sendPackageChangedBroadcast() local 329 Bundle extras = new Bundle(1); in sendPackageAddedForNewUsers() local 333 extras.putInt(Intent.EXTRA_UID, uid); in sendPackageAddedForNewUsers() 343 packageName, extras, 0, in sendPackageAddedForNewUsers() 368 @NonNull Bundle extras) { in filterExtrasChangedPackageList() argument 371 return extras; in filterExtrasChangedPackageList() 375 return extras; in filterExtrasChangedPackageList() [all …]
|
/aosp14/frameworks/base/tests/ShowWhenLockedApp/src/com/android/showwhenlocked/ |
H A D | ShowWhenLockedActivity.java | 129 private void handleExtras(Bundle extras) { in handleExtras() argument 130 if (extras == null) { in handleExtras() 134 if (extras.containsKey(EXTRA_SHOW_WHEN_LOCKED)) { in handleExtras() 135 boolean showWhenLocked = extras.getBoolean(EXTRA_SHOW_WHEN_LOCKED, true); in handleExtras() 140 if (extras.containsKey(EXTRA_TURN_SCREEN_ON)) { in handleExtras() 141 boolean turnScreenOn = extras.getBoolean(EXTRA_TURN_SCREEN_ON, true); in handleExtras() 146 if (extras.containsKey(EXTRA_SHOW_WHEN_LOCKED_STOP)) { in handleExtras() 151 if (extras.containsKey(EXTRA_TURN_SCREEN_ON_STOP)) { in handleExtras() 152 turnScreenOnAtStop = extras.getBoolean(EXTRA_TURN_SCREEN_ON_STOP, true); in handleExtras() 156 if (extras.containsKey(EXTRA_DISMISS_KEYGUARD)) { in handleExtras() [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
H A D | SwitchesProviderTest.java | 157 final Bundle extras = new Bundle(); in getSwitchDataByKey_shouldReturnData() local 158 extras.putString(META_DATA_PREFERENCE_KEYHINT, "123"); in getSwitchDataByKey_shouldReturnData() 172 final Bundle extras = new Bundle(); in isChecked_shouldReturnCheckedState() local 193 final Bundle extras = new Bundle(); in getProviderIcon_noImplementInterface_shouldReturnNull() local 208 final Bundle extras = new Bundle(); in getProviderIcon_implementInterface_shouldReturnIcon() local 223 final Bundle extras = new Bundle(); in getDynamicTitle_noImplementInterface_shouldReturnNull() local 238 final Bundle extras = new Bundle(); in getDynamicTitle_implementInterface_shouldReturnTitle() local 254 final Bundle extras = new Bundle(); in getDynamicSummary_noImplementInterface_shouldReturnNull() local 269 final Bundle extras = new Bundle(); in getDynamicSummary_implementInterface_shouldReturnSummary() local 285 final Bundle extras = new Bundle(); in onCheckedChangedSuccess_shouldReturnNoError() local [all …]
|
H A D | EntriesProviderTest.java | 187 final Bundle extras = new Bundle(); in getEntryDataByKey_shouldReturnData() local 202 final Bundle extras = new Bundle(); in getSwitchDataByKey_shouldReturnData() local 217 final Bundle extras = new Bundle(); in isSwitchChecked_shouldReturnCheckedState() local 238 final Bundle extras = new Bundle(); in getProviderIcon_noImplementInterface_shouldReturnNull() local 253 final Bundle extras = new Bundle(); in getProviderIcon_implementInterface_shouldReturnIcon() local 268 final Bundle extras = new Bundle(); in getDynamicTitle_noImplementInterface_shouldReturnNull() local 283 final Bundle extras = new Bundle(); in getDynamicTitle_implementInterface_shouldReturnTitle() local 299 final Bundle extras = new Bundle(); in getDynamicSummary_noImplementInterface_shouldReturnNull() local 314 final Bundle extras = new Bundle(); in getDynamicSummary_implementInterface_shouldReturnSummary() local 330 final Bundle extras = new Bundle(); in onSwitchCheckedChangedSuccess_shouldReturnNoError() local [all …]
|
/aosp14/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
H A D | WeatherData.kt | 27 fun fromBundle(extras: Bundle, touchAction: WeatherTouchAction? = null): WeatherData? { 28 val description = extras.getString(DESCRIPTION_KEY) 30 WeatherStateIcon.fromInt(extras.getInt(STATE_KEY, INVALID_WEATHER_ICON_STATE)) 31 val temperature = readIntFromBundle(extras, TEMPERATURE_KEY) 35 !extras.containsKey(USE_CELSIUS_KEY) || 39 Log.w(TAG, "Weather data did not parse from $extras") 47 useCelsius = extras.getBoolean(USE_CELSIUS_KEY), 52 Log.i(TAG, "Weather data parsed $result from $extras") 58 private fun readIntFromBundle(extras: Bundle, key: String): Int? = 60 extras.getString(key)?.toInt()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/ |
H A D | NotificationMemoryMeter.kt | 81 val extras = notification.extras regex 108 extras.getParcelableArray(Notification.EXTRA_MESSAGES) 114 extras.getParcelableArray(Notification.EXTRA_HISTORIC_MESSAGES) 120 val carExtender = extras.getBundle(CAR_EXTENSIONS) 125 val tvExtender = extras.getBundle(TV_EXTENSIONS) 128 val wearExtender = extras.getBundle(WEARABLE_EXTENSIONS) 141 val extrasSize = computeBundleSize(extras) 146 extras = extrasSize, 189 private fun computeBundleSize(extras: Bundle): Int { 192 extras.writeToParcel(parcel, 0) [all …]
|
/aosp14/frameworks/base/telecomm/java/android/telecom/ |
H A D | ConnectionRequest.java | 92 this.mExtras = extras; in setExtras() 197 Bundle extras) { in ConnectionRequest() argument 210 Bundle extras, in ConnectionRequest() argument 230 Bundle extras, in ConnectionRequest() argument 241 Bundle extras, in ConnectionRequest() argument 254 Bundle extras, in ConnectionRequest() argument 264 mExtras = extras; in ConnectionRequest() 419 private static String bundleToString(Bundle extras){ in bundleToString() argument 420 if (extras == null) { in bundleToString() 425 for (String key : extras.keySet()) { in bundleToString() [all …]
|
/aosp14/frameworks/base/location/java/android/location/provider/ |
H A D | LocationProviderBase.java | 266 @Nullable Bundle extras); in onSendExtraCommand() 269 Bundle extras = location.getExtras(); in stripExtras() local 270 if (extras != null && (extras.containsKey(EXTRA_NO_GPS_LOCATION) in stripExtras() 271 || extras.containsKey("indoorProbability") in stripExtras() 272 || extras.containsKey("coarseLocation"))) { in stripExtras() 274 extras = location.getExtras(); in stripExtras() 275 extras.remove(EXTRA_NO_GPS_LOCATION); in stripExtras() 276 extras.remove("indoorProbability"); in stripExtras() 277 extras.remove("coarseLocation"); in stripExtras() 278 if (extras.isEmpty()) { in stripExtras() [all …]
|
/aosp14/frameworks/base/cmds/content/src/com/android/commands/content/ |
H A D | Content.java | 205 Bundle extras = new Bundle(); in parseInsertCommand() local 214 parseBindValue(extras); in parseInsertCommand() 233 Bundle extras = new Bundle(); in parseDeleteCommand() local 259 Bundle extras = new Bundle(); in parseUpdateCommand() local 292 Bundle extras = new Bundle(); in parseCallCommand() local 380 Bundle extras = new Bundle(); in parseQueryCommand() local 561 mExtras = extras; in InsertCommand() 576 mExtras = extras; in DeleteCommand() 594 mExtras = extras; in CallCommand() 656 mExtras = extras; in QueryCommand() [all …]
|
/aosp14/frameworks/base/location/lib/java/com/android/location/provider/ |
H A D | LocationProviderBase.java | 338 protected int onGetStatus(Bundle extras) { in onGetStatus() argument 409 onSendExtraCommand(command, extras); in sendExtraCommand() 414 Bundle extras = location.getExtras(); in stripExtras() local 415 if (extras != null && (extras.containsKey(EXTRA_NO_GPS_LOCATION) in stripExtras() 416 || extras.containsKey("indoorProbability") in stripExtras() 417 || extras.containsKey("coarseLocation"))) { in stripExtras() 419 extras = location.getExtras(); in stripExtras() 420 extras.remove(EXTRA_NO_GPS_LOCATION); in stripExtras() 421 extras.remove("indoorProbability"); in stripExtras() 422 extras.remove("coarseLocation"); in stripExtras() [all …]
|
/aosp14/frameworks/base/core/java/android/content/pm/ |
H A D | AuxiliaryResolveInfo.java | 97 public final Bundle extras; field in AuxiliaryResolveInfo.AuxiliaryFilter 100 String splitName, Bundle extras) { in AuxiliaryFilter() argument 106 this.extras = extras; in AuxiliaryFilter() 110 String splitName, Bundle extras) { in AuxiliaryFilter() argument 115 this.extras = extras; in AuxiliaryFilter() 123 this.extras = null; in AuxiliaryFilter()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | RemoteInputNotificationRebuilderTest.java | 82 .extras.getParcelableArray(Notification.EXTRA_REMOTE_INPUT_HISTORY_ITEMS); in testRebuildWithRemoteInput_noExistingInput_image() 95 .extras.getParcelableArray(Notification.EXTRA_REMOTE_INPUT_HISTORY_ITEMS); in testRebuildWithRemoteInput_noExistingInputNoSpinner() 98 assertFalse(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputNoSpinner() 100 assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputNoSpinner() 110 .extras.getParcelableArray(Notification.EXTRA_REMOTE_INPUT_HISTORY_ITEMS); in testRebuildWithRemoteInput_noExistingInputWithSpinner() 113 assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputWithSpinner() 115 assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputWithSpinner() 133 .extras.getParcelableArray(Notification.EXTRA_REMOTE_INPUT_HISTORY_ITEMS); in testRebuildWithRemoteInput_withExistingInput() 156 .extras.getParcelableArray(Notification.EXTRA_REMOTE_INPUT_HISTORY_ITEMS); in testRebuildWithRemoteInput_withExistingInput_image() 169 assertFalse(newSbn.getNotification().extras in testRebuildNotificationForCanceledSmartReplies() [all …]
|
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/app/ |
H A D | CommonDemoActivity.kt | 32 val extras = intent.extras ?: return finish() regex 34 val layout = extras.getInt(EXTRA_LAYOUT, -1) 39 val title = extras.getString(EXTRA_TITLE, "SilkFX") 42 if (extras.getBoolean(EXTRA_COMMON_CONTROLS, true)) {
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | QuickContactBadge.java | 235 mExtras = extras; in assignContactFromEmail() 275 mExtras = extras; in assignContactFromPhone() 305 final Bundle extras = (mExtras == null) ? new Bundle() : mExtras; in onClick() local 310 extras.putString(EXTRA_URI_CONTENT, mContactEmail); in onClick() 311 mQueryHandler.startQuery(TOKEN_EMAIL_LOOKUP_AND_TRIGGER, extras, in onClick() 315 extras.putString(EXTRA_URI_CONTENT, mContactPhone); in onClick() 316 mQueryHandler.startQuery(TOKEN_PHONE_LOOKUP_AND_TRIGGER, extras, in onClick() 350 Bundle extras = (cookie != null) ? (Bundle) cookie : new Bundle(); in onQueryComplete() local 370 extras.getString(EXTRA_URI_CONTENT), null); in onQueryComplete() 398 if (extras != null) { in onQueryComplete() [all …]
|
/aosp14/frameworks/base/core/java/android/view/textclassifier/ |
H A D | TextLinks.java | 107 mExtras = extras; in TextLinks() 228 Objects.requireNonNull(extras); in TextLink() 233 mExtras = extras; in TextLink() 314 final Bundle extras = in.readBundle(); in readFromParcel() local 351 Bundle extras) { in Request() argument 357 mExtras = extras; in Request() 513 mExtras = extras; in setExtras() 563 final Bundle extras = in.readBundle(); in readFromParcel() local 704 @NonNull Bundle extras) { in addLink() argument 742 public Builder setExtras(@Nullable Bundle extras) { in setExtras() argument [all …]
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/ |
H A D | BackupManagerMonitorEventSenderTest.java | 80 Bundle extras = new Bundle(); in monitorEvent_monitorIsNull_sendBundleToDumpsys() local 81 extras.putInt(EXTRA_LOG_OPERATION_TYPE, OperationType.RESTORE); in monitorEvent_monitorIsNull_sendBundleToDumpsys() 137 Bundle extras = new Bundle(); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly() local 138 extras.putInt("key1", 4); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly() 139 extras.putString("key2", "value2"); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly() 165 Bundle extras = new Bundle(); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectlyLong() local 166 extras.putInt("key1", 4); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectlyLong() 167 extras.putString("key2", "value2"); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectlyLong() 189 Bundle extras = new Bundle(); in monitorEvent_eventOpTypeIsRestore_sendBundleToDumpsys() local 199 Bundle extras = new Bundle(); in monitorEvent_eventOpTypeIsBackup_doNotSendBundleToDumpsys() local [all …]
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | Notification.java | 1831 this.mExtras = extras != null ? extras : new Bundle(); in Action() 2001 mExtras = extras; in Builder() 2776 that.extras = new Bundle(this.extras); in cloneInto() 2869 if (extras != null) { in visitUris() 2946 if (extras != null && extras.containsKey(WearableExtender.EXTRA_WEARABLE_EXTENSIONS)) { in visitUris() 2963 if (extras != null && !extras.isEmpty()) { in lightenPayload() 3409 if (extras != null) { in fixDuplicateExtras() 3651 return extras.getInt(EXTRA_PROGRESS) == extras.getInt(EXTRA_PROGRESS_MAX); in hasCompletedProgress() 4976 if (extras != null) { in addExtras() 9793 Bundle extras = mBuilder.mN.extras; in makeCallLayout() local [all …]
|
/aosp14/frameworks/base/media/java/android/media/session/ |
H A D | MediaSession.java | 594 mBinder.setExtras(extras); in setExtras() 1249 Bundle extras) { in onPrepareFromMediaId() argument 1259 Bundle extras) { in onPrepareFromSearch() argument 1272 uri, extras); in onPrepareFromUri() local 1286 Bundle extras) { in onPlayFromMediaId() argument 1290 mediaId, extras); in onPlayFromMediaId() local 1296 Bundle extras) { in onPlayFromSearch() argument 1300 query, extras); in onPlayFromSearch() local 1309 uri, extras); in onPlayFromUri() local 1530 public final Bundle extras; field in MediaSession.Command [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/util/ |
H A D | MediaDataUtils.java | 66 public static Double getDescriptionProgress(@Nullable Bundle extras) { in getDescriptionProgress() argument 67 if (extras == null in getDescriptionProgress() 68 || !extras.containsKey(MediaConstants.DESCRIPTION_EXTRAS_KEY_COMPLETION_STATUS)) { in getDescriptionProgress() 72 int status = extras.getInt(MediaConstants.DESCRIPTION_EXTRAS_KEY_COMPLETION_STATUS); in getDescriptionProgress() 79 if (extras in getDescriptionProgress() 81 double percent = extras in getDescriptionProgress()
|