Home
last modified time | relevance | path

Searched refs:apply (Results 1 – 25 of 1277) sorted by relevance

12345678910>>...52

/packages/modules/Permission/SafetyLabel/tests/java/com/android/permission/safetylabel/
DSafetyLabelTestPersistableBundles.kt54 return PersistableBundle().apply { in <lambda>()
69 return createVersionedEmptyMetadataPersistableBundle(topLevelVersion).apply { in <lambda>()
79 return createVersionedEmptyMetadataPersistableBundle().apply { in <lambda>()
88 return createVersionedEmptyMetadataPersistableBundle().apply { in <lambda>()
98 return createMetadataPersistableBundle().apply { remove(KEY_VERSION) } in <lambda>()
105 return createMetadataPersistableBundle().apply { in <lambda>()
117 return PersistableBundle().apply { in <lambda>()
126 return createVersionedEmptySafetyLabelsPersistableBundle(version).apply { in <lambda>()
133 return createSafetyLabelPersistableBundle().apply { in <lambda>()
140 return createSafetyLabelPersistableBundle().apply { in <lambda>()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/module/logging/
DSysUiStatsLogger.kt65 fun setColorPackageHash(colorPackageHash: Int) = apply { in <lambda>()
69 fun setFontPackageHash(fontPackageHash: Int) = apply { this.fontPackageHash = fontPackageHash } in <lambda>()
71 fun setShapePackageHash(shapePackageHash: Int) = apply { in <lambda>()
75 fun setClockPackageHash(clockPackageHash: Int) = apply { in <lambda>()
79 fun setLauncherGrid(launcherGrid: Int) = apply { this.launcherGrid = launcherGrid } in <lambda>()
81 fun setWallpaperCategoryHash(wallpaperCategoryHash: Int) = apply { in <lambda>()
85 fun setWallpaperIdHash(wallpaperIdHash: Int) = apply { this.wallpaperIdHash = wallpaperIdHash } in <lambda>()
87 fun setColorPreference(colorPreference: Int) = apply { this.colorPreference = colorPreference } in <lambda>()
89 fun setLocationPreference(locationPreference: Int) = apply { in <lambda>()
93 fun setDatePreference(datePreference: Int) = apply { this.datePreference = datePreference } in <lambda>()
[all …]
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DAppMetadata.kt31 PersistableBundle().apply { putIntArray(KEY_PURPOSES, (1..7).toList().toIntArray()) } in createDefaultAppMetadata()
34 PersistableBundle().apply { in createDefaultAppMetadata()
39 PersistableBundle().apply { putPersistableBundle(LOCATION_CATEGORY, locationBundle) } in createDefaultAppMetadata()
42 PersistableBundle().apply { putPersistableBundle(KEY_DATA_SHARED, dataSharedBundle) } in createDefaultAppMetadata()
45 PersistableBundle().apply { in createDefaultAppMetadata()
50 return PersistableBundle().apply { in createDefaultAppMetadata()
64 return PersistableBundle().apply { in createInvalidAppMetadata()
78 return PersistableBundle().apply { in createInvalidAppMetadataWithoutTopLevelVersion()
91 return PersistableBundle().apply { in createInvalidAppMetadataWithInvalidTopLevelVersion()
104 validAppMetaData.getPersistableBundle(KEY_SAFETY_LABELS).apply { in createInvalidAppMetadataWithoutSafetyLabelVersion()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/noising/
DImpressionNoiseUtilTest.java61 void apply(T1 t1, T2 t2, T3 t3); in apply() method
83 void apply(T1 t1, T2 t2, T3 t3, T4 t4); in apply() method
115 mStateSelectionTester.apply( in selectRandomStateAndGenerateReportConfigs_event()
123 mStateSelectionTester.apply( in selectRandomStateAndGenerateReportConfigs_event()
141 mStateSelectionTester.apply( in selectRandomStateAndGenerateReportConfigs_eventWithInstallAttribution()
148 mStateSelectionTester.apply( in selectRandomStateAndGenerateReportConfigs_eventWithInstallAttribution()
166 mStateSelectionTester.apply( in selectRandomStateAndGenerateReportConfigs_navigation()
174 mStateSelectionTester.apply( in selectRandomStateAndGenerateReportConfigs_navigation()
190 mGenerateReportConfigTester.apply( in getReportConfigsForSequenceIndex_event()
194 mGenerateReportConfigTester.apply( in getReportConfigsForSequenceIndex_event()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DFirstScreenBroadcastHelperTest.kt50 Intent().apply { in <lambda>()
58 WorkspaceItemInfo().apply { in <lambda>()
62 WorkspaceItemInfo().apply { in <lambda>()
66 LauncherAppWidgetInfo().apply { providerName = expectedComponentName } in <lambda>()
73 SessionInfo().apply { in Broadcast Models are created with Pending Items from first screen()
78 SessionInfo().apply { in Broadcast Models are created with Pending Items from first screen()
125 LauncherAppWidgetInfo().apply { in Broadcast Models are created with Installed Items from first screen()
163 LauncherAppWidgetInfo().apply { in Broadcast Models are created with Installed Widgets from every screen()
167 LauncherAppWidgetInfo().apply { in Broadcast Models are created with Installed Widgets from every screen()
171 LauncherAppWidgetInfo().apply { in Broadcast Models are created with Installed Widgets from every screen()
[all …]
DWorkspaceItemProcessorTest.kt114 mUnlockedUsersArray = LongSparseArray<Boolean>(1).apply { put(101, true) } in setup()
116 Intent().apply { in setup()
122 mock<Context>().apply { in setup()
127 mock<LauncherAppState>().apply { in setup()
133 mock<PackageManagerHelper>().apply { in setup()
138 mock<LauncherApps>().apply { in setup()
143 mock(LoaderCursor::class.java, RETURNS_DEEP_STUBS).apply { in setup()
157 mock<UserCache>().apply { in setup()
159 mock<UserIconInfo>().apply { whenever(isPrivate).thenReturn(false) } in setup()
220 mockCursor = mock<LoaderCursor>().apply { id = 1 } in createWorkspaceItemProcessorUnderTest()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/
DDefaultOmtpEventHandler.java60 .apply(); in handleConfigurationEvent()
69 .apply(); in handleConfigurationEvent()
76 .apply(); in handleConfigurationEvent()
79 status.setConfigurationState(Status.CONFIGURATION_STATE_FAILED).apply(); in handleConfigurationEvent()
82 status.setConfigurationState(Status.CONFIGURATION_STATE_FAILED).apply(); in handleConfigurationEvent()
94 status.setDataChannelState(Status.DATA_CHANNEL_STATE_OK).apply(); in handleDataChannelEvent()
98 status.setDataChannelState(Status.DATA_CHANNEL_STATE_NO_CONNECTION).apply(); in handleDataChannelEvent()
104 .apply(); in handleDataChannelEvent()
109 .apply(); in handleDataChannelEvent()
115 .apply(); in handleDataChannelEvent()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPreferences.kt188 noBackupEditor.apply() in <lambda>()
197 sharedPrefs.edit().putString(key, getResName(resId)).apply() in <lambda>()
218 .apply() in <lambda>()
241 editor.apply() in <lambda>()
252 .apply() in <lambda>()
263 .apply() in <lambda>()
275 .apply() in <lambda>()
284 .apply() in <lambda>()
323 sharedEditor.apply() in <lambda>()
328 noBackupEditor.apply() in <lambda>()
[all …]
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetylabel/
DAppsSafetyLabelHistoryTest.kt244 PersistableBundle().apply { in createDataSharedWithLocationNoAds()
247 PersistableBundle().apply { in createDataSharedWithLocationNoAds()
256 return PersistableBundle().apply { in createDataSharedWithLocationNoAds()
263 PersistableBundle().apply { in createDataSharedWithLocationWithAds()
266 PersistableBundle().apply { in createDataSharedWithLocationWithAds()
272 return PersistableBundle().apply { in createDataSharedWithLocationWithAds()
279 PersistableBundle().apply { in createDataSharedWithFinanceWithAds()
282 PersistableBundle().apply { in createDataSharedWithFinanceWithAds()
288 return PersistableBundle().apply { in createDataSharedWithFinanceWithAds()
295 PersistableBundle().apply { in createDataSharedWithLocationAndFinanceWithAds()
[all …]
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/data/
DUriHelper.kt32 private val pickerUri: Uri = Uri.Builder().apply { in <lambda>()
42 val AVAILABLE_PROVIDERS_URI: Uri = pickerUri.buildUpon().apply { in <lambda>()
49 val AVAILABLE_PROVIDERS_CHANGE_NOTIFICATION_URI: Uri = pickerUri.buildUpon().apply { in <lambda>()
57 val MEDIA_URI: Uri = pickerUri.buildUpon().apply { in <lambda>()
64 val MEDIA_CHANGE_NOTIFICATION_URI: Uri = MEDIA_URI.buildUpon().apply { in <lambda>()
71 val ALBUM_URI: Uri = pickerUri.buildUpon().apply { in <lambda>()
78 val ALBUM_CHANGE_NOTIFICATION_URI: Uri = ALBUM_URI.buildUpon().apply { in <lambda>()
83 return ALBUM_URI.buildUpon().apply { in getAlbumMediaUri()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DManagedProvisioningSharedPreferences.java88 .apply(); in writeProvisioningStartedTimestamp()
104 .apply(); in writeNavigationBarColor()
120 .apply(); in writeNavigationBarDividerColor()
136 .apply(); in writeTextPrimaryColor()
152 .apply(); in writeTextSecondaryColor()
168 .apply(); in writeBackgroundColor()
184 .apply(); in writeAccentColor()
200 .apply(); in writeNotificationBackgroundColor()
214 .apply(); in setIsProvisioningFlowDelegatedToRoleHolder()
228 .apply(); in setIsEstablishNetworkConnectionRun()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserLifecycleEventFilterTest.java120 assertThrows(NullPointerException.class, () -> filter.apply(/* event= */null)); in testApply_nullEvent_throws()
129 assertThat(filterStartingOrUnlocking.apply(USER111_STARTING_EVENT)).isTrue(); in testApply_eventTypesOnly_returnsTrue()
130 assertThat(filterStartingOrUnlocking.apply(USER111_UNLOCKING_EVENT)).isTrue(); in testApply_eventTypesOnly_returnsTrue()
139 assertThat(filterStartingOrUnlocking.apply(USER111_TO_112_SWITCHING_EVENT)).isFalse(); in testApply_eventTypesOnly_returnsFalse()
147 assertThat(filterUser111.apply(USER111_UNLOCKING_EVENT)).isTrue(); in testApply_userIdMatches_returnsTrue()
156 assertThat(filterUser112.apply(USER112_TO_113_SWITCHING_EVENT)).isTrue(); in testApply_previousUserIdMatches_returnsTrue()
164 assertThat(filterUser112Or113.apply(USER111_STARTING_EVENT)).isFalse(); in testApply_userIdsDoNotMatch_returnsFalse()
173 assertThat(filterUnlocking.apply(USER111_UNLOCKING_EVENT)).isTrue(); in testApply_bothEventTypesAndUserIdsMatch_returnsTrue()
182 assertThat(filterUnlocked.apply(USER111_UNLOCKING_EVENT)).isFalse(); in testApply_eventTypeDoesNotMatch_returnsFalse()
191 assertThat(filterStarting.apply(USER111_STARTING_EVENT)).isFalse(); in testApply_userIdDoesNotMatch_returnsFalse()
[all …]
/packages/apps/Camera2/src/com/android/camera/async/
DFutures2.java38 ListenableFuture<TResult> apply(T1 value1, T2 value2) throws Exception; in apply() method
45 ListenableFuture<TResult> apply(T1 value1, T2 value2, T3 value3) throws Exception; in apply() method
52 TResult apply(T1 value1, T2 value2); in apply() method
59 TResult apply(T1 value1, T2 value2, T3 value3); in apply() method
102 public ListenableFuture<TResult> apply(@Nullable List<Object> list) throws Exception {
106 return fn.apply(value1, value2);
147 public ListenableFuture<TResult> apply(@Nullable List<Object> list) throws Exception {
152 return fn.apply(value1, value2, value3);
184 public ListenableFuture<TResult> apply(T1 value1, T2 value2) throws Exception {
185 return Futures.immediateFuture(mFn.apply(value1, value2));
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/
DPreviewDataProviderTest.kt81 Intent(Intent.ACTION_SEND).apply { in test_sendSingleTextFileWithoutPreview_resolvesToFilePreviewUi()
96 val targetIntent = Intent(Intent.ACTION_SEND).apply { type = "image/png" } in test_sendIntentWithoutUris_resolvesToTextPreviewUiSynchronously()
106 val targetIntent = Intent(Intent.ACTION_SEND).apply { putExtra(Intent.EXTRA_STREAM, uri) } in test_sendSingleImage_resolvesToImagePreviewUi()
120 val targetIntent = Intent(Intent.ACTION_SEND).apply { putExtra(Intent.EXTRA_STREAM, uri) } in test_sendSingleNonImage_resolvesToFilePreviewUi()
135 Intent(Intent.ACTION_SEND).apply { in test_sendSingleImageWithFailingGetType_resolvesToFilePreviewUi()
153 Intent(Intent.ACTION_SEND).apply { in test_sendSingleImageWithFailingMetadata_resolvesToFilePreviewUi()
173 val targetIntent = Intent(Intent.ACTION_SEND).apply { putExtra(Intent.EXTRA_STREAM, uri) } in test_SingleNonImageUriWithImageTypeInGetStreamTypes_useImagePreviewUi()
207 val targetIntent = Intent(Intent.ACTION_SEND).apply { putExtra(Intent.EXTRA_STREAM, uri) } in testMetadataToImagePreview()
209 val cursor = MatrixCursor(columns).apply { addRow(values) } in testMetadataToImagePreview()
225 val targetIntent = Intent(Intent.ACTION_SEND).apply { putExtra(Intent.EXTRA_STREAM, uri) } in test_emptyQueryResult_cursorGetsClosed()
[all …]
/packages/apps/TV/src/com/android/tv/util/
DTvSettings.java87 .apply(); in setMultiAudioId()
99 .apply(); in setMultiAudioLanguage()
111 .apply(); in setMultiAudioChannelCount()
121 .apply(); in setDvrPlaybackTrackSettings()
128 .apply(); in setDvrPlaybackTrackSettings()
135 .apply(); in setDvrPlaybackTrackSettings()
141 .apply(); in setDvrPlaybackTrackSettings()
181 .apply(); in addContentRatingSystem()
191 .apply(); in removeContentRatingSystem()
226 .apply(); in setContentRatingLevel()
[all …]
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/storage/
DUserParameters.java81 getSharedPreferences(context).edit().putInt(KEY_PROVISION_STATE, state).apply(); in setProvisionState()
93 getSharedPreferences(context).edit().putBoolean(KEY_NEED_INITIAL_CHECK_IN, false).apply(); in initialCheckInScheduled()
106 getSharedPreferences(context).edit().putLong(KEY_BOOT_TIME_MILLS, bootTime).apply(); in setBootTimeMillis()
121 nextCheckInTime).apply(); in setNextCheckInTimeMillis()
136 resumeProvisionTime).apply(); in setResumeProvisionTimeMillis()
152 nextProvisionFailedStep).apply(); in setNextProvisionFailedStepTimeMills()
167 resetDeviceTime).apply(); in setResetDeviceTimeMillis()
179 getSharedPreferences(context).edit().putInt(KEY_DAYS_LEFT_UNTIL_RESET, days).apply(); in setDaysLeftUntilReset()
192 provisioningStartTime).apply(); in setProvisioningStartTimeMillis()
209 .putString(KEY_NOTIFICATION_CHANNEL_ID_SUFFIX, notificationChannelSuffix).apply(); in setNotificationChannelIdSuffix()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DCannedAnimationCoordinator.kt78 ValueAnimator.ofFloat(0f, 1f).apply { in <lambda>()
96 activity.rootView.viewTreeObserver.apply { in <lambda>()
105 activity.rootView.viewTreeObserver.apply { in <lambda>()
115 controller.apply { in <lambda>()
124 currentAnim?.apply { in <lambda>()
149 animationProvider?.apply { recreateAnimation(this) } in <lambda>()
168 .apply { animationFactory?.accept(this) } in <lambda>()
170 .apply { setPlayFraction(animationController!!.progressFraction) } in <lambda>()
DFlagDebugUtils.kt33 result.add("[" + flagSerializer.apply(current) + "]") in formatFlagChange()
37 result.add("+[" + flagSerializer.apply(added) + "]") in formatFlagChange()
41 result.add("-[" + flagSerializer.apply(removed) + "]") in formatFlagChange()
59 result.add("[" + flagSerializer.apply(current) + "]") in formatFlagChange()
63 result.add("+[" + flagSerializer.apply(added) + "]") in formatFlagChange()
67 result.add("-[" + flagSerializer.apply(removed) + "]") in formatFlagChange()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppButtonRepositoryTest.kt135 val app = ApplicationInfo().apply { in uninstallDisallowedDueToHomeApp_isNotSystemAndIsCurrentHomeAndHasOnlyOneHomeApp()
152 val app = ApplicationInfo().apply { in uninstallDisallowedDueToHomeApp_isNotSystemAndIsCurrentHomeAndHasOtherHomeApps()
169 val app = ApplicationInfo().apply { in uninstallDisallowedDueToHomeApp_isSystemAndIsCurrentHomeAndHasOtherHomeApps()
190 val RESOLVE_INFO = ResolveInfo().apply { in <lambda>()
191 activityInfo = ActivityInfo().apply { in <lambda>()
195 val RESOLVE_INFO_FAKE = ResolveInfo().apply { in <lambda>()
196 activityInfo = ActivityInfo().apply { in <lambda>()
200 val RESOLVE_INFO_WITH_ALTERNATE = ResolveInfo().apply { in <lambda>()
201 activityInfo = ActivityInfo().apply { in <lambda>()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/
DSubscriptionRepositoryTest.kt101 SubscriptionInfo.Builder().apply { in getSelectableSubscriptionInfoList_sortedBySimSlotIndex()
105 SubscriptionInfo.Builder().apply { in getSelectableSubscriptionInfoList_sortedBySimSlotIndex()
122 SubscriptionInfo.Builder().apply { in getSelectableSubscriptionInfoList_oneNotInSlot_inSlotSortedFirst()
126 SubscriptionInfo.Builder().apply { in getSelectableSubscriptionInfoList_oneNotInSlot_inSlotSortedFirst()
143 SubscriptionInfo.Builder().apply { in getSelectableSubscriptionInfoList_sameGroupAndOneHasSlot_returnTheOneWithSimSlotIndex()
148 SubscriptionInfo.Builder().apply { in getSelectableSubscriptionInfoList_sameGroupAndOneHasSlot_returnTheOneWithSimSlotIndex()
165 SubscriptionInfo.Builder().apply { in getSelectableSubscriptionInfoList_sameGroupAndNonHasSlot_returnTheOneWithMinimumSubId()
169 SubscriptionInfo.Builder().apply { in getSelectableSubscriptionInfoList_sameGroupAndNonHasSlot_returnTheOneWithMinimumSubId()
186 val subInfo = SubscriptionInfo.Builder().apply { in <lambda>()
/packages/apps/Contacts/src/com/android/contacts/util/
DSharedPreferenceUtil.java72 .apply(); in setHamburgerPromoDisplayedBefore()
84 .apply(); in setHamburgerMenuClickedBefore()
96 .apply(); in setHamburgerPromoTriggerActionHappenedBefore()
133 .putInt(PREFERENCE_KEY_GLOBAL_SYNC_OFF_DISMISSES, 0).apply(); in resetNumOfDismissesForAutoSyncOff()
141 .putInt(PREFERENCE_KEY_GLOBAL_SYNC_OFF_DISMISSES, value + 1).apply(); in incNumOfDismissesForAutoSyncOff()
157 .putInt(buildSharedPrefsName(accountName), 0).apply(); in resetNumOfDismissesForAccountSyncOff()
165 .putInt(buildSharedPrefsName(accountName), value + 1).apply(); in incNumOfDismissesForAccountSyncOff()
190 .apply(); in persistSimStates()
229 .apply(); in addRestoredDevice()
255 isDismissed).apply(); in setWelcomeCardDismissed()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSearchSettingsImpl.kt40 SharedPreferencesCompat.apply(searchPreferences.edit().putBoolean(name, value)) in storeBoolean()
44 SharedPreferencesCompat.apply(searchPreferences.edit().putInt(name, value)) in storeInt()
48 SharedPreferencesCompat.apply(searchPreferences.edit().putLong(name, value)) in storeLong()
52 SharedPreferencesCompat.apply(searchPreferences.edit().putString(name, value)) in storeString()
56 SharedPreferencesCompat.apply(searchPreferences.edit().remove(name)) in removePref()
94 SharedPreferencesCompat.apply( in haveVoiceSearchHintsExpired()
143 SharedPreferencesCompat.apply(sharedPrefEditor)
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoReviewPermissionDecisionsFragment.kt63 return AutoReviewPermissionDecisionsFragment().apply { in <lambda>()
65 Bundle().apply { in <lambda>()
113 PreferenceCategory(context!!).apply { in <lambda>()
145 CarUiPreference(context).apply { in <lambda>()
151 Intent(Intent.ACTION_REVIEW_PERMISSION_USAGE).apply { in <lambda>()
163 CarUiPreference(context).apply { in <lambda>()
169 Intent(Intent.ACTION_MANAGE_PERMISSIONS).apply { in <lambda>()
191 CarUiPreference(context).apply { in <lambda>()
214 CarUiPreference(context).apply { in <lambda>()
238 CarUiPreference(context).apply { in <lambda>()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/flags/
DDevOptionsUiHelper.kt147 PreferenceCategory(context).apply { in <lambda>()
174 prefs.edit().remove(pref.key).apply() in <lambda>()
186 prefs.edit().putBoolean(info.key, newVal as Boolean).apply() in <lambda>()
203 prefs.edit().putInt(pref.key, textView.text.toString().toInt()).apply() in <lambda>()
215 prefs.edit().remove(pref.key).apply() in <lambda>()
294 .apply { in <lambda>()
335 newCategory("Gesture Navigation Sandbox").apply { in <lambda>()
337 Preference(context).apply { in <lambda>()
343 Preference(context).apply { in <lambda>()
352 Preference(context).apply { in <lambda>()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/animation/view/
DLoadingAnimation.kt66 TurbulenceNoiseShader().apply { in <lambda>()
74 SparkleShader().apply { in <lambda>()
123 ValueAnimator.ofFloat(transitionProgress, 1f).apply { in <lambda>()
144 TimeAnimator().apply { in <lambda>()
180 ValueAnimator.ofFloat(0f, 1f).apply { in <lambda>()
243 ValueAnimator.ofFloat(transitionProgress, 0f).apply { in <lambda>()
275 colorTurbulenceNoiseShader.apply { in <lambda>()
290 colorTurbulenceNoiseShader.apply { in <lambda>()
295 sparkleShader.apply { in <lambda>()
301 loadingShader.apply { in <lambda>()
[all …]

12345678910>>...52