/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityMagnificationTest.java | 51 private StubMagnificationAccessibilityService mService; field in AccessibilityMagnificationTest 63 mService = StubMagnificationAccessibilityService.enableSelf(mInstrumentation); in setUp() 68 runIfNotNull(mService, service -> service.runOnServiceSync(service::disableSelfAndRemove)); in tearDown() 74 final MagnificationController controller = mService.getMagnificationController(); in testSetScale() 78 mService.runOnServiceSync(() -> result.set(controller.setScale(scale, false))); in testSetScale() 83 mService.runOnServiceSync(() -> result.set(controller.reset(false))); in testSetScale() 90 final MagnificationController controller = mService.getMagnificationController(); in testSetScaleAndCenter() 100 mService.runOnServiceSync(() -> { in testSetScaleAndCenter() 112 mService.runOnServiceSync(() -> result.set(controller.reset(false))); in testSetScaleAndCenter() 119 final MagnificationController controller = mService.getMagnificationController(); in testListener() [all …]
|
D | AccessibilitySoftKeyboardModesTest.java | 51 private InstrumentedAccessibilityService mService; field in AccessibilitySoftKeyboardModesTest 64 mService = InstrumentedAccessibilityService.enableService(mInstrumentation, in setUp() 70 runIfNotNull(mService, service -> service.runOnServiceSync(service::disableSelf)); in tearDown() 75 final SoftKeyboardController controller = mService.getSoftKeyboardController(); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() 81 assertCanSetAndGetShowModeAndCallbackHappens(SHOW_MODE_HIDDEN, mService); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() 82 assertCanSetAndGetShowModeAndCallbackHappens(SHOW_MODE_IGNORE_HARD_KEYBOARD, mService); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() 83 assertCanSetAndGetShowModeAndCallbackHappens(SHOW_MODE_AUTO, mService); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() 93 final SoftKeyboardController controller = mService.getSoftKeyboardController(); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService() 102 assertCanSetAndGetShowModeAndCallbackHappens(SHOW_MODE_HIDDEN, mService); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService() 114 final int showMode = mService.getOnService(() -> controller.getShowMode()); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService()
|
D | AccessibilityGestureDetectorTest.java | 63 GestureDetectionStubAccessibilityService mService; field in AccessibilityGestureDetectorTest 100 mService = GestureDetectionStubAccessibilityService.enableSelf(instrumentation); in setUp() 108 runIfNotNull(mService, service -> service.runOnServiceSync(service::disableSelf)); in tearDown() 169 mService.clearGestures(); in testPath() 170 mService.runOnServiceSync(() -> in testPath() 171 mService.dispatchGesture(gesture, mGestureDispatchCallback, null)); in testPath() 176 mService.waitUntilGesture(); in testPath() 177 assertEquals(1, mService.getGesturesSize()); in testPath() 178 assertEquals(gestureId, mService.getGesture(0)); in testPath() 220 mService.clearEvents(); in assertEventAfterGesture() [all …]
|
D | AccessibilityOverlayTest.java | 50 InstrumentedAccessibilityService mService; field in AccessibilityOverlayTest 64 mService = StubAccessibilityButtonService.enableSelf(sInstrumentation); in setUp() 69 runIfNotNull(mService, service -> service.runOnServiceSync(service::disableSelf)); in tearDown() 74 final Button button = new Button(mService); in testA11yServiceShowsOverlay_shouldAppear() 78 sUiAutomation.executeAndWaitForEvent(() -> mService.runOnServiceSync(() -> { in testA11yServiceShowsOverlay_shouldAppear() 86 mService.getSystemService(WindowManager.class).addView(button, params); in testA11yServiceShowsOverlay_shouldAppear()
|
D | AccessibilityButtonTest.java | 40 private StubAccessibilityButtonService mService; field in AccessibilityButtonTest 59 mService = StubAccessibilityButtonService.enableSelf(instrumentation); in setUp() 60 mButtonController = mService.getAccessibilityButtonController(); in setUp() 65 runIfNotNull(mService, service -> service.runOnServiceSync(service::disableSelf)); in tearDown()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | MyServiceClient.java | 37 private IMyService mService; field in MyServiceClient 44 if (mService != null) { in bind() 52 mService = IMyService.Stub.asInterface(service); in bind() 57 mService = null; in bind() 68 if (mService == null) { in bind() 75 if (mService != null) { in unbind() 81 mService.registerBroadcastReceiver(); in registerBroadcastReceiver() 85 return mService.getCounters(receiverName, action); in getCounters() 89 return mService.checkNetworkStatus(); in checkNetworkStatus() 93 return mService.getRestrictBackgroundStatus(); in getRestrictBackgroundStatus() [all …]
|
D | RemoteSocketFactoryClient.java | 43 private IRemoteSocketFactory mService; field in RemoteSocketFactoryClient 50 if (mService != null) { in bind() 58 mService = IRemoteSocketFactory.Stub.asInterface(service); in bind() 63 mService = null; in bind() 71 if (mService == null) { in bind() 78 if (mService != null) { in unbind() 87 ParcelFileDescriptor pfd = mService.openSocketFd(host, port, timeoutMs); in openSocketFd() 94 return mService.getPackageName(); in getPackageName() 98 return mService.getUid(); in getUid()
|
/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/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/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/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/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/app/src/android/app/cts/ |
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/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/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/framework/base/windowmanager/src/android/server/wm/ |
D | AlertWindowsImportanceTests.java | 73 private Messenger mService; field in AlertWindowsImportanceTests 108 if (mService != null) { in tearDown() 109 mService.send(Message.obtain(null, AlertWindowService.MSG_REMOVE_ALL_ALERT_WINDOWS)); in tearDown() 158 mService.send(Message.obtain(null, AlertWindowService.MSG_ADD_ALERT_WINDOW)); in addAlertWindow() 166 mService.send(Message.obtain(null, AlertWindowService.MSG_REMOVE_ALERT_WINDOW)); in removeAlertWindow() 214 mService = new Messenger(service); 224 mService = null;
|
/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()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/ |
D | CtsAugmentedAutofillService.java | 125 if (sServiceWatcher.mService != null) { in onConnected() 130 sServiceWatcher.mService = this; in onConnected() 163 if (sServiceWatcher.mService == null) { in onDisconnected() 169 sServiceWatcher.mService = null; in onDisconnected() 396 private CtsAugmentedAutofillService mService; field in CtsAugmentedAutofillService.ServiceWatcher 402 if (mService == null) { in waitOnConnected() 406 return mService; in waitOnConnected() 415 return "mService: " + mService + " created: " + (mCreated.getCount() == 0) in toString()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | RequiredServiceRule.java | 34 private final String mService; field in RequiredServiceRule 41 mService = service; in RequiredServiceRule() 54 + " because device does not have service '" + mService + "'"); in apply()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | CrossProfileWidgetPrimaryUserTest.java | 57 private Messenger mService; field in CrossProfileWidgetPrimaryUserTest 106 mService.send(message); in sendMessageToCallbacksService() 147 mService = new Messenger(service); in onServiceConnected() 153 mService = null; in onServiceDisconnected()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | MockCallScreeningService.java | 39 private MockCallScreeningService mService; field in MockCallScreeningService.CallScreeningServiceCallbacks 44 return mService; in getService() 48 mService = service; in setService()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | CtsContentCaptureService.java | 173 if (sServiceWatcher.mService != null) { in onConnected() 178 sServiceWatcher.mService = this; in onConnected() 200 if (sServiceWatcher.mService == null) { in onDisconnected() 211 sServiceWatcher.mService = null; in onDisconnected() 484 private CtsContentCaptureService mService; field in CtsContentCaptureService.ServiceWatcher 490 if (mService == null) { in waitOnCreate() 496 mService.setContentCaptureWhitelist(mWhitelist.first, mWhitelist.second); in waitOnCreate() 499 return mService; in waitOnCreate() 524 return "mService: " + mService + " created: " + (mCreated.getCount() == 0) in toString()
|