/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/ |
D | BusinessLogicDeviceExecutorTest.java | 69 private BusinessLogicExecutor mExecutor; field in BusinessLogicDeviceExecutorTest 74 mExecutor = new BusinessLogicDeviceExecutor(mContext, this, new ArrayList<String>()); in setUp() 84 mExecutor.invokeMethod(METHOD_1); in testInvokeMethodInThisClass() 91 mExecutor.invokeMethod(OTHER_METHOD_1); in testInvokeMethodInOtherClass() 99 mExecutor.invokeMethod(METHOD_2, ARG_STRING_1, ARG_STRING_2); in testInvokeMethodWithStringArgs() 108 mExecutor.invokeMethod(METHOD_3, ARG_STRING_1); in testInvokeMethodWithStringAndContextArgs() 117 mExecutor.invokeMethod(METHOD_4, ARG_STRING_1); in testInvokeMethodWithContextAndStringArgs() 126 mExecutor.invokeMethod(METHOD_5, ARG_STRING_1, ARG_STRING_2); in testInvokeMethodWithStringArrayArg() 135 mExecutor.invokeMethod(METHOD_5); in testInvokeMethodWithEmptyStringArrayArg() 143 mExecutor.invokeMethod(METHOD_6, ARG_STRING_1, ARG_STRING_2); in testInvokeMethodWithStringAndStringArrayArgs() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaRouter2Test.java | 85 private Executor mExecutor; field in MediaRouter2Test 105 mExecutor = Executors.newSingleThreadExecutor(); in setUp() 116 mRouter2.registerRouteCallback(mExecutor, mRouterDummyCallback, preference); in setUp() 147 mRouter2.registerRouteCallback(mExecutor, routeCallback, LIVE_AUDIO_DISCOVERY_PREFERENCE); in testGetRoutesAfterCreation() 179 Executor executor = mExecutor; in testRegisterTransferCallbackWithInvalidArguments() 231 mRouter2.registerRouteCallback(mExecutor, routeCallback, EMPTY_DISCOVERY_PREFERENCE); in testTransferToSuccess() 234 mRouter2.registerTransferCallback(mExecutor, controllerCallback); in testTransferToSuccess() 278 mRouter2.registerRouteCallback(mExecutor, routeCallback, EMPTY_DISCOVERY_PREFERENCE); in testTransferToFailure() 281 mRouter2.registerTransferCallback(mExecutor, transferCallback); in testTransferToFailure() 349 mRouter2.registerRouteCallback(mExecutor, routeCallback, EMPTY_DISCOVERY_PREFERENCE); in testTransferToTwice() [all …]
|
D | SystemMediaRouter2Test.java | 88 private Executor mExecutor; field in SystemMediaRouter2Test 117 mExecutor = Executors.newSingleThreadExecutor(); in setUp() 132 mAppRouter2.registerRouteCallback(mExecutor, mAppRouterPlaceHolderCallback, preference); in setUp() 241 mAppRouter2.registerRouteCallback(mExecutor, mAppRouterPlaceHolderCallback, in testRouteCallbackOnRoutesAdded() 261 mSystemRouter2ForCts.registerRouteCallback(mExecutor, routeCallback, in testRouteCallbackOnRoutesAdded() 270 mAppRouter2.registerRouteCallback(mExecutor, mAppRouterPlaceHolderCallback, in testRouteCallbackOnRoutesRemoved() 289 mSystemRouter2ForCts.registerRouteCallback(mExecutor, routeCallback, in testRouteCallbackOnRoutesRemoved() 298 mAppRouter2.registerRouteCallback(mExecutor, mAppRouterPlaceHolderCallback, in testRouteCallbackOnRoutesChanged() 327 mSystemRouter2ForCts.registerRouteCallback(mExecutor, routeCallback, in testRouteCallbackOnRoutesChanged() 370 mSystemRouter2ForCts.registerRouteCallback(mExecutor, routeCallback, in testRouteCallbackOnRoutesChanged_whenLocalVolumeChanged() [all …]
|
D | MediaDrmMockTest.java | 654 private ThreadPoolExecutor mExecutor; field in MediaDrmMockTest 671 mExecutor = new ScheduledThreadPoolExecutor(1); in testEventNoSessionNoDataWithExecutor() 701 if (mExecutor != null) { in testEventNoSessionNoData() 702 mMediaDrm.setOnEventListener(mExecutor, MediaDrmMockTest.this); in testEventNoSessionNoData() 737 mExecutor = new ScheduledThreadPoolExecutor(1); in testEventWithSessionAndDataWithExecutor() 775 if (mExecutor != null) { in testEventWithSessionAndData() 776 mMediaDrm.setOnEventListener(mExecutor, MediaDrmMockTest.this); in testEventWithSessionAndData() 823 mExecutor = new ScheduledThreadPoolExecutor(1); in testExpirationUpdateWithExecutor() 857 if (mExecutor != null) { in testExpirationUpdate() 858 mMediaDrm.setOnExpirationUpdateListener(mExecutor, MediaDrmMockTest.this); in testExpirationUpdate() [all …]
|
D | MediaRoute2ProviderServiceTest.java | 76 private Executor mExecutor; field in MediaRoute2ProviderServiceTest 93 mExecutor = Executors.newSingleThreadExecutor(); in setUp() 103 mRouter2.registerRouteCallback(mExecutor, mRouterDummyCallback, preference); in setUp() 259 mRouter2.registerRouteCallback(mExecutor, routeCallback, in testNotifyRoutesInvokesMediaRouter2RouteCallback() 423 mRouter2.registerRouteCallback(mExecutor, dummyCallback, in testSessionRelatedCallbacks() 425 mRouter2.registerTransferCallback(mExecutor, transferCallback); in testSessionRelatedCallbacks() 426 mRouter2.registerControllerCallback(mExecutor, controllerCallback); in testSessionRelatedCallbacks() 517 mRouter2.registerRouteCallback(mExecutor, dummyCallback, in testNotifySessionReleased() 519 mRouter2.registerTransferCallback(mExecutor, transferCallback); in testNotifySessionReleased() 562 mRouter2.registerRouteCallback(mExecutor, routeCallback, in testOnDiscoveryPreferenceChanged() [all …]
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarPowerManagerTest.java | 52 private final Executor mExecutor = mContext.getMainExecutor(); field in CarPowerManagerTest 90 mCarPowerManager.addPowerPolicyListener(mExecutor, filterAudio, listenerAudioOne); in testApplyNewPowerPolicy() 91 mCarPowerManager.addPowerPolicyListener(mExecutor, filterAudio, listenerAudioTwo); in testApplyNewPowerPolicy() 92 mCarPowerManager.addPowerPolicyListener(mExecutor, filterWifi, listenerWifi); in testApplyNewPowerPolicy() 93 mCarPowerManager.addPowerPolicyListener(mExecutor, filterLocation, listenerLocation); in testApplyNewPowerPolicy() 117 mExecutor.execute(() -> { in makeSureExecutorReady()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | EasyConnectStatusCallbackTest.java | 60 protected final Executor mExecutor; field in EasyConnectStatusCallbackTest 63 mExecutor = new HandlerExecutor(new Handler(mHandlerThread.getLooper())); 157 EASY_CONNECT_NETWORK_ROLE_STA, mExecutor, mEasyConnectStatusCallback); in testConfiguratorInitiatorOnFailure() 189 mWifiManager.startEasyConnectAsEnrolleeInitiator(TEST_DPP_URI, mExecutor, in testEnrolleeInitiatorOnFailure() 226 EASY_CONNECT_CRYPTOGRAPHY_CURVE_PRIME256V1, mExecutor, in testEnrolleeResponderUriGeneration() 260 EASY_CONNECT_CRYPTOGRAPHY_CURVE_PRIME256V1, mExecutor, in testStartEasyConnectAsEnrolleeResponderThrowsIllegalArgumentExceptionOnWrongDeviceInfo()
|
D | WifiManagerTest.java | 295 protected final Executor mExecutor; field in WifiManagerTest 298 mExecutor = new HandlerExecutor(new Handler(mHandlerThread.getLooper())); 561 mWifiManager.registerSubsystemRestartTrackingCallback(mExecutor, in testRestartWifiSubsystem() 3143 mWifiManager.addWifiVerboseLoggingStatusChangedListener(mExecutor, listener); in testVerboseLoggingEnabled() 3719 mWifiManager.startSubscriptionProvisioning(osuProvider, mExecutor, in testStartSubscriptionProvisioning() 4218 mWifiManager.registerCoexCallback(mExecutor, callback); in testCoexMethodsShouldFailNoPermission() 4256 mWifiManager.registerCoexCallback(mExecutor, callback); in testListenOnCoexUnsafeChannels() 4578 mWifiManager.addSuggestionUserApprovalStatusListener(mExecutor, listener); in testAddRemoveSuggestionUserApprovalStatusListener()
|
/cts/tests/tests/hardware/src/android/hardware/biometrics/cts/ |
D | BiometricPromptTest.java | 45 private final Executor mExecutor = runnable -> mHandler.post(runnable); field in BiometricPromptTest 87 builder.setNegativeButton(negativeButtonText, mExecutor, (dialog, which) -> { in test_authenticate_fingerprint() 97 prompt.authenticate(cancellationSignal, mExecutor, mAuthenticationCallback); in test_authenticate_fingerprint() 112 .setNegativeButton("Cancel", mExecutor, (dialog, which) -> { in test_isConfirmationRequired() 124 .setNegativeButton("Cancel", mExecutor, (dialog, which) -> { in test_setAllowedAuthenticators_withoutDeviceCredential()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | CredentialManagementAppActivity.java | 103 private final ExecutorService mExecutor = Executors.newSingleThreadExecutor(); field in CredentialManagementAppActivity 125 mExecutor.execute( in finish() 217 mExecutor.execute(() -> { in checkIsCredentialManagementApp() 225 mExecutor.execute(() -> { in checkAuthenticationPolicy() 234 mExecutor.execute(() -> { in generateKeyPair() 272 mExecutor.execute(() -> { in getPrivateKeyAndSignData() 297 mExecutor.execute(() -> { in getPublicKeyAndVerifySignature() 325 mExecutor.execute(() -> { in removeCredentialManagementApp()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | DisplayHashManagerTest.java | 88 private Executor mExecutor; field in DisplayHashManagerTest 122 mExecutor = context.getMainExecutor(); in setUp() 169 mTestView.generateDisplayHash(mPhashAlgorithm, new Rect(), mExecutor, in testGenerateAndVerifyDisplayHash_EmptyBounds() 199 mExecutor, mSyncDisplayHashResultCallback); in testGenerateDisplayHash_BoundsOutOfView() 228 mTestView.generateDisplayHash(mPhashAlgorithm, null, mExecutor, in testGenerateDisplayHash_ViewOffscreen() 276 mTestView.generateDisplayHash(mPhashAlgorithm, null, mExecutor, in testGenerateDisplayHash_WindowOffscreen() 287 mTestView.generateDisplayHash("fake hash", null, mExecutor, in testGenerateDisplayHash_InvalidHashAlgorithm() 344 mTestView.generateDisplayHash(mPhashAlgorithm, null, mExecutor, in testGenerateDisplayHash_Throttle() 349 mTestView.generateDisplayHash(mPhashAlgorithm, null, mExecutor, in testGenerateDisplayHash_Throttle() 403 mTestView.generateDisplayHash(mPhashAlgorithm, bounds, mExecutor, in generateDisplayHash()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/ |
D | TestSensorOperation.java | 67 private final Executor mExecutor; field in TestSensorOperation 105 mExecutor = executor; in TestSensorOperation() 143 mExecutor.execute(mSensorManager, listener); in execute() 152 mExecutor.execute(mSensorManager, listener); in execute() 177 TestSensorOperation operation = new TestSensorOperation(mEnvironment, mExecutor); in clone()
|
/cts/hostsidetests/appsecurity/test-apps/rro/OverlayApp/src/com/android/cts/overlay/app/ |
D | OverlayableTest.java | 61 private Executor mExecutor; field in OverlayableTest 65 mExecutor = (command) -> new Thread(command).start(); in setUp() 85 mExecutor.execute(task); in assertOverlayEnabled()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/ |
D | AbstractUserAuthenticationTest.java | 102 protected final Executor mExecutor = mHandler::post; field in AbstractUserAuthenticationTest 329 builder.setNegativeButton("Cancel", mExecutor, (dialog, which) -> { in testCredentialBoundEncryption() 378 prompt.authenticate(crypto, new CancellationSignal(), mExecutor, callback); in testCredentialBoundEncryption() 380 prompt.authenticate(new CancellationSignal(), mExecutor, callback); in testCredentialBoundEncryption()
|
D | CredentialCryptoTests.java | 49 private final Executor mExecutor = mHandler::post; field in CredentialCryptoTests 139 prompt.authenticate(new CancellationSignal(), mExecutor, new AuthenticationCallback() { in testTimedKey()
|
D | BiometricStrongTests.java | 221 builder.setNegativeButton("Cancel", mExecutor, (dialog, which) -> { in testBiometricBoundEncryption() 225 prompt.authenticate(crypto, new CancellationSignal(), mExecutor, in testBiometricBoundEncryption()
|
D | AbstractBaseTest.java | 45 protected final Executor mExecutor = mHandler::post; field in AbstractBaseTest
|
/cts/tests/tests/wifi/src/android/net/wifi/rtt/cts/ |
D | WifiRttTest.java | 117 mWifiRttManager.startRanging(request, mExecutor, callback); in testRangingToTest11mcAp() 252 mWifiRttManager.startRanging(builder.build(), mExecutor, new ResultCallback()); in testRequestTooLarge() local 277 mWifiRttManager.startRanging(request, mExecutor, callback); in testRangingToTestApWithResponderLocation() 425 mWifiRttManager.startRanging(request, mExecutor, callback); in testAwareRttWithMacAddress() 445 mWifiRttManager.startRanging(request, mExecutor, callback); in testAwareRttWithPeerHandle() 498 mWifiRttManager.startRanging(request, mExecutor, callback); in testRangingToTestNon11mcAp()
|
D | TestBase.java | 71 protected final Executor mExecutor; field in TestBase 76 mExecutor = new HandlerExecutor(new Handler(mHandlerThread.getLooper()));
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | HidDeviceActivity.java | 55 private ExecutorService mExecutor; field in HidDeviceActivity 114 mExecutor = Executors.newSingleThreadExecutor(); in onCreate() 185 && mBluetoothHidDevice.registerApp(mSdpSettings, null, mOutQos, mExecutor, in register()
|
/cts/hostsidetests/car/app/src/android/car/cts/app/ |
D | PowerPolicyTestClient.java | 48 private final Executor mExecutor = Executors.newFixedThreadPool(MAX_THREAD_POOL_SIZE); field in PowerPolicyTestClient 164 mPowerManager.addPowerPolicyListener(mExecutor, filter, listener); in registerPowerPolicyListener()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/mtp/ |
D | MtpHostTestActivity.java | 114 private ExecutorService mExecutor; field in MtpHostTestActivity 157 mExecutor = Executors.newSingleThreadExecutor(); in onCreate() 184 mExecutor.execute(new Runnable() { in handleMessage()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | RemoteViewsRecyclingTest.java | 72 private Executor mExecutor = runnable -> runnable.run(); field in RemoteViewsRecyclingTest
|