/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | PasswordSlotManagerTests.java | 42 PasswordSlotManagerTestable mManager; field in PasswordSlotManagerTests 46 mManager = new PasswordSlotManagerTestable(); in setUp() 51 mManager.cleanup(); in tearDown() 56 mManager.markSlotInUse(0); in testBasicSlotUse() 57 mManager.markSlotInUse(1); in testBasicSlotUse() 62 assertEquals(expected, mManager.getUsedSlots()); in testBasicSlotUse() 64 mManager.markSlotDeleted(1); in testBasicSlotUse() 68 assertEquals(expected, mManager.getUsedSlots()); in testBasicSlotUse() 74 mManager.setGsiImageNumber(1); in testMergeSlots() 75 mManager.markSlotInUse(4); in testMergeSlots() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMulticastLockManagerTest.java | 45 WifiMulticastLockManager mManager; field in WifiMulticastLockManagerTest 53 mManager = new WifiMulticastLockManager(mHandler, mBatteryStats); in setUp() 61 assertFalse(mManager.isMulticastEnabled()); in noLocks() 62 mManager.initializeFiltering(); in noLocks() 72 mManager.acquireLock(binder, WL_1_TAG); in oneLock() 73 assertTrue(mManager.isMulticastEnabled()); in oneLock() 75 mManager.initializeFiltering(); in oneLock() 80 mManager.releaseLock(WL_1_TAG); in oneLock() 82 assertFalse(mManager.isMulticastEnabled()); in oneLock() 91 mManager.acquireLock(binder, WL_1_TAG); in oneLock_wrongName() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest2.java | 937 mManager.addDynamicShortcuts(list(sorig, sorig2)); in testShortcutInfoSaveAndLoad() 1017 mManager.addDynamicShortcuts(list(sorig)); 1093 mManager.addDynamicShortcuts(list(sorig, sorig2)); 1167 mManager.addDynamicShortcuts(list(sorig, sorig2)); 1233 mManager.addDynamicShortcuts(list(sorig, sorig2)); 1275 assertTrue(mManager.setDynamicShortcuts(list( 1291 assertTrue(mManager.setDynamicShortcuts(list( 1381 assertTrue(mManager.setDynamicShortcuts(list(si1))); 1382 assertEquals(2, mManager.getRemainingCallCount()); 1383 assertEquals(START_TIME + INTERVAL, mManager.getRateLimitResetTime()); [all …]
|
D | ShortcutManagerTest1.java | 241 assertEquals(MAX_SHORTCUTS, mManager.getMaxShortcutCountForActivity()); in testGetMaxDynamicShortcutCount() 246 assertEquals(MAX_UPDATES_PER_INTERVAL, mManager.getRemainingCallCount()); in testGetRemainingCallCount() 250 assertEquals(MAX_ICON_DIMENSION, mManager.getIconMaxWidth()); in testGetIconMaxDimensions() 251 assertEquals(MAX_ICON_DIMENSION, mManager.getIconMaxHeight()); in testGetIconMaxDimensions() 256 assertEquals(START_TIME + INTERVAL, mManager.getRateLimitResetTime()); in testGetRateLimitResetTime() 260 assertEquals(START_TIME + 5 * INTERVAL, mManager.getRateLimitResetTime()); in testGetRateLimitResetTime() 296 assertTrue(mManager.setDynamicShortcuts(list(si1, si2, si3))); in testSetDynamicShortcuts() 298 mManager.getDynamicShortcuts()), in testSetDynamicShortcuts() 300 assertEquals(2, mManager.getRemainingCallCount()); in testSetDynamicShortcuts() 304 assertTrue(mManager.setDynamicShortcuts(list(si1))); in testSetDynamicShortcuts() [all …]
|
D | ShortcutManagerTest3.java | 81 mManager.setDynamicShortcuts(list( in testSetDynamicShortcuts_noManifestShortcuts() 88 assertTrue(mManager.setDynamicShortcuts(list( in testSetDynamicShortcuts_noManifestShortcuts() 97 assertTrue(mManager.setDynamicShortcuts(list( in testSetDynamicShortcuts_noManifestShortcuts() 107 assertTrue(mManager.setDynamicShortcuts(list( in testSetDynamicShortcuts_noManifestShortcuts() 116 assertTrue(mManager.setDynamicShortcuts(list( in testSetDynamicShortcuts_noManifestShortcuts() 128 assertTrue(mManager.setDynamicShortcuts(list( in testSetDynamicShortcuts_noManifestShortcuts() 143 assertTrue(mManager.setDynamicShortcuts(list())); in testSetDynamicShortcuts_noManifestShortcuts() 176 mManager.addDynamicShortcuts(list( in testAddDynamicShortcuts_noManifestShortcuts() 185 mManager.addDynamicShortcuts(list( in testAddDynamicShortcuts_noManifestShortcuts() 206 mManager.addDynamicShortcuts(list( in testAddDynamicShortcuts_noManifestShortcuts() [all …]
|
D | ShortcutManagerTest7.java | 126 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling() 129 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling() 136 assertEquals(3, mManager.getRemainingCallCount()); in testResetThrottling() 139 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling() 147 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling_user_not_running() 150 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling_user_not_running() 164 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling_user_not_running() 167 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling_user_not_running() 175 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling_user_running() 178 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling_user_running() [all …]
|
D | ShortcutManagerTest8.java | 122 assertTrue(mManager.isRequestPinShortcutSupported()); in testIsRequestPinShortcutSupported() 125 assertTrue(mManager.isRequestPinShortcutSupported()); in testIsRequestPinShortcutSupported() 128 assertTrue(mManager.isRequestPinShortcutSupported()); in testIsRequestPinShortcutSupported() 131 assertTrue(mManager.isRequestPinShortcutSupported()); in testIsRequestPinShortcutSupported() 155 assertFalse(mManager.isRequestPinShortcutSupported()); in testIsRequestPinShortcutSupported() 158 assertFalse(mManager.isRequestPinShortcutSupported()); in testIsRequestPinShortcutSupported() 161 assertTrue(mManager.isRequestPinShortcutSupported()); in testIsRequestPinShortcutSupported() 164 assertFalse(mManager.isRequestPinShortcutSupported()); in testIsRequestPinShortcutSupported() 179 assertFalse(mManager.requestPinShortcut(s1, in testRequestPinShortcut_notSupported() 191 assertFalse(mManager.requestPinShortcut(s1, in testRequestPinShortcut_notSupported() [all …]
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | MtpManagerTest.java | 41 MtpManager mManager; field in MtpManagerTest 47 mManager = new MtpManager(getContext()); in setUp() 48 mUsbDevice = TestUtil.setupMtpDevice(getInstrumentation(), mUsbManager, mManager); in setUp() 53 mManager.closeDevice(mUsbDevice.getDeviceId()); in tearDown() 69 mManager.readEvent(mUsbDevice.getDeviceId(), signal); in testCancelEvent() 84 final MtpDeviceRecord[] records = mManager.getDevices(); in testOperationsSupported() 91 final MtpDeviceRecord[] records = mManager.getDevices(); in testEventsSupported() 98 final MtpDeviceRecord[] records = mManager.getDevices(); in testDeviceKey() 108 MtpEvent event = mManager.readEvent(mUsbDevice.getDeviceId(), signal); in testEventObjectAdded() 119 for (final MtpDeviceRecord record : mManager.getDevices()) { in testCreateDocumentAndGetPartialObject() [all …]
|
D | DocumentLoaderTest.java | 37 private BlockableTestMtpManager mManager; field in DocumentLoaderTest 58 mManager = new BlockableTestMtpManager(getContext()); in setUp() 73 setUpDocument(mManager, 40); in testBasic() 74 mManager.blockDocument(0, 15); in testBasic() 75 mManager.blockDocument(0, 35); in testBasic() 84 mManager.unblockDocument(0, 15); in testBasic() 95 mManager.unblockDocument(0, 35); in testBasic() 108 mManager = new BlockableTestMtpManager(getContext()) { in testError_GetObjectHandles() 116 mManager.setObjectHandles(0, 0, MtpManager.OBJECT_HANDLE_ROOT_CHILDREN, null); in testError_GetObjectHandles() 127 mManager = new BlockableTestMtpManager(getContext()) { in testError_GetObjectInfo() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | ANQPRequestManagerTest.java | 91 ANQPRequestManager mManager; field in ANQPRequestManagerTest 99 mManager = new ANQPRequestManager(mHandler, mClock); in setUp() 112 assertTrue(mManager.requestANQPElements(TEST_BSSID, TEST_ANQP_KEY, false, false)); in requestR1ANQPElementsWithoutRC() 125 assertTrue(mManager.requestANQPElements(TEST_BSSID, TEST_ANQP_KEY, true, false)); in requestR1ANQPElementsWithRC() 138 assertTrue(mManager.requestANQPElements(TEST_BSSID, TEST_ANQP_KEY, false, true)); in requestR1R2ANQPElementsWithoutRC() 151 assertTrue(mManager.requestANQPElements(TEST_BSSID, TEST_ANQP_KEY, true, true)); in requestR1R2ANQPElementsWithRC() 166 assertTrue(mManager.requestANQPElements(TEST_BSSID, TEST_ANQP_KEY, false, false)); in requestANQPElementsWithPendingRequest() 172 assertFalse(mManager.requestANQPElements(TEST_BSSID, TEST_ANQP_KEY, false, false)); in requestANQPElementsWithPendingRequest() 180 assertTrue(mManager.requestANQPElements(TEST_BSSID, TEST_ANQP_KEY, false, false)); in requestANQPElementsWithPendingRequest() 195 assertFalse(mManager.requestANQPElements(TEST_BSSID, TEST_ANQP_KEY, false, false)); in requestANQPElementsAfterRequestSendFailure() [all …]
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableInstrumentation.java | 82 private TestLooperManager mManager; field in TestableInstrumentation.MainLooperManager 97 Message m = mManager.next(); in run() 99 mManager.recycle(m); in run() 103 mManager.execute(m); in run() 111 mManager.recycle(m); in run() 114 mManager.release(); in run() 159 mManager = acquireLooperManager(Looper.getMainLooper()); in startManaging() 166 while (!mManager.hasMessages(mMainHandler, null, this)); in startManaging() 168 Message next = mManager.next(); in startManaging() 171 mManager.execute(next); in startManaging() [all …]
|
/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
D | EditStyledText.java | 191 private EditorManager mManager; field in EditStyledText 235 mManager.showSoftKey(Selection.getSelectionStart(getText()), in onTouchEvent() 238 mManager.showSoftKey(oldSelStart, oldSelEnd); in onTouchEvent() 242 mManager.onCursorMoved(); in onTouchEvent() 243 mManager.unsetTextComposingMask(); in onTouchEvent() 255 ss.mBackgroundColor = mManager.getBackgroundColor(); in onSaveInstanceState() 273 if (mManager != null) { in drawableStateChanged() 274 mManager.onRefreshStyles(); in drawableStateChanged() 287 mManager.blockSoftKey(); in onTextContextMenuItem() 299 mManager.onStartSelectAll(false); in onTextContextMenuItem() [all …]
|
/frameworks/base/core/java/android/hardware/display/ |
D | ColorDisplayManager.java | 179 private final ColorDisplayManagerInternal mManager; field in ColorDisplayManager 186 mManager = ColorDisplayManagerInternal.getInstance(); in ColorDisplayManager() 196 return mManager.setNightDisplayActivated(activated); in setNightDisplayActivated() 205 return mManager.isNightDisplayActivated(); in isNightDisplayActivated() 215 return mManager.setNightDisplayColorTemperature(temperature); in setNightDisplayColorTemperature() 224 return mManager.getNightDisplayColorTemperature(); in getNightDisplayColorTemperature() 237 return mManager.getNightDisplayAutoMode(); in getNightDisplayAutoMode() 247 return mManager.getNightDisplayAutoModeRaw(); in getNightDisplayAutoModeRaw() 268 if (mManager.getNightDisplayAutoMode() != autoMode) { in setNightDisplayAutoMode() 274 return mManager.setNightDisplayAutoMode(autoMode); in setNightDisplayAutoMode() [all …]
|
D | NightDisplayListener.java | 38 private final ColorDisplayManager mManager; field in NightDisplayListener 56 mManager = mContext.getSystemService(ColorDisplayManager.class); in NightDisplayListener() 68 mCallback.onActivated(mManager.isNightDisplayActivated()); in NightDisplayListener() 71 mCallback.onAutoModeChanged(mManager.getNightDisplayAutoMode()); in NightDisplayListener() 75 mManager.getNightDisplayCustomStartTime()); in NightDisplayListener() 79 mManager.getNightDisplayCustomEndTime()); in NightDisplayListener() 83 mManager.getNightDisplayColorTemperature()); in NightDisplayListener()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appwidget/ |
D | AppWidgetServiceImplTest.java | 74 private AppWidgetManager mManager; field in AppWidgetServiceImplTest 89 mManager = new AppWidgetManager(mTestContext, mService); in setUp() 99 for (AppWidgetProviderInfo provider : mManager.getInstalledProviders()) { in testRequestPinAppWidget_otherProvider() 108 assertFalse(mManager.requestPinAppWidget(otherProvider, null, null)); in testRequestPinAppWidget_otherProvider() 117 assertTrue(mManager.requestPinAppWidget(provider, null, null)); in testRequestPinAppWidget() 130 assertTrue(mManager.isRequestPinAppWidgetSupported()); in testIsRequestPinAppWidgetSupported() 131 assertFalse(mManager.isRequestPinAppWidgetSupported()); in testIsRequestPinAppWidgetSupported() 140 mManager.updateAppWidget(widgetId, view); in testProviderUpdatesReceived() 141 mManager.updateAppWidget(widgetId, view); in testProviderUpdatesReceived() 142 mManager.updateAppWidget(widgetId, view); in testProviderUpdatesReceived() [all …]
|
/frameworks/av/services/audiopolicy/tests/ |
D | audiopolicymanager_tests.cpp | 111 std::unique_ptr<AudioPolicyTestManager> mManager; member in AudioPolicyManagerTest 116 mManager.reset(new AudioPolicyTestManager(mClient.get())); in SetUp() 118 ASSERT_EQ(NO_ERROR, mManager->initialize()); in SetUp() 119 ASSERT_EQ(NO_ERROR, mManager->initCheck()); in SetUp() 123 mManager.reset(); in TearDown() 128 mManager->getConfig().setDefault(); in SetUpManagerConfig() 155 ASSERT_EQ(NO_ERROR, mManager->dump(pipefd[1])); in dumpToLog() 178 ASSERT_EQ(OK, mManager->getOutputForAttr( in getOutputForAttr() 202 ASSERT_EQ(OK, mManager->getInputForAttr( in getInputForAttr() 214 ret = mManager->listAudioPorts(role, AUDIO_PORT_TYPE_DEVICE, &numPorts, nullptr, &generation1); in findDevicePort() [all …]
|
/frameworks/av/media/bufferpool/1.0/vts/ |
D | single.cpp | 57 mManager = ClientManager::getInstance(); in SetUp() 58 ASSERT_NE(mManager, nullptr); in SetUp() 63 status = mManager->create(mAllocator, &mConnectionId); in SetUp() 68 status = mManager->registerSender(mManager, mConnectionId, &mReceiverId); in SetUp() 75 mManager->close(mConnectionId); in TearDown() 84 android::sp<ClientManager> mManager; member in __anon2ed7fd040111::BufferpoolSingleTest 103 status = mManager->allocate(mConnectionId, vecParams, &allocHandle, &buffer[i]); in TEST_F() 125 status = mManager->allocate(mConnectionId, vecParams, &allocHandle, &buffer); in TEST_F() 148 status = mManager->allocate(mConnectionId, vecParams, &allocHandle, &sbuffer); in TEST_F() 151 status = mManager->postSend(mReceiverId, sbuffer, &transactionId, &postUs); in TEST_F() [all …]
|
D | multi.cpp | 91 mManager = ClientManager::getInstance(); in SetUp() 92 ASSERT_NE(mManager, nullptr); in SetUp() 97 status = mManager->create(mAllocator, &mConnectionId); in SetUp() 110 mManager->close(mConnectionId); in TearDown() 119 android::sp<ClientManager> mManager; member in __anon32f7160d0111::BufferpoolMultiTest 140 mManager = ClientManager::getInstance(); in doReceiver() 141 if (!mManager) { in doReceiver() 146 android::status_t status = mManager->registerAsService(); in doReceiver() 159 ResultStatus status = mManager->receive( in doReceiver() 162 mManager->close(message.data.connectionId); in doReceiver() [all …]
|
/frameworks/av/media/bufferpool/2.0/tests/ |
D | single.cpp | 57 mManager = ClientManager::getInstance(); in SetUp() 58 ASSERT_NE(mManager, nullptr); in SetUp() 63 status = mManager->create(mAllocator, &mConnectionId); in SetUp() 68 status = mManager->registerSender(mManager, mConnectionId, &mReceiverId); in SetUp() 75 mManager->close(mConnectionId); in TearDown() 84 android::sp<ClientManager> mManager; member in __anon953acadb0111::BufferpoolSingleTest 103 status = mManager->allocate(mConnectionId, vecParams, &allocHandle, &buffer[i]); in TEST_F() 125 status = mManager->allocate(mConnectionId, vecParams, &allocHandle, &buffer); in TEST_F() 148 status = mManager->allocate(mConnectionId, vecParams, &allocHandle, &sbuffer); in TEST_F() 151 status = mManager->postSend(mReceiverId, sbuffer, &transactionId, &postUs); in TEST_F() [all …]
|
D | multi.cpp | 91 mManager = ClientManager::getInstance(); in SetUp() 92 ASSERT_NE(mManager, nullptr); in SetUp() 97 status = mManager->create(mAllocator, &mConnectionId); in SetUp() 110 mManager->close(mConnectionId); in TearDown() 119 android::sp<ClientManager> mManager; member in __anone0bc05040111::BufferpoolMultiTest 140 mManager = ClientManager::getInstance(); in doReceiver() 141 if (!mManager) { in doReceiver() 146 android::status_t status = mManager->registerAsService(); in doReceiver() 159 ResultStatus status = mManager->receive( in doReceiver() 162 mManager->close(message.data.connectionId); in doReceiver() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | NetworkNotificationManagerTest.java | 91 NetworkNotificationManager mManager; field in NetworkNotificationManagerTest 110 mManager = new NetworkNotificationManager(mCtx, mTelephonyManager, mNotificationManager); in setUp() 115 mManager.showNotification(id, PRIVATE_DNS_BROKEN, nai, null, null, true); in verifyTitleByNetwork() 154 mManager.showNotification(ids.get(i), types.get(i), mWifiNai, mCellNai, null, false); in testNotificationsShownAndCleared() 160 mManager.clearNotification(idsToClear.get(i)); in testNotificationsShownAndCleared() 174 mManager.showNotification(100, NO_INTERNET, mCellNai, mWifiNai, null, false); in testNoInternetNotificationsNotShownForCellular() 175 mManager.showNotification(101, LOST_INTERNET, mCellNai, mWifiNai, null, false); in testNoInternetNotificationsNotShownForCellular() 179 mManager.showNotification(102, NO_INTERNET, mWifiNai, mCellNai, null, false); in testNoInternetNotificationsNotShownForCellular() 190 mManager.showNotification(102, NO_INTERNET, mWifiNai, mCellNai, null, false); in testNotificationsNotShownIfNoInternetCapability() 191 mManager.showNotification(103, LOST_INTERNET, mWifiNai, mCellNai, null, false); in testNotificationsNotShownIfNoInternetCapability() [all …]
|
/frameworks/base/media/java/android/mtp/ |
D | MtpDatabase.java | 96 private MtpStorageManager mManager; field in MtpDatabase 280 mManager = new MtpStorageManager(new MtpStorageManager.MtpNotifier() { in MtpDatabase() 326 mManager.close(); in close() 349 MtpStorage mtpStorage = mManager.addMtpStorage(storage); in addStorage() 364 mManager.removeMtpStorage(mtpStorage); in removeStorage() 407 parent == 0 ? mManager.getStorageRoot(storageId) : mManager.getObject(parent); in beginSendObject() 413 return mManager.beginSendObject(parentObj, objPath.getFileName().toString(), format); in beginSendObject() 418 MtpStorageManager.MtpObject obj = mManager.getObject(handle); in endSendObject() 419 if (obj == null || !mManager.endSendObject(obj, succeeded)) { in endSendObject() 436 List<MtpStorageManager.MtpObject> objs = mManager.getObjects(parent, in getObjectList() [all …]
|
/frameworks/opt/net/ims/src/java/com/android/ims/ |
D | FeatureConnector.java | 79 public T mManager; field in FeatureConnector 158 if (mManager != null) { in disconnect() 159 mManager.removeNotifyStatusChangedCallback(mNotifyStatusChangedCallback); in disconnect() 182 mManager = mListener.getFeatureManager(); in createImsService() 185 mManager.addNotifyStatusChangedCallbackIfAvailable(mNotifyStatusChangedCallback); in createImsService() 197 if (mManager != null) { in retryGetImsService() 200 mManager.removeNotifyStatusChangedCallback(mNotifyStatusChangedCallback); in retryGetImsService() 202 mManager = null; in retryGetImsService() 221 if (mManager != null) { 222 status = mManager.getImsServiceState(); [all …]
|
/frameworks/base/core/java/android/app/ |
D | BackStackRecord.java | 177 final FragmentManagerImpl mManager; field in BackStackRecord 370 mManager = manager; in BackStackRecord() 371 mReorderingAllowed = mManager.getTargetSdk() > Build.VERSION_CODES.N_MR1; in BackStackRecord() 387 if (mBreadCrumbTitleRes != 0 && mManager.mHost != null) { in getBreadCrumbTitle() 388 return mManager.mHost.getContext().getText(mBreadCrumbTitleRes); in getBreadCrumbTitle() 394 if (mBreadCrumbShortTitleRes != 0 && mManager.mHost != null) { in getBreadCrumbShortTitle() 395 return mManager.mHost.getContext().getText(mBreadCrumbShortTitleRes); in getBreadCrumbShortTitle() 424 if (mManager.getTargetSdk() > Build.VERSION_CODES.N_MR1) { in doAddOp() 434 fragment.mFragmentManager = mManager; in doAddOp() 656 mManager.execSingleAction(this, false); in commitNow() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | NightDisplayTile.java | 62 private final ColorDisplayManager mManager; field in NightDisplayTile 69 mManager = mContext.getSystemService(ColorDisplayManager.class); in NightDisplayTile() 88 && mManager.getNightDisplayAutoModeRaw() == -1) { in handleClick() 89 mManager.setNightDisplayAutoMode(ColorDisplayManager.AUTO_MODE_CUSTOM_TIME); in handleClick() 95 mManager.setNightDisplayActivated(activated); in handleClick() 116 state.value = mManager.isNightDisplayActivated(); in handleUpdateState() 133 switch (mManager.getNightDisplayAutoMode()) { in getSecondaryLabel() 150 toggleTime = mManager.getNightDisplayCustomEndTime(); in getSecondaryLabel() 153 toggleTime = mManager.getNightDisplayCustomStartTime(); in getSecondaryLabel() 183 .addTaggedData(FIELD_QS_MODE, mManager.getNightDisplayAutoModeRaw()); in populate()
|