Home
last modified time | relevance | path

Searched refs:DIRECT_EXECUTOR (Results 1 – 22 of 22) sorted by relevance

/packages/services/Car/tests/CarLibUnitTest/src/android/car/media/
DCarAudioManagerUnitTest.java109 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/
DServiceAppSearchConfigTest.java19 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 …]
DMockingServiceOptimizeStrategyTest.java18 import static com.android.internal.util.ConcurrentUtils.DIRECT_EXECUTOR;
64 FrameworkServiceAppSearchConfig.create(DIRECT_EXECUTOR); in testShouldNotOptimize_overOtherThresholds_underMinTimeThreshold()
DAppSearchManagerServiceTest.java24 import static com.android.internal.util.ConcurrentUtils.DIRECT_EXECUTOR;
261 FrameworkServiceAppSearchConfig.create(DIRECT_EXECUTOR); in setUp()
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/
DExecutors.java31 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/
DCarProjectionManagerTest.java81 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/
DCarTelemetryManagerSpyServiceTest.java65 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/
DAndroidFuture.java59 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/
DExecutors.java35 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/
DCustomAudienceServiceImplTest.java112 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 …]
DFetchCustomAudienceImplTest.java172 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/
DUpdateAdCounterHistogramWorkerTest.java78 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/
DWifiTetherUtil.java43 ConcurrentUtils.DIRECT_EXECUTOR, callback); in startTethering()
/packages/modules/AppSearch/testing/mockingservicestests/src/com/android/server/appsearch/stats/
DMockingPlatformLoggerTest.java19 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/
DConcurrentUtilsTest.java99 ConcurrentUtils.DIRECT_EXECUTOR.execute(() -> { in testDirectExecutor()
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DConcurrentUtils.java47 public static final Executor DIRECT_EXECUTOR = new DirectExecutor(); field in ConcurrentUtils
/packages/services/Mms/src/com/android/mms/service/metrics/
DMmsMetricsCollector.java156 ConcurrentUtils.DIRECT_EXECUTOR, this); in registerAtom()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/
DProtectedSignalsServiceImplTest.java96 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/
DCarPropertyEventCallbackControllerUnitTest.java96 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/
DCarStatsService.java108 ConcurrentUtils.DIRECT_EXECUTOR, in init()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
DHotspotRowTest.java144 eq(ConcurrentUtils.DIRECT_EXECUTOR), any()); in onNotifyChange_togglesHotspot()
/packages/services/Car/service/src/com/android/car/watchdog/
DWatchdogPerfHandler.java354 PULL_ATOM_METADATA, ConcurrentUtils.DIRECT_EXECUTOR, this::onPullAtom); in init()
356 PULL_ATOM_METADATA, ConcurrentUtils.DIRECT_EXECUTOR, this::onPullAtom); in init()