/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | TouchExplorerTest.java | 103 private TouchExplorationStubAccessibilityService mService; field in TouchExplorerTest 152 mService = mServiceRule.enableService(); in setUp() 206 mService.assertPropagated( in testSlowSwipe_initiatesTouchExploration() 222 mService.assertPropagated( in testFastSwipe_doesNotInitiateTouchExploration() 266 mService.assertPropagated( in testSingleTap_initiatesTouchExploration() 290 mService.assertPropagated( in testSloppyDoubleTapAccessibilityFocus_performsClick() 313 mService.assertPropagated( in testDoubleTapAccessibilityFocus_performsClick() 331 mService.assertPropagated(TYPE_TOUCH_INTERACTION_START, TYPE_TOUCH_INTERACTION_END); in testDoubleTapNoFocus_doesNotPerformClick() 332 mService.clearEvents(); in testDoubleTapNoFocus_doesNotPerformClick() 352 mService.assertPropagated(TYPE_TOUCH_INTERACTION_START, TYPE_TOUCH_INTERACTION_END); in testDoubleTapAndHoldNoFocus_doesNotPerformLongClick() [all …]
|
D | AccessibilityMagnificationTest.java | 79 private StubMagnificationAccessibilityService mService; field in AccessibilityMagnificationTest 111 mService = mMagnificationAccessibilityServiceRule.enableService(); in setUp() 116 final MagnificationController controller = mService.getMagnificationController(); in testSetScale() 120 mService.runOnServiceSync(() -> result.set(controller.setScale(scale, false))); in testSetScale() 125 mService.runOnServiceSync(() -> result.set(controller.reset(false))); in testSetScale() 133 final MagnificationController controller = mService.getMagnificationController(); in testSetScaleAndCenter() 143 mService.runOnServiceSync(() -> { in testSetScaleAndCenter() 155 mService.runOnServiceSync(() -> result.set(controller.reset(false))); in testSetScaleAndCenter() 163 final MagnificationController controller = mService.getMagnificationController(); in testListener() 171 mService.runOnServiceSync(() -> result.set(controller.setScale(scale, false))); in testListener() [all …]
|
D | AccessibilityButtonTest.java | 58 private StubAccessibilityButtonService mService; field in AccessibilityButtonTest 76 mService = mServiceRule.getService(); in setUp() 77 mButtonController = mService.getAccessibilityButtonController(); in setUp() 91 mService.getAccessibilityButtonController( in testGetAccessibilityButtonControllerByDisplayId_NotReturnNull() 99 final AccessibilityServiceInfo serviceInfo = mService.getServiceInfo(); in testUpdateRequestAccessibilityButtonFlag_targetSdkGreaterThanQ_ignoresUpdate() 102 assertTrue(mService.getApplicationInfo().targetSdkVersion > Build.VERSION_CODES.Q); in testUpdateRequestAccessibilityButtonFlag_targetSdkGreaterThanQ_ignoresUpdate() 105 mService.setServiceInfo(serviceInfo); in testUpdateRequestAccessibilityButtonFlag_targetSdkGreaterThanQ_ignoresUpdate() 107 (mService.getServiceInfo().flags & FLAG_REQUEST_ACCESSIBILITY_BUTTON) in testUpdateRequestAccessibilityButtonFlag_targetSdkGreaterThanQ_ignoresUpdate()
|
D | AccessibilitySoftKeyboardTest.java | 61 private InstrumentedAccessibilityService mService; field in AccessibilitySoftKeyboardTest 85 mService = mServiceRule.getService(); in setUp() 90 final SoftKeyboardController controller = mService.getSoftKeyboardController(); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() 96 assertCanSetAndGetShowModeAndCallbackHappens(SHOW_MODE_HIDDEN, mService); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() 97 assertCanSetAndGetShowModeAndCallbackHappens(SHOW_MODE_IGNORE_HARD_KEYBOARD, mService); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() 98 assertCanSetAndGetShowModeAndCallbackHappens(SHOW_MODE_AUTO, mService); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() 108 final SoftKeyboardController controller = mService.getSoftKeyboardController(); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService() 117 assertCanSetAndGetShowModeAndCallbackHappens(SHOW_MODE_HIDDEN, mService); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService() 129 final int showMode = mService.getOnService(() -> controller.getShowMode()); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService() 135 final SoftKeyboardController controller = mService.getSoftKeyboardController(); in testSwitchToInputMethod() [all …]
|
D | AccessibilityOverlayTest.java | 56 InstrumentedAccessibilityService mService; field in AccessibilityOverlayTest 86 mService = mServiceRule.getService(); in setUp() 92 sUiAutomation.executeAndWaitForEvent(() -> mService.runOnServiceSync(() -> { in testA11yServiceShowsOverlay_shouldAppear() 93 addOverlayWindow(mService, overlayTitle); in testA11yServiceShowsOverlay_shouldAppear() 104 mService, false); in testA11yServiceShowsOverlayOnVirtualDisplay_shouldAppear() 117 final Context newDisplayContext = mService.createDisplayContext(newDisplay); in testA11yServiceShowsOverlayOnVirtualDisplay_shouldAppear() 119 sUiAutomation.executeAndWaitForEvent(() -> mService.runOnServiceSync(() -> { in testA11yServiceShowsOverlayOnVirtualDisplay_shouldAppear()
|
D | AccessibilitySystemActionTest.java | 81 StubSystemActionsAccessibilityService mService; field in AccessibilitySystemActionTest 102 mService = mServiceRule.enableService(); in setUp() 107 mService.setLatch(null); in tearDown() 127 if (!mService.getSystemActions().contains( in testNewActionInGetSystemActions() 139 if (mService.getSystemActions().contains( in testNewActionNotInGetSystemActions() 165 mService.setLatch(latch); in assertRegisterAction() 179 mService.setLatch(latch); in assertUnregisterAction() 197 mService.performGlobalAction(actionId); in assertPerformGlobalAction()
|
/cts/tests/app/src/android/app/cts/ |
D | CloseSystemDialogsTest.java | 100 private ICloseSystemDialogsTestsService mService; field in CloseSystemDialogsTest 173 mService = getService(APP_HELPER); in testCloseSystemDialogs_whenTargetSdkCurrent_isBlockedAndThrows() 175 assertThrows(SecurityException.class, () -> mService.sendCloseSystemDialogsBroadcast()); in testCloseSystemDialogs_whenTargetSdkCurrent_isBlockedAndThrows() 182 mService = getService(APP_HELPER); in testCloseSystemDialogs_whenTargetSdk30_isBlockedButDoesNotThrow() 184 mService.sendCloseSystemDialogsBroadcast(); in testCloseSystemDialogs_whenTargetSdk30_isBlockedButDoesNotThrow() 210 mService = getService(APP_HELPER); in testCloseSystemDialogs_inTrampolineWhenTargetSdkCurrent_isBlockedAndThrows() 212 mService.postNotification(notificationId, new FutureReceiver(result), in testCloseSystemDialogs_inTrampolineWhenTargetSdkCurrent_isBlockedAndThrows() 225 mService = getService(APP_HELPER); in testCloseSystemDialogs_inTrampolineWhenTargetSdk30_isSent() 227 mService.postNotification(notificationId, new FutureReceiver(result), in testCloseSystemDialogs_inTrampolineWhenTargetSdk30_isSent() 242 mService = getService(APP_HELPER); in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdkCurrent_isBlocked() [all …]
|
D | ActivityManager_RunningServiceInfoTest.java | 26 private ComponentName mService; field in ActivityManager_RunningServiceInfoTest 33 mService = new ComponentName(getContext(), MockActivity.class); in setUp() 35 mRunningServiceInfo.service = mService; in setUp() 62 assertEquals(mService, values.service); in testWriteToParcel() 82 assertEquals(mService, values.service); in testReadFromParcel()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CallDiagnosticServiceTest.java | 45 private CtsCallDiagnosticService mService; field in CallDiagnosticServiceTest 85 assertEquals(1, mService.getCalls().size()); in testAddCallAndPassValues() 87 mService.getCalls().get(0); in testAddCallAndPassValues() 130 mService.getCallChangeLatch().await(TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testAddMultipleCalls() 132 assertEquals(2, mService.getCalls().size()); in testAddMultipleCalls() 139 mService.getCallChangeLatch().await(TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testAddMultipleCalls() 141 assertEquals(1, mService.getCalls().size()); in testAddMultipleCalls() 170 mService.getBluetoothCallQualityReportLatch().await( in testBluetoothCallQualityReport() 172 assertEquals(report, mService.getBluetoothCallQualityReport()); in testBluetoothCallQualityReport() 188 mService.getCallAudioStateLatch().await(TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testCallAudioRoute() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaRoute2ProviderServiceTest.java | 78 private StubMediaRoute2ProviderService mService; field in MediaRoute2ProviderServiceTest 111 mService = service; in setUp() 123 if (mService != null) { in tearDown() 124 mService.clear(); in tearDown() 125 mService = null; in tearDown() 131 assertEquals(0, mService.getAllSessionInfo().size()); in testGetSessionInfoAndGetAllSessionInfo() 138 mService.notifySessionCreated(MediaRoute2ProviderService.REQUEST_ID_NONE, sessionInfo1); in testGetSessionInfoAndGetAllSessionInfo() 139 assertEquals(1, mService.getAllSessionInfo().size()); in testGetSessionInfoAndGetAllSessionInfo() 140 assertEquals(sessionInfo1, mService.getAllSessionInfo().get(0)); in testGetSessionInfoAndGetAllSessionInfo() 141 assertEquals(sessionInfo1, mService.getSessionInfo(SESSION_ID_1)); in testGetSessionInfoAndGetAllSessionInfo() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/ |
D | ProjectionActivity.java | 54 protected IProjectionService mService; field in ProjectionActivity 59 mService = IProjectionService.Stub.asInterface(binder); 67 … mService.startRendering(mSurface, mWidth, mHeight, metrics.densityDpi, mType.ordinal()); 79 mService = null; 102 if (mService != null) { in setContentViewAndInfoResources() 104 mService.onTouchEvent(event); in setContentViewAndInfoResources() 125 if (mService == null) { in onSurfaceTextureAvailable() 134 if (mService != null) { in onSurfaceTextureDestroyed() 136 mService.stopRendering(); in onSurfaceTextureDestroyed() 145 mService = null; in onSurfaceTextureDestroyed()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | BinderTest.java | 50 private Intent mService; field in BinderTest 55 mService = new Intent( in setUp() 132 mContext.stopService(mService); in tearDown() 213 getContext().bindService(mService, conn1, 0); in testTransact() 214 getContext().startService(mService); in testTransact() 218 getContext().bindService(mService, conn2, 0); in testTransact() 226 getContext().stopService(mService); in testTransact() 237 getContext().stopService(mService); in testTransact() 249 getContext().bindService(mService, conn1, 0); in testTransact() 250 getContext().startService(mService); in testTransact() [all …]
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | HearingAidProfileTest.java | 61 private BluetoothHearingAid mService; field in HearingAidProfileTest 91 mService = null; in setUp() 117 assertNotNull(mService); in test_getProxyServiceConnect() 131 assertNotNull(mService); in test_getConnectionState() 137 int connectionState = mService.getConnectionState(device); in test_getConnectionState() 153 assertNotNull(mService); in test_getConnectedDevices() 157 deviceList = mService.getConnectedDevices(); in test_getConnectedDevices() 160 int connectionState = mService.getConnectionState(device); in test_getConnectedDevices() 177 assertNotNull(mService); in test_getDevicesMatchingConnectionStates() 182 deviceList = mService.getDevicesMatchingConnectionStates(new int[]{connectionState}); in test_getDevicesMatchingConnectionStates() [all …]
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | TestProcessClient.java | 43 private Messenger mService; field in TestProcessClient 88 if (mService == null) { in TestProcessClient() 90 if (mService == null) { in TestProcessClient() 108 mService.send(m); in run() 129 if (mService != null) { in close() 131 mService.send(Message.obtain(null, TestProcessService.MSG_EXIT_PROCESS)); in close() 133 mService = null; in close() 142 mService = new Messenger(service); in onServiceConnected() 150 mService = null; in onServiceDisconnected()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | RequiredServiceRule.java | 43 private final String mService; field in RequiredServiceRule 50 mService = service; in RequiredServiceRule() 63 + " because device does not have service '" + mService + "'"); in apply() 64 assumeTrue("Device does not have service '" + mService + "'", in apply() 92 return "RequiredServiceRule[" + mService + "]";
|
/cts/tests/accessibilityservice/testsdk29/src/android/accessibilityservice/cts/ |
D | AccessibilityButtonSdk29Test.java | 71 private StubAccessibilityButtonSdk29Service mService; field in AccessibilityButtonSdk29Test 91 mService = mServiceRule.getService(); in setUp() 92 mServiceInfo = mService.getServiceInfo(); in setUp() 98 mService.setServiceInfo(mServiceInfo); in setUp() 99 mServiceInfo = mService.getServiceInfo(); in setUp() 100 assertTrue(mService.getApplicationInfo().targetSdkVersion == Build.VERSION_CODES.Q); in setUp() 108 mService.setServiceInfo(mServiceInfo); in testUpdateRequestAccessibilityButtonFlag_succeeds() 110 mService.getServiceInfo().flags == mServiceInfo.flags); in testUpdateRequestAccessibilityButtonFlag_succeeds()
|
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/services/ |
D | PrintServiceCallbacks.java | 23 private StubbablePrintService mService; field in PrintServiceCallbacks 26 return mService; in getService() 30 mService = service; in setService()
|
D | StubbablePrinterDiscoverySession.java | 29 private final PrintService mService; field in StubbablePrinterDiscoverySession 34 mService = service; in StubbablePrinterDiscoverySession() 42 return mService; in getService()
|
/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
D | ServiceConnectionHandler.java | 38 IBinder mService; field in ServiceConnectionHandler 70 mService = null; in startMonitoring() 82 while (mService == null) { in waitForConnect() 96 return mService; in getServiceIBinder() 107 while (mService != null) { in waitForDisconnect() 198 mService = service; in onServiceConnected() 206 mService = null; in onServiceDisconnected()
|
/cts/tests/tests/hardware/src/android/hardware/hdmi/cts/ |
D | HdmiSwitchClientTest.java | 46 private HdmiControlServiceWrapper mService; field in HdmiSwitchClientTest 54 mService = new HdmiControlServiceWrapper(); in setUp() 56 mService.setDeviceTypes(types); in setUp() 58 mManager = mService.createHdmiControlManager(); in setUp() 79 mService.setPortInfo(mExpectedInfo); in testGetPortInfo()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | IsolatedProcessTest.java | 53 private IIsolatedService mService; field in IsolatedProcessTest 63 mService = IIsolatedService.Stub.asInterface(service); 79 String[] cachedServices = mService.getCachedSystemServices(); in testGetCachedServicesFromIsolatedService() 89 IBinder service = mService.getSystemService(serviceName); in testGetServiceFromIsolatedService() 97 Assert.assertTrue(mService.getProcessIsIsolated()); in testGetProcessIsIsolated()
|
/cts/tests/translation/src/android/translation/cts/ |
D | CtsContentCaptureService.java | 62 sServiceWatcher.mService = this; in onConnected() 71 sServiceWatcher.mService = null; in onDisconnected() 154 CtsContentCaptureService mService; field in CtsContentCaptureService.ServiceWatcher 161 if (mService == null) { in waitOnConnected() 166 mService.setContentCaptureWhitelist(mAllowList.first, mAllowList.second); in waitOnConnected() 168 return mService; in waitOnConnected()
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | TextClassifierTestWatcher.java | 124 sServiceWatcher.mService = null; in clearServiceWatcher() 195 if (sServiceWatcher != null && sServiceWatcher.mService != null) { in resetService() 238 CtsTextClassifierService mService; field in ServiceWatcher 248 if (sServiceWatcher.mService != null) { in onConnected() 253 sServiceWatcher.mService = service; in onConnected() 265 if (sServiceWatcher.mService == null) { in onDisconnected() 276 if (mService == null) { in waitOnConnected() 279 return mService; in waitOnConnected()
|
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/ |
D | ServiceRunnerActivity.java | 35 private Messenger mService; field in ServiceRunnerActivity 82 mService = new Messenger(service); 88 mService.send(msg); 100 mService = null;
|
/cts/hostsidetests/systemui/src/android/host/systemui/ |
D | BaseTileServiceTest.java | 44 private final String mService; field in BaseTileServiceTest 52 mService = service; in BaseTileServiceTest() 53 mComponent = PACKAGE + "/." + mService; in BaseTileServiceTest() 119 String logs = getDevice().executeAdbCommand("logcat", "-v", "brief", "-d", mService + ":I", in hasLog()
|