Home
last modified time | relevance | path

Searched refs:mManager (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest2.java886 mManager.addDynamicShortcuts(list(sorig, sorig2)); in testShortcutInfoSaveAndLoad()
958 mManager.addDynamicShortcuts(list(sorig));
1034 mManager.addDynamicShortcuts(list(sorig, sorig2));
1107 mManager.addDynamicShortcuts(list(sorig, sorig2));
1171 mManager.addDynamicShortcuts(list(sorig, sorig2));
1212 assertTrue(mManager.setDynamicShortcuts(list(
1228 assertTrue(mManager.setDynamicShortcuts(list(
1318 assertTrue(mManager.setDynamicShortcuts(list(si1)));
1319 assertEquals(2, mManager.getRemainingCallCount());
1320 assertEquals(START_TIME + INTERVAL, mManager.getRateLimitResetTime());
[all …]
DShortcutManagerTest1.java224 assertEquals(MAX_SHORTCUTS, mManager.getMaxShortcutCountForActivity()); in testGetMaxDynamicShortcutCount()
229 assertEquals(MAX_UPDATES_PER_INTERVAL, mManager.getRemainingCallCount()); in testGetRemainingCallCount()
233 assertEquals(MAX_ICON_DIMENSION, mManager.getIconMaxWidth()); in testGetIconMaxDimensions()
234 assertEquals(MAX_ICON_DIMENSION, mManager.getIconMaxHeight()); in testGetIconMaxDimensions()
239 assertEquals(START_TIME + INTERVAL, mManager.getRateLimitResetTime()); in testGetRateLimitResetTime()
243 assertEquals(START_TIME + 5 * INTERVAL, mManager.getRateLimitResetTime()); in testGetRateLimitResetTime()
279 assertTrue(mManager.setDynamicShortcuts(list(si1, si2, si3))); in testSetDynamicShortcuts()
281 mManager.getDynamicShortcuts()), in testSetDynamicShortcuts()
283 assertEquals(2, mManager.getRemainingCallCount()); in testSetDynamicShortcuts()
287 assertTrue(mManager.setDynamicShortcuts(list(si1))); in testSetDynamicShortcuts()
[all …]
DShortcutManagerTest7.java125 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling()
128 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling()
135 assertEquals(3, mManager.getRemainingCallCount()); in testResetThrottling()
138 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling()
146 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling_user_not_running()
149 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling_user_not_running()
163 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling_user_not_running()
166 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling_user_not_running()
174 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling_user_running()
177 assertTrue(mManager.getRemainingCallCount() < 3); in testResetThrottling_user_running()
[all …]
DShortcutManagerTest3.java74 mManager.setDynamicShortcuts(list( in testSetDynamicShortcuts_noManifestShortcuts()
81 assertTrue(mManager.setDynamicShortcuts(list( in testSetDynamicShortcuts_noManifestShortcuts()
90 assertTrue(mManager.setDynamicShortcuts(list( in testSetDynamicShortcuts_noManifestShortcuts()
100 assertTrue(mManager.setDynamicShortcuts(list( in testSetDynamicShortcuts_noManifestShortcuts()
109 assertTrue(mManager.setDynamicShortcuts(list( in testSetDynamicShortcuts_noManifestShortcuts()
121 assertTrue(mManager.setDynamicShortcuts(list( in testSetDynamicShortcuts_noManifestShortcuts()
136 assertTrue(mManager.setDynamicShortcuts(list())); in testSetDynamicShortcuts_noManifestShortcuts()
169 mManager.addDynamicShortcuts(list( in testAddDynamicShortcuts_noManifestShortcuts()
178 mManager.addDynamicShortcuts(list( in testAddDynamicShortcuts_noManifestShortcuts()
199 mManager.addDynamicShortcuts(list( in testAddDynamicShortcuts_noManifestShortcuts()
[all …]
DShortcutManagerTest8.java122 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 …]
DShortcutManagerTest10.java57 assertNull(mManager.createShortcutResultIntent(s1)); in testCreateShortcutResult_noDefaultLauncher()
66 Intent intent = mManager.createShortcutResultIntent(s1); in testCreateShortcutResult_validResult()
80 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1")))); in testCreateShortcutResult_alreadyPinned()
89 Intent intent = mManager.createShortcutResultIntent(s1); in testCreateShortcutResult_alreadyPinned()
102 assertTrue(mManager.setDynamicShortcuts(list(makeShortcut("s1")))); in testCreateShortcutResult_alreadyPinnedByAnother()
113 Intent intent = mManager.createShortcutResultIntent(s1); in testCreateShortcutResult_alreadyPinnedByAnother()
129 Intent intent = mManager.createShortcutResultIntent(s1); in testCreateShortcutResult_defaultLauncherChanges()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpManagerTest.java41 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 …]
DDocumentLoaderTest.java37 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/
DANQPRequestManagerTest.java91 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 …]
DPasspointManagerTest.java127 PasspointManager mManager; field in PasspointManagerTest
137 mManager = new PasspointManager(mContext, mWifiNative, mWifiKeyStore, mClock, in setUp()
182 List<PasspointConfiguration> installedConfigs = mManager.getProviderConfigs(); in verifyInstalledConfig()
256 assertTrue(mManager.addOrUpdateProvider(config, TEST_CREATOR_UID)); in addTestProvider()
438 assertFalse(mManager.addOrUpdateProvider(null, TEST_CREATOR_UID)); in addProviderWithNullConfig()
448 assertFalse(mManager.addOrUpdateProvider(new PasspointConfiguration(), TEST_CREATOR_UID)); in addProviderWithEmptyConfig()
462 assertFalse(mManager.addOrUpdateProvider(config, TEST_CREATOR_UID)); in addProviderWithInvalidCredential()
476 assertTrue(mManager.addOrUpdateProvider(config, TEST_CREATOR_UID)); in addRemoveProviderWithValidUserCredential()
489 assertTrue(mManager.removeProvider(TEST_FQDN)); in addRemoveProviderWithValidUserCredential()
492 assertTrue(mManager.getProviderConfigs().isEmpty()); in addRemoveProviderWithValidUserCredential()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiMulticastLockManagerTest.java42 WifiMulticastLockManager mManager; field in WifiMulticastLockManagerTest
50 mManager = new WifiMulticastLockManager(mHandler, mBatteryStats); in setUp()
58 assertFalse(mManager.isMulticastEnabled()); in noLocks()
59 mManager.initializeFiltering(); in noLocks()
69 mManager.acquireLock(binder, "Test"); in oneLock()
70 assertTrue(mManager.isMulticastEnabled()); in oneLock()
72 mManager.initializeFiltering(); in oneLock()
77 mManager.releaseLock(); in oneLock()
79 assertFalse(mManager.isMulticastEnabled()); in oneLock()
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java191 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/services/tests/servicestests/src/com/android/server/appwidget/
DAppWidgetServiceImplTest.java74 private AppWidgetManager mManager; field in AppWidgetServiceImplTest
88 mManager = new AppWidgetManager(mTestContext, mService); in setUp()
98 for (AppWidgetProviderInfo provider : mManager.getInstalledProviders()) { in testRequestPinAppWidget_otherProvider()
107 assertFalse(mManager.requestPinAppWidget(otherProvider, null, null)); in testRequestPinAppWidget_otherProvider()
116 assertTrue(mManager.requestPinAppWidget(provider, null, null)); in testRequestPinAppWidget()
129 assertTrue(mManager.isRequestPinAppWidgetSupported()); in testIsRequestPinAppWidgetSupported()
130 assertFalse(mManager.isRequestPinAppWidgetSupported()); in testIsRequestPinAppWidgetSupported()
139 mManager.updateAppWidget(widgetId, view); in testProviderUpdatesReceived()
140 mManager.updateAppWidget(widgetId, view); in testProviderUpdatesReceived()
141 mManager.updateAppWidget(widgetId, view); in testProviderUpdatesReceived()
[all …]
/frameworks/support/v7/preference/tests/src/android/support/v7/preference/tests/
DPreferenceDataStoreTest.java74 private PreferenceManager mManager; field in PreferenceDataStoreTest
88 mManager = new PreferenceManager(mContext); in setup()
89 mSharedPref = mManager.getSharedPreferences(); in setup()
90 mScreen = mManager.createPreferenceScreen(mContext); 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()
[all …]
/frameworks/base/core/java/android/app/
DBackStackRecord.java177 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/tests/net/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java71 NetworkNotificationManager mManager; field in NetworkNotificationManagerTest
86 mManager = new NetworkNotificationManager(mCtx, mTelephonyManager, mNotificationManager); in setUp()
101 mManager.showNotification(ids.get(i), types.get(i), mWifiNai, mCellNai, null, false); in testNotificationsShownAndCleared()
107 mManager.clearNotification(idsToClear.get(i)); in testNotificationsShownAndCleared()
121 mManager.showNotification(100, NO_INTERNET, mCellNai, mWifiNai, null, false); in testNoInternetNotificationsNotShownForCellular()
122 mManager.showNotification(101, LOST_INTERNET, mCellNai, mWifiNai, null, false); in testNoInternetNotificationsNotShownForCellular()
126 mManager.showNotification(102, NO_INTERNET, mWifiNai, mCellNai, null, false); in testNoInternetNotificationsNotShownForCellular()
137 mManager.showNotification(102, NO_INTERNET, mWifiNai, mCellNai, null, false); in testNotificationsNotShownIfNoInternetCapability()
138 mManager.showNotification(103, LOST_INTERNET, mWifiNai, mCellNai, null, false); in testNotificationsNotShownIfNoInternetCapability()
139 mManager.showNotification(104, NETWORK_SWITCH, mWifiNai, mCellNai, null, false); in testNotificationsNotShownIfNoInternetCapability()
/frameworks/support/fragment/java/android/support/v4/app/
DBackStackRecord.java179 final FragmentManagerImpl mManager; field in BackStackRecord
333 mManager = manager; in BackStackRecord()
354 return mManager.mHost.getContext().getText(mBreadCrumbTitleRes); in getBreadCrumbTitle()
362 return mManager.mHost.getContext().getText(mBreadCrumbShortTitleRes); in getBreadCrumbShortTitle()
403 fragment.mFragmentManager = mManager; in doAddOp()
645 mManager.execSingleAction(this, false); in commitNow()
651 mManager.execSingleAction(this, true); in commitNowAllowingStateLoss()
676 mIndex = mManager.allocBackStackIndex(this); in commitInternal()
680 mManager.enqueueAction(this, allowStateLoss); in commitInternal()
702 mManager.addBackStackState(this); in generateOps()
[all …]
/frameworks/base/libs/hwui/thread/
DTaskProcessor.h39 explicit TaskProcessor(TaskManager* manager): mManager(manager) { } in TaskProcessor()
61 TaskManager* mManager; variable
66 if (mManager) { in addImpl()
68 return mManager->addTask(task, self); in addImpl()
/frameworks/base/core/java/android/content/
DUndoOwner.java26 final UndoManager mManager; field in UndoOwner
43 mManager = manager; in UndoOwner()
68 " mManager=" + mManager + in toString()
/frameworks/native/services/sensorservice/hidl/
DDirectReportChannel.cpp27 : mManager(manager), mId(channelId) {} in DirectReportChannel()
30 mManager.destroyDirectChannel(mId); in ~DirectReportChannel()
36 int token = mManager.configureDirectChannel(mId, in configure()
/frameworks/base/core/java/android/hardware/
DSensorDirectChannel.java131 mManager.destroyDirectChannel(this); in close()
180 return mManager.configureDirectChannelImpl(this, sensor, rateLevel); in configure()
185 mManager = manager; in SensorDirectChannel()
224 private final SensorManager mManager; field in SensorDirectChannel
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/
DPluginDependencyProvider.java25 private final PluginManager mManager; field in PluginDependencyProvider
28 mManager = manager; in PluginDependencyProvider()
44 if (!mManager.dependsOn(p, cls)) { in get()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DPipeManager.java58 protected final MtpManager mManager; field in PipeManager.Task
63 mManager = manager; in Task()
81 mManager.importFile( in run()
105 stream.write(mManager.getThumbnail( in run()
DMtpManager.java69 private final UsbManager mManager; field in MtpManager
73 mManager = (UsbManager) context.getSystemService(Context.USB_SERVICE); in MtpManager()
78 for (final UsbDevice candidate : mManager.getDeviceList().values()) { in openDevice()
87 if (!mManager.hasPermission(rawDevice)) { in openDevice()
88 mManager.grantPermission(rawDevice); in openDevice()
89 if (!mManager.hasPermission(rawDevice)) { in openDevice()
97 mManager.openDevice(rawDevice), in openDevice()
121 for (UsbDevice device : mManager.getDeviceList().values()) { in getDevices()
/frameworks/av/services/camera/libcameraservice/utils/
DAutoConditionLock.cpp27 mManager{manager}, mAutoLock{manager->mMutex}, mAcquired(false) {} in AutoConditionLock()
33 mManager->mState = false; in ~AutoConditionLock()
34 mManager->mCondition.broadcast(); in ~AutoConditionLock()

123