/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/ |
D | TestSensorOperation.java | 93 public TestSensorOperation(TestSensorEnvironment environment, Executor executor) { in TestSensorOperation() argument 94 this(environment, executor, null /* handler */); in TestSensorOperation() 102 Executor executor, in TestSensorOperation() argument 105 mExecutor = executor; in TestSensorOperation() 245 Executor executor = new Executor() { in createOperation() local 257 return new TestSensorOperation(environment, executor); in createOperation() 273 Executor executor = new Executor() { in createOperation() local 347 return new TestSensorOperation(environment, executor); in createOperation() 361 Executor executor = new Executor() { in createOperation() local 373 return new TestSensorOperation(environment, executor); in createOperation() [all …]
|
D | ParallelSensorOperation.java | 86 ThreadPoolExecutor executor = new ThreadPoolExecutor( in execute() local 92 executor.allowCoreThreadTimeOut(true); in execute() 93 executor.prestartAllCoreThreads(); in execute() 98 Future<SensorOperation> future = executor.submit(new Callable<SensorOperation>() { in execute() 135 executor.shutdownNow(); in execute()
|
/cts/tests/tests/telephony/current/LocationAccessingApp/src/android/telephony/cts/locationaccessingapp/ |
D | CtsLocationAccessService.java | 106 Executor executor = new Handler(handlerThread.getLooper())::post; in listenForCellInfo() local 107 PhoneStateListener listener = new PhoneStateListener(executor) { in listenForCellInfo() 130 Executor executor = new Handler(handlerThread.getLooper())::post; in listenForCellLocation() local 131 PhoneStateListener listener = new PhoneStateListener(executor) { in listenForCellLocation() 154 Executor executor = new Handler(handlerThread.getLooper())::post; in listenForServiceState() local 155 PhoneStateListener listener = new PhoneStateListener(executor) { in listenForServiceState() 182 Executor executor = new Handler(handlerThread.getLooper())::post; in requestCellInfoUpdate() local 190 mTelephonyManager.requestCellInfoUpdate(executor, cb); in requestCellInfoUpdate()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaCommunicationManagerTest.java | 74 Executor executor = Executors.newSingleThreadExecutor(); in testGetSession2Tokens() local 79 mManager.registerSessionCallback(executor, managerCallback); in testGetSession2Tokens() 82 .setSessionCallback(executor, sessionCallback) in testGetSession2Tokens() 95 Executor executor = Executors.newSingleThreadExecutor(); in testManagerSessionCallback() local 100 mManager.registerSessionCallback(executor, managerCallback); in testManagerSessionCallback() 104 .setSessionCallback(executor, sessionCallback) in testManagerSessionCallback() 117 .setSessionCallback(executor, sessionCallback).build(); in testManagerSessionCallback()
|
D | UtilsTest.java | 51 final Executor executor = new Executor() { in testListenerList() local 59 listeners.add(key, executor, (int eventCode, Long l) -> { in testListenerList()
|
/cts/tests/framework/base/biometrics/apps/biometrics/src/android/server/biometrics/ |
D | Class3BiometricActivity.java | 38 final Executor executor = handler::post; in onCreate() local 45 .setNegativeButton("Negative Button", executor, (dialog, which) -> { in onCreate() 51 bp.authenticate(new CancellationSignal(), executor, callbackHelper); in onCreate()
|
D | Class2BiometricOrCredentialActivity.java | 39 final Executor executor = handler::post; in onCreate() local 50 bp.authenticate(new CancellationSignal(), executor, callbackHelper); in onCreate()
|
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/ |
D | DefaultSmsAppHelper.java | 47 Executor executor = context.getMainExecutor(); in ensureDefaultSmsApp() local 59 executor, in ensureDefaultSmsApp() 82 Executor executor = context.getMainExecutor(); in stopBeingDefaultSmsApp() local 94 executor, in stopBeingDefaultSmsApp()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CtsRoleManagerAdapter.java | 91 Executor executor = mContext.getMainExecutor(); in addRoleHolder() local 95 RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP, user, executor, in addRoleHolder() 111 Executor executor = mContext.getMainExecutor(); in removeRoleHolder() local 114 mRoleManager.removeRoleHolderAsUser(roleName, packageName, 0, user, executor, in removeRoleHolder()
|
D | CallRedirectionServiceTest.java | 253 Executor executor = mContext.getMainExecutor(); in addRoleHolder() local 257 packageName, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP, user, executor, in addRoleHolder() 272 Executor executor = mContext.getMainExecutor(); in removeRoleHolder() local 276 packageName, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP, user, executor, in removeRoleHolder()
|
D | ThirdPartyCallScreeningServiceTest.java | 560 Executor executor = mContext.getMainExecutor(); in addRoleHolder() local 564 packageName, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP, user, executor, in addRoleHolder() 579 Executor executor = mContext.getMainExecutor(); in removeRoleHolder() local 583 packageName, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP, user, executor, in removeRoleHolder()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ExtraBusinessLogicTestCase.java | 62 BusinessLogicExecutor executor = new BusinessLogicDeviceExecutor( in handleBusinessLogic() local 69 mBusinessLogic.applyLogicFor(extraBusinessLogic, executor); in handleBusinessLogic()
|
D | BusinessLogicTestCase.java | 78 …BusinessLogicExecutor executor = new BusinessLogicDeviceExecutor(getContext(), this, mBusinessLogi… in executeBusinessLogicForTest() local 79 mBusinessLogic.applyLogicFor(testName, executor); in executeBusinessLogicForTest()
|
/cts/tests/framework/base/biometrics/src/android/server/biometrics/ |
D | BiometricTestBase.java | 274 final Executor executor = handler::post; in showCredentialOnlyBiometricPromptWithContents() local 283 prompt.authenticate(cancellationSignal, executor, callback); in showCredentialOnlyBiometricPromptWithContents() 310 final Executor executor = handler::post; in showDeviceCredentialAllowedBiometricPrompt() local 319 prompt.authenticate(cancellationSignal, executor, callback); in showDeviceCredentialAllowedBiometricPrompt() 341 final Executor executor = handler::post; in showDefaultBiometricPrompt() local 347 .setNegativeButton("Negative Button", executor, (dialog, which) -> { in showDefaultBiometricPrompt() 353 prompt.authenticate(cancellationSignal, executor, callback); in showDefaultBiometricPrompt() 367 final Executor executor = handler::post; in showDefaultBiometricPromptWithContents() local 373 .setNegativeButton(negativeButtonText, executor, (dialog, which) -> { in showDefaultBiometricPromptWithContents() 379 prompt.authenticate(new CancellationSignal(), executor, callback); in showDefaultBiometricPromptWithContents() [all …]
|
/cts/tests/appsearch/src/com/android/cts/appsearch/app/ |
D | AppSearchSessionCtsTest.java | 40 @NonNull String dbName, @NonNull ExecutorService executor) { in createSearchSession() argument 43 new AppSearchManager.SearchContext.Builder(dbName).build(), executor); in createSearchSession()
|
/cts/tests/tests/time/src/android/app/time/cts/ |
D | TimeManagerTest.java | 105 ExecutorService executor = Executors.newSingleThreadExecutor(); in testManageConfiguration() local 107 timeManager.addTimeZoneDetectorListener(executor, listener); in testManageConfiguration() 173 executor.shutdown(); in testManageConfiguration() 247 ExecutorService executor = Executors.newSingleThreadExecutor(); in testLocationManagerAffectsCapabilities() local 249 timeManager.addTimeZoneDetectorListener(executor, listener); in testLocationManagerAffectsCapabilities() 277 executor.shutdown(); in testLocationManagerAffectsCapabilities()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewRenderProcessClientTest.java | 125 private void testWebViewRenderProcessClientOnExecutor(Executor executor) throws Throwable { in testWebViewRenderProcessClientOnExecutor() argument 142 if (executor == null) { in testWebViewRenderProcessClientOnExecutor() 145 mOnUiThread.setWebViewRenderProcessClient(executor, client); in testWebViewRenderProcessClientOnExecutor()
|
/cts/tests/tests/sensorprivacy/test-apps/utils/src/android/sensorprivacy/cts/testapp/utils/ |
D | Utils.kt | 74 val executor = Executor { in openCam() constant 103 executor, in openCam() 137 cameraManager!!.openCamera(cameraId, executor, cameraDeviceCallback) in openCam()
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | TestSipTransport.java | 57 public TestSipTransport(Executor executor) { in TestSipTransport() argument 58 super(executor); in TestSipTransport()
|
/cts/tests/tests/wifi/src/android/net/wifi/nl80211/cts/ |
D | WifiNl80211ManagerTest.java | 146 TestExecutor executor = new TestExecutor(); in testCountryCodeChangeListener() local 155 assertFalse(manager.registerCountryCodeChangedListener(executor, in testCountryCodeChangeListener()
|
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebViewOnUiThread.java | 121 final Executor executor, final WebViewRenderProcessClient webViewRenderProcessClient) { in setWebViewRenderProcessClient() argument 122 setWebViewRenderProcessClient(mWebView, executor, webViewRenderProcessClient); in setWebViewRenderProcessClient() 131 final Executor executor, in setWebViewRenderProcessClient() argument 134 webView.setWebViewRenderProcessClient(executor, webViewRenderProcessClient) in setWebViewRenderProcessClient()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiManagerTest.java | 990 TestExecutor executor = new TestExecutor(); in startLocalOnlyHotspot() local 996 verifyRegisterSoftApCallback(executor, capabilityCallback); in startLocalOnlyHotspot() 1476 TestExecutor executor = new TestExecutor(); in testStartLocalOnlyHotspotWithConfigBssid() local 1483 verifyRegisterSoftApCallback(executor, capabilityCallback); in testStartLocalOnlyHotspotWithConfigBssid() 1497 mWifiManager.startLocalOnlyHotspot(customConfig, executor, callback); in testStartLocalOnlyHotspotWithConfigBssid() 1503 executor.runAll(); in testStartLocalOnlyHotspotWithConfigBssid() 1535 TestExecutor executor = new TestExecutor(); in testStartLocalOnlyHotspotWithNullBssidConfig() local 1542 mWifiManager.startLocalOnlyHotspot(customConfig, executor, callback); in testStartLocalOnlyHotspotWithNullBssidConfig() 1548 executor.runAll(); in testStartLocalOnlyHotspotWithNullBssidConfig() 2026 private void verifyRegisterSoftApCallback(TestExecutor executor, TestSoftApCallback callback) in verifyRegisterSoftApCallback() argument [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CameraDeviceTest.java | 836 HandlerExecutor executor = new HandlerExecutor(mHandler); in testSessionConfiguration() local 840 SessionConfiguration.SESSION_REGULAR, outConfigs, executor, mSessionMockListener); in testSessionConfiguration() 843 … SessionConfiguration.SESSION_HIGH_SPEED, outConfigs, executor, mSessionMockListener); in testSessionConfiguration() 860 regularSessionConfig.getExecutor(), executor); in testSessionConfiguration() 1697 final Executor executor = useExecutor ? new HandlerExecutor(mHandler) : null; in captureSingleShot() local 1709 if (executor != null) { in captureSingleShot() 1710 startCapture(requestBuilder.build(), repeating, mockCaptureCallback, executor); in captureSingleShot() local 1728 if (executor != null) { in captureSingleShot() 1729 mSession.captureSingleRequest(singleRequest, executor, resultCallback); in captureSingleShot() 1736 if (executor != null) { in captureSingleShot() [all …]
|
/cts/tests/translation/src/android/translation/cts/ |
D | CtsTestIme.java | 89 final Executor executor = Executors.newSingleThreadExecutor(); in registerUiTranslationStateCallback() local 90 manager.registerUiTranslationStateCallback(executor, mCallback); in registerUiTranslationStateCallback()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | FileSystemPermissionTest.java | 860 ExecutorService executor = Executors.newCachedThreadPool(); in testReadingSysFilesDoesntFail() local 861 tryToReadFromAllIn(new File("/sys"), executor); in testReadingSysFilesDoesntFail() 862 executor.shutdownNow(); in testReadingSysFilesDoesntFail() 865 private static void tryToReadFromAllIn(File dir, ExecutorService executor) throws IOException { in tryToReadFromAllIn() argument 878 tryToReadFromAllIn(f, executor); in tryToReadFromAllIn() 880 tryFileOpenRead(f, executor); in tryToReadFromAllIn() 886 private static void tryFileOpenRead(final File f, ExecutorService executor) throws IOException { in tryFileOpenRead() argument 901 future = executor.submit(readFile); in tryFileOpenRead()
|