/packages/services/Car/tests/CarLibUnitTest/src/android/car/media/ |
D | CarAudioManagerUnitTest.java | 109 private static final Executor DIRECT_EXECUTOR = Runnable::run; field in CarAudioManagerUnitTest 607 .that(mCarAudioManager.registerCarVolumeGroupEventCallback(DIRECT_EXECUTOR, in registerCarVolumeGroupEventCallback() 614 mCarAudioManager.registerCarVolumeGroupEventCallback(DIRECT_EXECUTOR, in registerCarVolumeGroupEventCallback_withMultipleCallbacks() 620 .that(mCarAudioManager.registerCarVolumeGroupEventCallback(DIRECT_EXECUTOR, in registerCarVolumeGroupEventCallback_withMultipleCallbacks() 631 .that(mCarAudioManager.registerCarVolumeGroupEventCallback(DIRECT_EXECUTOR, in registerCarVolumeGroupEventCallback_withServiceReturnsFalse_returnsFalse() 639 mCarAudioManager.registerCarVolumeGroupEventCallback(DIRECT_EXECUTOR, in registerCarVolumeGroupEventCallback_withSameCallbackforMultipleTimes_returnsFalse() 644 DIRECT_EXECUTOR, mVolumeGroupEventCallbackMock1)).isFalse(); in registerCarVolumeGroupEventCallback_withSameCallbackforMultipleTimes_returnsFalse() 661 mCarAudioManager.registerCarVolumeGroupEventCallback(DIRECT_EXECUTOR, in registerCarVolumeGroupEventCallback_withNullCallback_fails() 676 .registerCarVolumeGroupEventCallback(DIRECT_EXECUTOR, in registerCarVolumeGroupEventCallback_withServiceRemoteException_returnsFalse() 685 mCarAudioManager.registerCarVolumeGroupEventCallback(DIRECT_EXECUTOR, in unregisterCarVolumeGroupEventCallback_withPartOfCallbacks() [all …]
|
/packages/modules/AppSearch/testing/mockingservicestests/src/com/android/server/appsearch/ |
D | ServiceAppSearchConfigTest.java | 19 import static com.android.internal.util.ConcurrentUtils.DIRECT_EXECUTOR; 95 FrameworkServiceAppSearchConfig.create(DIRECT_EXECUTOR); in testDefaultValues_allCachedValue() 183 FrameworkServiceAppSearchConfig.create(DIRECT_EXECUTOR); in testCustomizedValue_minTimeIntervalBetweenSamplesMillis() 197 FrameworkServiceAppSearchConfig.create(DIRECT_EXECUTOR); in testCustomizedValueOverride_minTimeIntervalBetweenSamplesMillis() 249 FrameworkServiceAppSearchConfig.create(DIRECT_EXECUTOR); in testCustomizedValue_allSamplingIntervals() 305 FrameworkServiceAppSearchConfig.create(DIRECT_EXECUTOR); in testCustomizedValueOverride_allSamplingIntervals() 374 FrameworkServiceAppSearchConfig.create(DIRECT_EXECUTOR); in testFallbackToDefaultSamplingValue_useHardCodedDefault() 398 FrameworkServiceAppSearchConfig.create(DIRECT_EXECUTOR); in testFallbackDefaultSamplingValue_useConfiguredDefault() 421 FrameworkServiceAppSearchConfig.create(DIRECT_EXECUTOR); in testFallbackDefaultSamplingValue_defaultValueChanged() 456 FrameworkServiceAppSearchConfig.create(DIRECT_EXECUTOR); in testShouldNotFallBack_ifValueConfigured() [all …]
|
D | MockingServiceOptimizeStrategyTest.java | 18 import static com.android.internal.util.ConcurrentUtils.DIRECT_EXECUTOR; 64 FrameworkServiceAppSearchConfig.create(DIRECT_EXECUTOR); in testShouldNotOptimize_overOtherThresholds_underMinTimeThreshold()
|
D | AppSearchManagerServiceTest.java | 24 import static com.android.internal.util.ConcurrentUtils.DIRECT_EXECUTOR; 261 FrameworkServiceAppSearchConfig.create(DIRECT_EXECUTOR); in setUp()
|
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/ |
D | Executors.java | 31 private static final Executor DIRECT_EXECUTOR = Runnable::run; field in Executors 37 return sUseDirectExecutorForTest ? DIRECT_EXECUTOR : ASYNC_EXECUTOR; in getAsyncExecutor() 42 return DIRECT_EXECUTOR; in getDirectExecutor()
|
/packages/services/Car/tests/CarLibTests/src/android/car/ |
D | CarProjectionManagerTest.java | 81 private static final Executor DIRECT_EXECUTOR = Runnable::run; field in CarProjectionManagerTest 163 DIRECT_EXECUTOR, in keyEventListener_registerMultipleEventListeners() local 170 DIRECT_EXECUTOR, in keyEventListener_registerMultipleEventListeners() 197 mProjectionManager.addKeyEventHandler(events, DIRECT_EXECUTOR, eventHandler); in keyEventHandler_canRegisterAllEvents() 230 DIRECT_EXECUTOR, in keyEventHandler_whenRegisteredAgain_replacesEventList() local 238 DIRECT_EXECUTOR, in keyEventHandler_whenRegisteredAgain_replacesEventList() local 252 DIRECT_EXECUTOR, in keyEventHandler_removed_noLongerFires() local
|
/packages/services/Car/tests/carservice_test/src/com/android/car/telemetry/ |
D | CarTelemetryManagerSpyServiceTest.java | 65 private static final Executor DIRECT_EXECUTOR = Runnable::run; field in CarTelemetryManagerSpyServiceTest 131 CONFIG_NAME, DIRECT_EXECUTOR, mMockMetricsReportCallback); in testGetFinishedReport_multipleReports() 152 CONFIG_NAME, DIRECT_EXECUTOR, mMockMetricsReportCallback); in testGetFinishedReport_validFdButNoReport() 173 CONFIG_NAME, DIRECT_EXECUTOR, mMockMetricsReportCallback); in testGetFinishedReport_telemetryError() 194 CONFIG_NAME, DIRECT_EXECUTOR, mMockMetricsReportCallback); in testGetFinishedReport_badFd_shouldReturnRuntimeErrorStatus()
|
/packages/services/Car/car-lib/src/android/car/util/concurrent/ |
D | AndroidFuture.java | 59 private static final Executor DIRECT_EXECUTOR = Runnable::run; field in AndroidFuture 67 private @Nullable Executor mListenerExecutor = DIRECT_EXECUTOR; 181 return whenCompleteAsync(action, DIRECT_EXECUTOR); in whenComplete() 229 if (mListenerExecutor == DIRECT_EXECUTOR) { in callListenerAsync() 301 return thenComposeAsync(fn, DIRECT_EXECUTOR); in thenCompose() 362 return thenApplyAsync(fn, DIRECT_EXECUTOR); in thenApply() 470 return supplyAsync(supplier, DIRECT_EXECUTOR); in supply()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/concurrent/ |
D | Executors.java | 35 private static final Executor DIRECT_EXECUTOR = Runnable::run; field in Executors 51 return DIRECT_EXECUTOR; in directExecutor()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/ |
D | CustomAudienceServiceImplTest.java | 112 private static final ExecutorService DIRECT_EXECUTOR = MoreExecutors.newDirectExecutorService(); field in CustomAudienceServiceImplTest 153 DIRECT_EXECUTOR, in setup() 305 DIRECT_EXECUTOR, in testJoinCustomAudience_notInBinderThread() 621 DIRECT_EXECUTOR, in testFetchAndJoinCustomAudience_notInBinderThread() 764 DIRECT_EXECUTOR, in testLeaveCustomAudience_notInBinderThread() 1046 DIRECT_EXECUTOR, in testAppImportanceDisabledCallerInBackground_joinCustomAudienceSucceeds() 1150 DIRECT_EXECUTOR, in testAppImportanceDisabledCallerInBackground_leaveCustomAudienceSucceeds() 1275 DIRECT_EXECUTOR, in testAppImportanceDisabledCallerInBackground_overrideCustomAudienceSucceeds() 1384 DIRECT_EXECUTOR, in testAppImportanceDisabledCallerInBackground_removeCustomAudienceOverrideSucceeds() 1472 DIRECT_EXECUTOR, in testAppImportanceDisabledCallerInBackground_resetOverridesSucceeds() [all …]
|
D | FetchCustomAudienceImplTest.java | 172 private static final ExecutorService DIRECT_EXECUTOR = MoreExecutors.newDirectExecutorService(); field in FetchCustomAudienceImplTest 1415 DIRECT_EXECUTOR, in getImplWithFlags()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | UpdateAdCounterHistogramWorkerTest.java | 78 private static final ExecutorService DIRECT_EXECUTOR = MoreExecutors.newDirectExecutorService(); field in UpdateAdCounterHistogramWorkerTest 98 DIRECT_EXECUTOR, in setup() 178 DIRECT_EXECUTOR, in testWorkerFeatureFlagDisabledStopsAndNotifiesFailure()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | WifiTetherUtil.java | 43 ConcurrentUtils.DIRECT_EXECUTOR, callback); in startTethering()
|
/packages/modules/AppSearch/testing/mockingservicestests/src/com/android/server/appsearch/stats/ |
D | MockingPlatformLoggerTest.java | 19 import static com.android.internal.util.ConcurrentUtils.DIRECT_EXECUTOR; 61 mAppSearchConfig = FrameworkServiceAppSearchConfig.create(DIRECT_EXECUTOR); in setUp()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/ |
D | ConcurrentUtilsTest.java | 99 ConcurrentUtils.DIRECT_EXECUTOR.execute(() -> { in testDirectExecutor()
|
/packages/services/Car/car-lib/src/com/android/car/internal/util/ |
D | ConcurrentUtils.java | 47 public static final Executor DIRECT_EXECUTOR = new DirectExecutor(); field in ConcurrentUtils
|
/packages/services/Mms/src/com/android/mms/service/metrics/ |
D | MmsMetricsCollector.java | 156 ConcurrentUtils.DIRECT_EXECUTOR, this); in registerAtom()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/ |
D | ProtectedSignalsServiceImplTest.java | 96 private static final ExecutorService DIRECT_EXECUTOR = MoreExecutors.newDirectExecutorService(); field in ProtectedSignalsServiceImplTest 139 DIRECT_EXECUTOR, in setup()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/property/ |
D | CarPropertyEventCallbackControllerUnitTest.java | 96 private static final Executor DIRECT_EXECUTOR = Runnable::run; field in CarPropertyEventCallbackControllerUnitTest 101 new CarPropertyEventCallbackController(mCarPropertyEventCallback, DIRECT_EXECUTOR); in setUp()
|
/packages/services/Car/service/src/com/android/car/stats/ |
D | CarStatsService.java | 108 ConcurrentUtils.DIRECT_EXECUTOR, in init()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/ |
D | HotspotRowTest.java | 144 eq(ConcurrentUtils.DIRECT_EXECUTOR), any()); in onNotifyChange_togglesHotspot()
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | WatchdogPerfHandler.java | 354 PULL_ATOM_METADATA, ConcurrentUtils.DIRECT_EXECUTOR, this::onPullAtom); in init() 356 PULL_ATOM_METADATA, ConcurrentUtils.DIRECT_EXECUTOR, this::onPullAtom); in init()
|