/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/ |
D | PackageMatchingCacheTest.java | 42 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | ExtensionControllerImpl.java | 119 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()
|
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
D | TestUtils.java | 38 public static <T> T getOnMainSync(@NonNull Supplier<T> supplier) { in getOnMainSync() argument 41 instrumentation.runOnMainSync(() -> result.set(supplier.get())); in getOnMainSync()
|
/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/ |
D | TestPermissionUtil.kt | 69 supplier: ThrowingSupplier<T> in runAsShell() 70 ): T = runAsShell(*getNonEmptyVarargs(perm1, perm2, perm3)) { supplier.get() } in runAsShell()
|
D | HandlerUtils.kt | 68 fun <T> visibleOnHandlerThread(handler: Handler, supplier: ThrowingSupplier<T>): T { in visibleOnHandlerThread() 73 rv = Result.success(supplier.get()) in visibleOnHandlerThread()
|
/frameworks/base/services/core/java/com/android/server/location/contexthub/ |
D | ContextHubClientBroker.java | 610 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()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/remote/ |
D | RemoteCallTest.java | 252 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | DejankUtils.java | 207 public static <T> T whitelistIpcs(Supplier<T> supplier) { in whitelistIpcs() argument 214 val = supplier.get(); in whitelistIpcs() 222 return supplier.get(); in whitelistIpcs()
|
/frameworks/libs/modules-utils/java/com/android/modules/utils/testing/ |
D | StaticMockFixtureRule.java | 71 public StaticMockFixtureRule(Supplier<? extends StaticMockFixture>... supplier) { in StaticMockFixtureRule() argument 73 mSupplier = supplier; in StaticMockFixtureRule()
|
/frameworks/base/core/java/com/android/internal/infra/ |
D | AndroidFuture.java | 483 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()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/ |
D | FluidResizeTaskPositioner.java | 58 Supplier<SurfaceControl.Transaction> supplier, in FluidResizeTaskPositioner() argument 64 mTransactionSupplier = supplier; in FluidResizeTaskPositioner()
|
D | VeiledResizeTaskPositioner.java | 74 Supplier<SurfaceControl.Transaction> supplier, Transitions transitions, in VeiledResizeTaskPositioner() argument 80 mTransactionSupplier = supplier; in VeiledResizeTaskPositioner()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | RemoteViewsAdapterTest.java | 225 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()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/ |
D | ExitDesktopTaskTransitionHandler.java | 70 Supplier<SurfaceControl.Transaction> supplier, in ExitDesktopTaskTransitionHandler() argument 73 mTransactionSupplier = supplier; in ExitDesktopTaskTransitionHandler()
|
D | EnterDesktopTaskTransitionHandler.java | 74 Supplier<SurfaceControl.Transaction> supplier) { in EnterDesktopTaskTransitionHandler() argument 76 mTransactionSupplier = supplier; in EnterDesktopTaskTransitionHandler()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/ |
D | BubbleBarExpandedView.java | 294 void setLayerBoundsSupplier(@Nullable Supplier<Rect> supplier) { in setLayerBoundsSupplier() argument 295 mLayerBoundsSupplier = supplier; in setLayerBoundsSupplier()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | RemoteInputConnectionImpl.java | 1484 @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()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/ |
D | TransportConnectionTest.java | 534 private <T> T runInWorkerThread(Supplier<T> supplier) throws Exception { in runInWorkerThread() argument 536 mWorkerHandler.post(() -> future.complete(supplier.get())); in runInWorkerThread()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | ControlViewHolder.kt | 258 supplier: Supplier<out Behavior>, in bindBehavior() 261 val newBehavior = supplier.get() in bindBehavior()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewInputConnectionTest.java | 364 private <T> T getOnMainSync(@NonNull Supplier<T> supplier) throws Throwable { in getOnMainSync() argument 366 mActivityRule.runOnUiThread(() -> result.set(supplier.get())); in getOnMainSync()
|
/frameworks/base/core/java/android/app/ |
D | ResourcesManager.java | 999 final ApkAssetsSupplier supplier = new ApkAssetsSupplier(); in createApkAssetsSupplierNotLocked() local 1004 supplier.load(apkKey); in createApkAssetsSupplierNotLocked() 1009 return supplier; in createApkAssetsSupplierNotLocked()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowContainer.java | 4119 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
D | OverviewProxyService.java | 390 private <T> T verifyCallerAndClearCallingIdentity(String reason, Supplier<T> supplier) { 396 return supplier.get();
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | RollbackManagerServiceImpl.java | 296 private <U> U awaitResult(Supplier<U> supplier) { in awaitResult() argument 299 return CompletableFuture.supplyAsync(supplier, mExecutor).get(); in awaitResult()
|
/frameworks/base/tests/PackageWatchdog/src/com/android/server/ |
D | PackageWatchdogTest.java | 115 private boolean retry(Supplier<Boolean> supplier) throws Exception { in retry() argument 117 if (supplier.get()) { in retry()
|