Home
last modified time | relevance | path

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

12

/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
DMultiSelectManagerTest.java44 private MultiSelectManager mManager; field in MultiSelectManagerTest
53 mManager = new MultiSelectManager(mEnv, mAdapter, MultiSelectManager.MODE_MULTIPLE, null); in setUp()
54 mManager.addCallback(mCallback); in setUp()
59 mManager.toggleSelection(items.get(7)); in testSelection()
62 mManager.toggleSelection(items.get(7)); in testSelection()
68 mManager.toggleSelection(items.get(7)); in testSelection_NotifiesSelectionChanged()
71 mManager.toggleSelection(items.get(7)); in testSelection_NotifiesSelectionChanged()
89 mManager.setItemsSelected(Lists.newArrayList(items.get(7)), true); in testSetSelectionFocusBegin()
90 mManager.setSelectionRangeBegin(7); in testSetSelectionFocusBegin()
163 mManager.onLongPress(TestInputEvent.tap(17)); in testSingleTapUp_ShiftReducesSelectionRange_FromPreviousShiftClick_Backwards()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest2.java886 mManager.addDynamicShortcuts(list(sorig, sorig2)); in testShortcutInfoSaveAndLoad()
966 mManager.addDynamicShortcuts(list(sorig, sorig2));
1039 mManager.addDynamicShortcuts(list(sorig, sorig2));
1103 mManager.addDynamicShortcuts(list(sorig, sorig2));
1144 assertTrue(mManager.setDynamicShortcuts(list(
1160 assertTrue(mManager.setDynamicShortcuts(list(
1250 assertTrue(mManager.setDynamicShortcuts(list(si1))); in testThrottling()
1251 assertEquals(2, mManager.getRemainingCallCount()); in testThrottling()
1252 assertEquals(START_TIME + INTERVAL, mManager.getRateLimitResetTime()); in testThrottling()
1255 assertTrue(mManager.setDynamicShortcuts(list(si1))); in testThrottling()
[all …]
DShortcutManagerTest1.java219 assertEquals(MAX_SHORTCUTS, mManager.getMaxShortcutCountForActivity()); in testGetMaxDynamicShortcutCount()
224 assertEquals(MAX_UPDATES_PER_INTERVAL, mManager.getRemainingCallCount()); in testGetRemainingCallCount()
228 assertEquals(MAX_ICON_DIMENSION, mManager.getIconMaxWidth()); in testGetIconMaxDimensions()
229 assertEquals(MAX_ICON_DIMENSION, mManager.getIconMaxHeight()); in testGetIconMaxDimensions()
234 assertEquals(START_TIME + INTERVAL, mManager.getRateLimitResetTime()); in testGetRateLimitResetTime()
238 assertEquals(START_TIME + 5 * INTERVAL, mManager.getRateLimitResetTime()); in testGetRateLimitResetTime()
266 assertTrue(mManager.setDynamicShortcuts(list(si1, si2))); in testSetDynamicShortcuts()
268 mManager.getDynamicShortcuts()), in testSetDynamicShortcuts()
270 assertEquals(2, mManager.getRemainingCallCount()); in testSetDynamicShortcuts()
274 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.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 …]
/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/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/wifi/java/android/net/wifi/nan/
DWifiNanSession.java36 protected WifiNanManager mManager; field in WifiNanSession
54 mManager = manager; in WifiNanSession()
66 mManager.stopSession(mSessionId); in stop()
76 mManager.destroySession(mSessionId); in destroy()
111 mManager.sendMessage(mSessionId, peerId, message, messageLength, messageId); in sendMessage()
/frameworks/base/services/tests/servicestests/src/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()
106 mManager.clearNotification(ids.get(i)); in testNotificationsShownAndCleared()
120 mManager.showNotification(100, NO_INTERNET, mCellNai, mWifiNai, null, false); in testNoInternetNotificationsNotShownForCellular()
121 mManager.showNotification(101, LOST_INTERNET, mCellNai, mWifiNai, null, false); in testNoInternetNotificationsNotShownForCellular()
125 mManager.showNotification(102, NO_INTERNET, mWifiNai, mCellNai, null, false); in testNoInternetNotificationsNotShownForCellular()
136 mManager.showNotification(102, NO_INTERNET, mWifiNai, mCellNai, null, false); in testNotificationsNotShownIfNoInternetCapability()
137 mManager.showNotification(103, LOST_INTERNET, mWifiNai, mCellNai, null, false); in testNotificationsNotShownIfNoInternetCapability()
138 mManager.showNotification(104, NETWORK_SWITCH, mWifiNai, mCellNai, null, false); in testNotificationsNotShownIfNoInternetCapability()
/frameworks/support/fragment/java/android/support/v4/app/
DBackStackRecord.java202 final FragmentManagerImpl mManager; field in BackStackRecord
363 mManager = manager; in BackStackRecord()
384 return mManager.mHost.getContext().getText(mBreadCrumbTitleRes); in getBreadCrumbTitle()
392 return mManager.mHost.getContext().getText(mBreadCrumbShortTitleRes); in getBreadCrumbShortTitle()
440 fragment.mFragmentManager = mManager; in doAddOp()
673 mManager.execSingleAction(this, false); in commitNow()
679 mManager.execSingleAction(this, true); in commitNowAllowingStateLoss()
692 mIndex = mManager.allocBackStackIndex(this); in commitInternal()
696 mManager.enqueueAction(this, allowStateLoss); in commitInternal()
715 if (SUPPORTS_TRANSITIONS && mManager.mCurState >= Fragment.CREATED) { in run()
[all …]
/frameworks/base/core/java/android/app/
DBackStackRecord.java209 final FragmentManagerImpl mManager; field in BackStackRecord
406 mManager = manager; in BackStackRecord()
423 return mManager.mHost.getContext().getText(mBreadCrumbTitleRes); in getBreadCrumbTitle()
430 return mManager.mHost.getContext().getText(mBreadCrumbShortTitleRes); in getBreadCrumbShortTitle()
466 fragment.mFragmentManager = mManager; in doAddOp()
682 mManager.execSingleAction(this, false); in commitNow()
688 mManager.execSingleAction(this, true); in commitNowAllowingStateLoss()
704 mIndex = mManager.allocBackStackIndex(this); in commitInternal()
708 mManager.enqueueAction(this, allowStateLoss); in commitInternal()
725 if (mManager.mCurState >= Fragment.CREATED) { in run()
[all …]
/frameworks/base/libs/hwui/thread/
DTaskProcessor.h39 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/base/packages/MtpDocumentsProvider/src/com/android/mtp/
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()
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()
DRootScanner.java55 final MtpManager mManager; field in RootScanner
66 mManager = manager; in RootScanner()
136 final MtpDeviceRecord[] devices = mManager.getDevices(); in run()
DDocumentLoader.java245 final MtpManager mManager; field in DocumentLoader.LoaderTask
259 mManager = manager; in LoaderTask()
279 mObjectHandles = mManager.getObjectHandles( in loadObjectHandles()
333 infoList.add(mManager.getObjectInfo( in loadObjectInfoList()
362 objectSizeList[i] = mManager.getObjectSizeLong( in loadObjectInfoList()
/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()
/frameworks/base/core/java/com/android/internal/widget/
DExploreByTouchHelper.java74 private final AccessibilityManager mManager; field in ExploreByTouchHelper
103 mManager = (AccessibilityManager) mContext.getSystemService(Context.ACCESSIBILITY_SERVICE); in ExploreByTouchHelper()
140 if (!mManager.isEnabled() || !mManager.isTouchExplorationEnabled()) { in dispatchHoverEvent()
179 if ((virtualViewId == INVALID_ID) || !mManager.isEnabled()) { in sendEventForVirtualView()
238 if (virtualViewId != INVALID_ID && mManager.isEnabled()) { in invalidateVirtualView()
610 if (!mManager.isEnabled() in requestAccessibilityFocus()
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DAggregatorManager.java34 private static AggregatorManager mManager = null; field in AggregatorManager
45 if (mManager == null ) in getInstance()
46 mManager = new AggregatorManager(); in getInstance()
47 return mManager; in getInstance()
/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java396 private DevicePolicyManager mManager; field in DeviceAdminReceiver
404 if (mManager != null) { in getManager()
405 return mManager; in getManager()
407 mManager = (DevicePolicyManager)context.getSystemService( in getManager()
409 return mManager; in getManager()
/frameworks/base/core/java/android/hardware/
DSystemSensorManager.java511 protected final SystemSensorManager mManager; field in SystemSensorManager.BaseEventQueue
522 mManager = manager; in BaseEventQueue()
553 Sensor sensor = mManager.mHandleToSensor.get(handle); in removeAllSensors()
653 mManager.mTargetSdkLevel)); in addSensorEvent()
671 final Sensor sensor = mManager.mHandleToSensor.get(handle); in dispatchSensorEvent()
707 final Sensor sensor = mManager.mHandleToSensor.get(handle); in dispatchFlushCompleteEvent()
723 final Sensor sensor = mManager.mHandleToSensor.get(handle); in dispatchAdditionalInfoEvent()
748 mManager.mTargetSdkLevel)); in addSensorEvent()
766 final Sensor sensor = mManager.mHandleToSensor.get(handle); in dispatchSensorEvent()
787 mManager.cancelTriggerSensorImpl(mListener, sensor, false); in dispatchSensorEvent()
/frameworks/support/core-ui/java/android/support/v4/widget/
DExploreByTouchHelper.java112 private final AccessibilityManager mManager; field in ExploreByTouchHelper
143 mManager = (AccessibilityManager) context.getSystemService(Context.ACCESSIBILITY_SERVICE); in ExploreByTouchHelper()
182 if (!mManager.isEnabled() in dispatchHoverEvent()
183 || !AccessibilityManagerCompat.isTouchExplorationEnabled(mManager)) { in dispatchHoverEvent()
506 if ((virtualViewId == INVALID_ID) || !mManager.isEnabled()) { in sendEventForVirtualView()
567 if (virtualViewId != INVALID_ID && mManager.isEnabled()) { in invalidateVirtualView()
954 if (!mManager.isEnabled() in requestAccessibilityFocus()
955 || !AccessibilityManagerCompat.isTouchExplorationEnabled(mManager)) { in requestAccessibilityFocus()
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
DBlockingCameraManager.java92 private final CameraManager mManager; field in BlockingCameraManager
105 mManager = manager; in BlockingCameraManager()
154 return (new OpenListener(mManager, cameraId, listener, handler)).blockUntilOpen(); in openCamera()

12