/cts/tests/tests/location/src/android/location/cts/ |
D | LocationManagerTest.java | 62 private LocationManager mManager; field in LocationManagerTest 75 mManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in setUp() 78 LocationProvider lp = mManager.getProvider(TEST_MOCK_PROVIDER_NAME); in setUp() 80 mManager.removeTestProvider(TEST_MOCK_PROVIDER_NAME); in setUp() 90 mManager.addTestProvider(providerName, true, //requiresNetwork, in addTestProvider() 99 mManager.setTestProviderEnabled(providerName, true); in addTestProvider() 105 LocationProvider provider = mManager.getProvider(TEST_MOCK_PROVIDER_NAME); in tearDown() 107 mManager.removeTestProvider(TEST_MOCK_PROVIDER_NAME); in tearDown() 110 mManager.removeProximityAlert(mPendingIntent); in tearDown() 120 LocationProvider provider = mManager.getProvider(TEST_MOCK_PROVIDER_NAME); in testRemoveTestProvider() [all …]
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarAppFocusManagerTest.java | 49 private CarAppFocusManager mManager; field in CarAppFocusManagerTest 54 mManager = (CarAppFocusManager) getCar().getCarManager(Car.APP_FOCUS_SERVICE); in setUp() 55 assertNotNull(mManager); in setUp() 59 int[] activeTypes = mManager.getActiveAppTypes(); in setUp() 62 mManager.requestAppFocus(activeTypes[i], owner); in setUp() 64 mManager.abandonAppFocus(owner, activeTypes[i]); in setUp() 74 mManager.requestAppFocus(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, null); in testSetActiveNullListener() 84 mManager.addFocusListener(null, 0); in testRegisterNull() 95 mManager.addFocusListener(listener, 1); in testRegisterUnregister() 96 mManager.addFocusListener(listener2, 1); in testRegisterUnregister() [all …]
|
D | CarUxRestrictionsManagerTest.java | 38 private CarUxRestrictionsManager mManager; field in CarUxRestrictionsManagerTest 44 mManager = (CarUxRestrictionsManager) in setUp() 46 assertNotNull(mManager); in setUp() 87 mManager.registerListener(restrictions -> {}); in testRegisterListener_noCrash() 88 mManager.unregisterListener(); in testRegisterListener_noCrash()
|
/cts/tests/tests/hardware/src/android/hardware/lights/cts/ |
D | LightsManagerTest.java | 50 private LightsManager mManager; field in LightsManagerTest 60 mManager = context.getSystemService(LightsManager.class); in setUp() 61 mLights = mManager.getLights(); in setUp() 75 mManager.getLights(); in testControlLightsPermissionIsRequiredToUseLights() 80 try (LightsManager.LightsSession session = mManager.openSession()) { in testControlLightsPermissionIsRequiredToUseLights() 90 try (LightsManager.LightsSession session = mManager.openSession()) { in testControlSingleLight() 97 assertThat(mManager.getLightState(mLights.get(0)).getColor()).isEqualTo(RED); in testControlSingleLight() 105 try (LightsManager.LightsSession session = mManager.openSession()) { in testControlMultipleLights() 113 assertThat(mManager.getLightState(mLights.get(0)).getColor()).isEqualTo(0xffaaaaff); in testControlMultipleLights() 114 assertThat(mManager.getLightState(mLights.get(1)).getColor()).isEqualTo(0xffbbbbff); in testControlMultipleLights() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/ |
D | DataFragment.java | 45 private Manager mManager; field in DataFragment 82 mManager.onPoseProviderReady(); in onNewPoseData() 85 mManager.onNewPoseData(newPoseData); in onNewPoseData() 101 mManager = new Manager(mTestReport); in initManager() 102 mManager.setupListeners(context); in initManager() 111 mManager.stopListening(); in onDetach() 137 return mManager.getReferencePathMarkers(); in getUserGeneratedWaypoints() 139 return mManager.getTestPathMarkers(); in getUserGeneratedWaypoints() 141 return mManager.getRobustnessMarker(); in getUserGeneratedWaypoints() 143 return mManager.getComplexMovementTestMarkers(); in getUserGeneratedWaypoints() [all …]
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvInputManagerTest.java | 54 private TvInputManager mManager; field in TvInputManagerTest 75 mManager = (TvInputManager) getActivity().getSystemService(Context.TV_INPUT_SERVICE); in setUp() 77 mManager.getTvInputList(), StubTvInputService2.class.getName()).getId(); in setUp() 84 assertEquals(mManager.getInputState(mStubId), TvInputManager.INPUT_STATE_CONNECTED); in testGetInputState() 91 TvInputInfo expected = mManager.getTvInputInfo(mStubId); in testGetTvInputInfo() 92 TvInputInfo actual = getInfoForClassName(mManager.getTvInputList(), in testGetTvInputInfo() 102 List<TvInputInfo> list = mManager.getTvInputList(); in testGetTvInputList() 118 mManager.isParentalControlsEnabled(); in testIsParentalControlsEnabled() 129 mManager.isRatingBlocked(DUMMY_RATING); in testIsRatingBlocked() 143 mManager.registerCallback(mCallback, new Handler()); in testRegisterUnregisterCallback() [all …]
|
D | HardwareSessionTest.java | 48 private TvInputManager mManager; field in HardwareSessionTest 65 mManager = (TvInputManager) mActivity.getSystemService(Context.TV_INPUT_SERVICE); in setUp() 66 for (TvInputInfo info : mManager.getTvInputList()) { in setUp()
|
D | BundledTvInputServiceTest.java | 48 private TvInputManager mManager; field in BundledTvInputServiceTest 102 mManager = (TvInputManager) mActivity.getSystemService(Context.TV_INPUT_SERVICE); in setUp() 103 for (TvInputInfo info : mManager.getTvInputList()) { in setUp()
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | PreferenceDataStoreTest.java | 69 private PreferenceManager mManager; field in PreferenceDataStoreTest 90 mManager = mScreen.getPreferenceManager(); in setup() 91 mSharedPref = mManager.getSharedPreferences(); in setup() 96 mManager.getSharedPreferences().edit().remove(KEY).commit(); in setup() 107 assertNull(mManager.getPreferenceDataStore()); in testThatDataStoreIsNullByDefault() 108 assertNotNull(mManager.getSharedPreferences()); in testThatDataStoreIsNullByDefault() 122 mManager.setPreferenceDataStore(mDataStore); in testSetGetOnPreferenceManager() 124 assertEquals(mDataStore, mManager.getPreferenceDataStore()); in testSetGetOnPreferenceManager() 125 assertNull(mManager.getSharedPreferences()); in testSetGetOnPreferenceManager() 132 mManager.setPreferenceDataStore(mDataStore); in testSetOnPreferenceManagerGetOnPreference() [all …]
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | CaptioningManagerTest.java | 45 private CaptioningManager mManager; field in CaptioningManagerTest 52 mManager = getInstrumentation().getTargetContext().getSystemService( in setUp() 55 assertNotNull("Obtained captioning manager", mManager); in setUp() 70 mManager.addCaptioningChangeListener(mockListener); in testChangeListener() 86 mManager.removeCaptioningChangeListener(mockListener); in testChangeListener() 94 mManager.removeCaptioningChangeListener(mockListener); in testChangeListener() 105 assertEquals("Test runner set font scale to 2.0", 2.0f, mManager.getFontScale()); in testProperties() 106 assertEquals("Test runner set locale to Japanese", Locale.JAPAN, mManager.getLocale()); in testProperties() 107 assertEquals("Test runner set enabled to true", true, mManager.isEnabled()); in testProperties() 119 CaptionStyle userStyle = mManager.getUserStyle(); in testUserStyle()
|
/cts/tests/tests/location2/src/android/location2/cts/ |
D | LocationManagerTest.java | 57 private LocationManager mManager; field in LocationManagerTest 70 mManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in setUp() 93 mManager.getProvider(providerName); in doTestGetFineProvider_notAllowed() 105 mManager.clearTestProviderEnabled(providerName); in removeTestProvider() 106 mManager.removeTestProvider(providerName); in removeTestProvider() 120 assertNotNull(mManager.getProvider(providerName)); in doTestGetCoarseProvider_allowed() 154 mManager.setTestProviderLocation(providerName, location); in testGnssProvidedClock() 159 mManager.setTestProviderLocation(providerName, location); in testGnssProvidedClock() 174 mManager.requestLocationUpdates(providerName, 0, 0, mPendingIntent); 179 final Location location = mManager.getLastKnownLocation(providerName); [all …]
|
/cts/tests/sensor/jni/ |
D | SensorTest.cpp | 25 if (mManager == nullptr) { in SetUp() 26 mManager.reset( in SetUp() 29 return mManager == nullptr; in SetUp() 33 if (mManager == nullptr) { in TearDown() 34 mManager.reset(nullptr); in TearDown() 39 mManager = ASensorManager_getInstanceForPackage(package); in TestSensorManager() 54 return TestSensor(ASensorManager_getDefaultSensor(mManager, type)); in getDefaultSensor() 74 int ret = ASensorManager_createSharedMemoryDirectChannel(mManager, fd, size); in createSharedMemoryDirectChannel() 83 int ret = ASensorManager_createHardwareBufferDirectChannel(mManager, buffer, size); in createHardwareBufferDirectChannel() 94 ASensorManager_destroyDirectChannel(mManager, channel); in destroyDirectChannel() [all …]
|
D | SensorTestCases.cpp | 25 ASSERT_TRUE(mManager->isValid()); in testInitialized() 150 TestSensor sensor = mManager->getDefaultSensor(sensorType); in testDirectReport() 177 channel = mManager->createDirectChannel(*mem); in testDirectReport() 186 eventToken = mManager->configureDirectReport(sensor, channel, rateLevel); in testDirectReport() 241 mManager->configureDirectReport(sensor, channel, ASENSOR_DIRECT_RATE_STOP); in testDirectReport() 242 mManager->destroyDirectChannel(channel); in testDirectReport()
|
D | SensorTest.h | 49 std::unique_ptr<TestSensorManager> mManager; 62 bool isValid() const { return mManager != nullptr; } in isValid() 68 ASensorManager *mManager; // singleton, does not need delete variable
|
/cts/tests/contentsuggestions/src/android/contentsuggestions/cts/ |
D | ContentSuggestionsManagerTest.java | 68 private ContentSuggestionsManager mManager; field in ContentSuggestionsManagerTest 76 mManager = (ContentSuggestionsManager) getContext() in setup() 86 mManager.notifyInteraction("SETUP", new Bundle()); in setup() 110 mManager.notifyInteraction(requestId, new Bundle()); in managerForwards_notifyInteraction() 118 mManager.provideContextImage(taskId, new Bundle()); in managerForwards_provideContextImage() 128 mManager.suggestContentSelections(request, Executors.newSingleThreadExecutor(), callback); in managerForwards_suggestContentSelections() 140 mManager.classifyContentSelections(request, Executors.newSingleThreadExecutor(), callback); in managerForwards_classifyContentSelections()
|
/cts/hostsidetests/tv/app2/src/com/android/cts/tv/hostside/app2/ |
D | TvViewMonitorActivity.java | 31 private TvInputManager mManager; field in TvViewMonitorActivity 41 mManager = (TvInputManager) getSystemService(Context.TV_INPUT_SERVICE); in onCreate() 43 mManager.registerCallback(mCallback, new Handler()); in onCreate() 51 mManager.unregisterCallback(mCallback); in onDestroy()
|
/cts/hostsidetests/devicepolicy/app/ContentCaptureApp/src/com/android/cts/devicepolicy/contentcaptureapp/ |
D | SimpleActivity.java | 34 private ContentCaptureManager mManager; field in SimpleActivity 47 mManager = getSystemService(ContentCaptureManager.class); in onStart() 48 if (mManager == null) { in onStart() 67 .putExtra("enabled", mManager.isContentCaptureEnabled()); in onReceive()
|
/cts/tests/tests/content/src/android/content/om/cts/ |
D | OverlayManagerTest.java | 47 private OverlayManager mManager; field in OverlayManagerTest 55 mManager = new OverlayManager(context, mMockService); in setUp() 66 mManager.setEnabled(packageName, true, user); in testSetEnabled() 78 mManager.setEnabledExclusiveInCategory(packageName, user); in testSetEnabledExclusiveInCategory() 88 mManager.getOverlayInfosForTarget(targetPackageName, user); in testGetOverlayInfosForTarget()
|
/cts/tests/tests/view/src/android/view/textclassifier/cts/ |
D | TextClassificationManagerTest.java | 97 private TextClassificationManager mManager; field in TextClassificationManagerTest 102 mManager = InstrumentationRegistry.getTargetContext() in setup() 104 mManager.setTextClassifier(null); // Resets the classifier. in setup() 105 mClassifier = mManager.createTextClassificationSession( in setup() 120 mManager.setTextClassifier(classifier); in testSetTextClassifier() 121 assertEquals(classifier, mManager.getTextClassifier()); in testSetTextClassifier() 146 mManager.setTextClassifier(TextClassifier.NO_OP); in testNoOpClassifier() 147 mClassifier = mManager.getTextClassifier(); in testNoOpClassifier()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/ |
D | CarDockTestActivity.java | 46 private UiModeManager mManager; field in CarDockTestActivity 56 mManager = (UiModeManager) getSystemService(Context.UI_MODE_SERVICE); in onCreate() 62 mManager.disableCarMode(0); in onCreate() 70 mManager.enableCarMode(UiModeManager.ENABLE_CAR_MODE_GO_CAR_HOME); in onCreate()
|
/cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/ |
D | ShortcutManagerThrottlingTestReceiver.java | 40 private ShortcutManager mManager; field in ShortcutManagerThrottlingTestReceiver 43 if (mManager == null) { in getManager() 44 mManager = context.getSystemService(ShortcutManager.class); in getManager() 46 return mManager; in getManager()
|
/cts/hostsidetests/shortcuts/deviceside/common/src/android/content/pm/cts/shortcut/device/common/ |
D | ShortcutManagerDeviceTestBase.java | 43 private ShortcutManager mManager; field in ShortcutManagerDeviceTestBase 61 mManager = getContext().getSystemService(ShortcutManager.class); in setUp() 79 return mManager; in getManager()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/TestPhase/ |
D | ComplexMovementTest.java | 67 mManager.onComplexMovementTestCompleted(complexMovementTestResults); in executeComplexMovementTests() 79 mManager.ringEntered(ring); in checkIfARingHasBeenPassed()
|
D | RobustnessTest.java | 79 mManager.onRobustnessTestCompleted(robustnessTestResults); in executeRobustnessTests() 194 mManager.onRobustnessTestCompleted(testFailed); in getRotationData()
|
D | AccuracyTest.java | 49 mManager.onAccuracyTestCompleted(super.executeTests(true, true)); in runAdditionalMethods()
|