Home
last modified time | relevance | path

Searched refs:mManager (Results 1 – 25 of 52) 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 …]
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 …]
DShortcutManagerTest7.java126 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 …]
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/base/tests/testables/src/android/testing/
DTestableInstrumentation.java77 private TestLooperManager mManager; field in TestableInstrumentation.MainLooperManager
92 Message m = mManager.next(); in run()
94 mManager.recycle(m); in run()
98 mManager.execute(m); in run()
106 mManager.recycle(m); in run()
109 mManager.release(); in run()
154 mManager = acquireLooperManager(Looper.getMainLooper()); in startManaging()
161 while (!mManager.hasMessages(mMainHandler, null, this)); in startManaging()
163 Message next = mManager.next(); in startManaging()
166 mManager.execute(next); in startManaging()
[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.java133 PasspointManager mManager; field in PasspointManagerTest
143 mManager = new PasspointManager(mContext, mWifiNative, mWifiKeyStore, mClock, in setUp()
188 List<PasspointConfiguration> installedConfigs = mManager.getProviderConfigs(); in verifyInstalledConfig()
262 assertTrue(mManager.addOrUpdateProvider(config, TEST_CREATOR_UID)); in addTestProvider()
415 assertFalse(mManager.addOrUpdateProvider(null, TEST_CREATOR_UID)); in addProviderWithNullConfig()
427 assertFalse(mManager.addOrUpdateProvider(new PasspointConfiguration(), TEST_CREATOR_UID)); in addProviderWithEmptyConfig()
443 assertFalse(mManager.addOrUpdateProvider(config, TEST_CREATOR_UID)); in addProviderWithInvalidCredential()
459 assertTrue(mManager.addOrUpdateProvider(config, TEST_CREATOR_UID)); in addRemoveProviderWithValidUserCredential()
475 assertTrue(mManager.removeProvider(TEST_FQDN)); in addRemoveProviderWithValidUserCredential()
480 assertTrue(mManager.getProviderConfigs().isEmpty()); in addRemoveProviderWithValidUserCredential()
[all …]
/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/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/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/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/vo/
DSchool.java32 private User mManager; field in School
51 return mManager; in getManager()
55 mManager = manager; in setManager()
84 return mManager != null ? mManager.equals(school.mManager) : school.mManager == null; in equals()
92 result = 31 * result + (mManager != null ? mManager.hashCode() : 0); in hashCode()
/frameworks/support/v7/preference/tests/src/android/support/v7/preference/tests/
DPreferenceDataStoreTest.java75 private PreferenceManager mManager; field in PreferenceDataStoreTest
89 mManager = new PreferenceManager(mContext); in setup()
90 mSharedPref = mManager.getSharedPreferences(); in setup()
91 mScreen = mManager.createPreferenceScreen(mContext); in setup()
97 mManager.getSharedPreferences().edit().remove(KEY).commit(); in setup()
108 assertNull(mManager.getPreferenceDataStore()); in testThatDataStoreIsNullByDefault()
109 assertNotNull(mManager.getSharedPreferences()); in testThatDataStoreIsNullByDefault()
123 mManager.setPreferenceDataStore(mDataStore); in testSetGetOnPreferenceManager()
125 assertEquals(mDataStore, mManager.getPreferenceDataStore()); in testSetGetOnPreferenceManager()
126 assertNull(mManager.getSharedPreferences()); in testSetGetOnPreferenceManager()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java72 NetworkNotificationManager mManager; field in NetworkNotificationManagerTest
87 mManager = new NetworkNotificationManager(mCtx, mTelephonyManager, mNotificationManager); in setUp()
102 mManager.showNotification(ids.get(i), types.get(i), mWifiNai, mCellNai, null, false); in testNotificationsShownAndCleared()
108 mManager.clearNotification(idsToClear.get(i)); in testNotificationsShownAndCleared()
122 mManager.showNotification(100, NO_INTERNET, mCellNai, mWifiNai, null, false); in testNoInternetNotificationsNotShownForCellular()
123 mManager.showNotification(101, LOST_INTERNET, mCellNai, mWifiNai, null, false); in testNoInternetNotificationsNotShownForCellular()
127 mManager.showNotification(102, NO_INTERNET, mWifiNai, mCellNai, null, false); in testNoInternetNotificationsNotShownForCellular()
138 mManager.showNotification(102, NO_INTERNET, mWifiNai, mCellNai, null, false); in testNotificationsNotShownIfNoInternetCapability()
139 mManager.showNotification(103, LOST_INTERNET, mWifiNai, mCellNai, null, false); in testNotificationsNotShownIfNoInternetCapability()
140 mManager.showNotification(104, NETWORK_SWITCH, mWifiNai, mCellNai, null, false); in testNotificationsNotShownIfNoInternetCapability()
[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/support/fragment/java/android/support/v4/app/
DBackStackRecord.java177 final FragmentManagerImpl mManager; field in BackStackRecord
331 mManager = manager; in BackStackRecord()
352 return mManager.mHost.getContext().getText(mBreadCrumbTitleRes); in getBreadCrumbTitle()
360 return mManager.mHost.getContext().getText(mBreadCrumbShortTitleRes); in getBreadCrumbShortTitle()
401 fragment.mFragmentManager = mManager; in doAddOp()
643 mManager.execSingleAction(this, false); in commitNow()
649 mManager.execSingleAction(this, true); in commitNowAllowingStateLoss()
674 mIndex = mManager.allocBackStackIndex(this); in commitInternal()
678 mManager.enqueueAction(this, allowStateLoss); in commitInternal()
700 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()
227 private final SensorManager mManager; field in SensorDirectChannel
/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()
/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()

123