Home
last modified time | relevance | path

Searched refs:supplier (Results 1 – 25 of 26) sorted by relevance

12

/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
H A DPackageMatchingCacheTest.java42 private final Supplier<String> supplier = mock(Supplier.class); field in PackageMatchingCacheTest
43 private final PackageMatchingCache cache = new PackageMatchingCache(supplier);
49 verify(supplier, never()).get(); in testNulls()
53 verify(supplier).get(); in testNulls()
58 when(supplier.get()).thenReturn("ret.pkg"); in testCaching()
64 verify(supplier, times(1)).get(); in testCaching()
69 when(supplier.get()).thenReturn("ret.pkg"); in testGetOnFailure()
72 when(supplier.get()).thenReturn("other.pkg"); in testGetOnFailure()
74 verify(supplier, times(2)).get(); in testGetOnFailure()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DExtensionControllerImpl.java119 Supplier<T> supplier) { in withUiMode() argument
120 mExtension.addUiMode(uiMode, supplier); in withUiMode()
126 Supplier<T> supplier) { in withFeature() argument
127 mExtension.addFeature(feature, supplier); in withFeature()
308 public UiModeItem(int uiMode, Supplier<T> supplier) { in UiModeItem() argument
310 mSupplier = supplier; in UiModeItem()
346 public FeatureItem(String feature, Supplier<T> supplier) { in FeatureItem() argument
347 mSupplier = supplier; in FeatureItem()
371 public Default(Supplier<T> supplier) { in Default() argument
372 mSupplier = supplier; in Default()
/aosp14/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
H A DTestUtils.java38 public static <T> T getOnMainSync(@NonNull Supplier<T> supplier) { in getOnMainSync() argument
41 instrumentation.runOnMainSync(() -> result.set(supplier.get())); in getOnMainSync()
/aosp14/frameworks/base/services/core/java/com/android/server/location/contexthub/
H A DContextHubClientBroker.java610 Supplier<Intent> supplier = in sendMessageToClient() local
613 sendPendingIntent(supplier, nanoAppId); in sendMessageToClient()
660 Supplier<Intent> supplier = in onNanoAppAborted() local
663 sendPendingIntent(supplier, nanoAppId); in onNanoAppAborted()
867 Supplier<Intent> supplier = in sendAuthStateCallback() local
870 sendPendingIntent(supplier, nanoAppId); in sendAuthStateCallback()
926 private synchronized void sendPendingIntent(Supplier<Intent> supplier) { in sendPendingIntent() argument
928 doSendPendingIntent(mPendingIntentRequest.getPendingIntent(), supplier.get(), this); in sendPendingIntent()
938 private synchronized void sendPendingIntent(Supplier<Intent> supplier, long nanoAppId) { in sendPendingIntent() argument
941 doSendPendingIntent(mPendingIntentRequest.getPendingIntent(), supplier.get(), this); in sendPendingIntent()
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/remote/
H A DRemoteCallTest.java252 private static <T> Future<T> runInWorkerThreadAsync(Callable<T> supplier) { in runInWorkerThreadAsync() argument
254 new Thread(() -> future.complete(uncheck(supplier)), "test-worker-thread").start(); in runInWorkerThreadAsync()
258 private static <T> T runInWorkerThread(Callable<T> supplier) throws Exception { in runInWorkerThread() argument
259 return runInWorkerThreadAsync(supplier).get(); in runInWorkerThread()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DDejankUtils.java207 public static <T> T whitelistIpcs(Supplier<T> supplier) { in whitelistIpcs() argument
214 val = supplier.get(); in whitelistIpcs()
222 return supplier.get(); in whitelistIpcs()
/aosp14/frameworks/base/core/java/com/android/internal/infra/
H A DAndroidFuture.java483 public static <T> AndroidFuture<T> supply(Supplier<T> supplier) { in supply() argument
484 return supplyAsync(supplier, DIRECT_EXECUTOR); in supply()
490 public static <T> AndroidFuture<T> supplyAsync(Supplier<T> supplier, Executor executor) { in supplyAsync() argument
491 return new SupplyAsync<>(supplier, executor); in supplyAsync()
497 SupplyAsync(Supplier<T> supplier, Executor executor) { in SupplyAsync() argument
498 mSupplier = supplier; in SupplyAsync()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/
H A DRemoteViewsAdapterTest.java225 private <T> T getOnUiThread(Supplier<T> supplier) throws Throwable { in getOnUiThread() argument
226 return getOnHandler(mMainHandler, supplier); in getOnUiThread()
235 private static <T> T getOnHandler(Handler handler, Supplier<T> supplier) throws Throwable { in getOnHandler() argument
237 handler.post(() -> result.set(supplier.get())); in getOnHandler()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
H A DFluidResizeTaskPositioner.java58 Supplier<SurfaceControl.Transaction> supplier, in FluidResizeTaskPositioner() argument
64 mTransactionSupplier = supplier; in FluidResizeTaskPositioner()
H A DVeiledResizeTaskPositioner.java74 Supplier<SurfaceControl.Transaction> supplier, Transitions transitions, in VeiledResizeTaskPositioner() argument
80 mTransactionSupplier = supplier; in VeiledResizeTaskPositioner()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
H A DExitDesktopTaskTransitionHandler.java70 Supplier<SurfaceControl.Transaction> supplier, in ExitDesktopTaskTransitionHandler() argument
73 mTransactionSupplier = supplier; in ExitDesktopTaskTransitionHandler()
H A DEnterDesktopTaskTransitionHandler.java74 Supplier<SurfaceControl.Transaction> supplier) { in EnterDesktopTaskTransitionHandler() argument
76 mTransactionSupplier = supplier; in EnterDesktopTaskTransitionHandler()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
H A DBubbleBarExpandedView.java294 void setLayerBoundsSupplier(@Nullable Supplier<Rect> supplier) { in setLayerBoundsSupplier() argument
295 mLayerBoundsSupplier = supplier; in setLayerBoundsSupplier()
/aosp14/frameworks/base/core/java/android/view/inputmethod/
H A DRemoteInputConnectionImpl.java1484 @NonNull AndroidFuture untypedFuture, @NonNull Supplier<T> supplier) { in dispatchWithTracing() argument
1485 dispatchWithTracing(methodName, untypedFuture, supplier, null /* dumpProtoProvider */); in dispatchWithTracing()
1489 @NonNull AndroidFuture untypedFuture, @NonNull Supplier<T> supplier, in dispatchWithTracing() argument
1496 result = supplier.get(); in dispatchWithTracing()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DViewInputConnectionTest.java364 private <T> T getOnMainSync(@NonNull Supplier<T> supplier) throws Throwable { in getOnMainSync() argument
366 mActivityRule.runOnUiThread(() -> result.set(supplier.get())); in getOnMainSync()
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/
H A DTransportConnectionTest.java534 private <T> T runInWorkerThread(Supplier<T> supplier) throws Exception { in runInWorkerThread() argument
536 mWorkerHandler.post(() -> future.complete(supplier.get())); in runInWorkerThread()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
H A DControlViewHolder.kt258 supplier: Supplier<out Behavior>,
261 val newBehavior = supplier.get()
/aosp14/frameworks/base/core/java/android/app/
H A DResourcesManager.java999 final ApkAssetsSupplier supplier = new ApkAssetsSupplier(); in createApkAssetsSupplierNotLocked() local
1004 supplier.load(apkKey); in createApkAssetsSupplierNotLocked()
1009 return supplier; in createApkAssetsSupplierNotLocked()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowContainer.java4119 WindowContainer<?> supplier) { in overrideConfigurationPropagation() argument
4120 overrideConfigurationPropagation(receiver, supplier, null /* configurationMerger */); in overrideConfigurationPropagation()
4136 WindowContainer<?> supplier, @Nullable ConfigurationMerger configurationMerger) { in overrideConfigurationPropagation() argument
4144 : supplier.getConfiguration(); in overrideConfigurationPropagation()
4148 supplier.registerConfigurationChangeListener(listener); in overrideConfigurationPropagation()
4153 supplier.unregisterConfigurationChangeListener(listener); in overrideConfigurationPropagation()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DOverviewProxyService.java390 private <T> T verifyCallerAndClearCallingIdentity(String reason, Supplier<T> supplier) {
396 return supplier.get();
/aosp14/frameworks/base/services/core/java/com/android/server/rollback/
H A DRollbackManagerServiceImpl.java296 private <U> U awaitResult(Supplier<U> supplier) { in awaitResult() argument
299 return CompletableFuture.supplyAsync(supplier, mExecutor).get(); in awaitResult()
/aosp14/frameworks/base/tests/PackageWatchdog/src/com/android/server/
H A DPackageWatchdogTest.java115 private boolean retry(Supplier<Boolean> supplier) throws Exception { in retry() argument
117 if (supplier.get()) { in retry()
/aosp14/frameworks/base/services/core/java/com/android/server/audio/
H A DAudioService.java816 @NonNull String id, @Nullable BooleanSupplier supplier) { in queueRestoreWithRemovalIfTrue() argument
819 if (supplier != null) { in queueRestoreWithRemovalIfTrue()
820 mMap.put(id, supplier); in queueRestoreWithRemovalIfTrue()
/aosp14/frameworks/base/core/java/android/widget/
H A DTextView.java14926 final Supplier<TextClassification> supplier = () -> in handleClick() local
14944 CompletableFuture.supplyAsync(supplier) in handleClick()
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...

12