Home
last modified time | relevance | path

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

123

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/selection/
DSelectionManagerTest.java46 private SelectionManager mManager; field in SelectionManagerTest
56 mManager = SelectionManagers.createTestInstance( in setUp()
60 mManager.addCallback(mCallback); in setUp()
61 mManager.addItemCallback(mItemCallback); in setUp()
63 mSelection = new SelectionProbe(mManager, mItemCallback); in setUp()
71 mManager.toggleSelection(ITEMS.get(7)); in testSelection()
74 mManager.toggleSelection(ITEMS.get(7)); in testSelection()
82 mManager.toggleSelection(ITEMS.get(7)); in testSelection_DoNothingOnUnselectableItem()
89 mManager.toggleSelection(ITEMS.get(7)); in testSelection_NotifiesSelectionChanged()
92 mManager.toggleSelection(ITEMS.get(7)); in testSelection_NotifiesSelectionChanged()
[all …]
DSelectionManager_SingleSelectTest.java41 private SelectionManager mManager; field in SelectionManager_SingleSelectTest
49 mManager = SelectionManagers.createTestInstance(ITEMS, SelectionManager.MODE_SINGLE); in setUp()
50 mManager.addCallback(mCallback); in setUp()
52 mSelection = new SelectionProbe(mManager); in setUp()
57 mManager.toggleSelection(ITEMS.get(3)); in testSimpleSelect()
58 mManager.toggleSelection(ITEMS.get(4)); in testSimpleSelect()
65 mManager.toggleSelection(ITEMS.get(3)); in testRangeSelectionNotEstablished()
69 mManager.snapRangeSelection(10); in testRangeSelectionNotEstablished()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDragAndDropManagerTests.java93 private DragAndDropManager mManager; field in DragAndDropManagerTests
125 mManager = new RuntimeDragAndDropManager(mActivity, mClipper, mShadowBuilder, in setUp()
149 mManager.startDrag( in testStartDrag_SetsCorrectClipData()
164 mManager.startDrag( in testStartDrag_SetsCorrectClipData_NullParent()
179 mManager.startDrag( in testStartDrag_BuildsCorrectShadow_SingleDoc()
194 mManager.startDrag( in testStartDrag_BuildsCorrectShadow_MultipleDocs()
211 mManager.startDrag( in testCanSpringOpen_ReturnsFalse_RootNotSupportCreate()
221 assertFalse(mManager.canSpringOpen(TestProvidersAccess.HAMMY, TestEnv.FOLDER_2)); in testCanSpringOpen_ReturnsFalse_RootNotSupportCreate()
227 mManager.startDrag( in testInArchiveUris_HasCorrectFlagPermission()
241 mManager.startDrag( in testCanSpringOpen_ReturnsFalse_DocIsInvalidDestination()
[all …]
DFocusManagerTest.java40 private FocusManager mManager; field in FocusManagerTest
50 mManager = new FocusManager(mFeatures, mSelectionMgr, null, null, 0) in setUp()
55 mManager.focusDocument(Integer.toString(3)); in testFocus()
60 mManager.focusDocument(Integer.toString(10)); in testPendingFocus()
63 mManager.onLayoutCompleted(); in testPendingFocus()
70 mManager = new FocusManager( in testFocusDirectoryList_noItemsToFocus()
73 assertFalse(mManager.focusDirectoryList()); in testFocusDirectoryList_noItemsToFocus()
78 assertFalse(mManager.focusDirectoryList()); in testFocusDirectoryList_hasSelection()
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/
DCarAppFocusManagerTest.java29 private CarAppFocusManager mManager; field in CarAppFocusManagerTest
34 mManager = (CarAppFocusManager) getCar().getCarManager(Car.APP_FOCUS_SERVICE); in setUp()
35 assertNotNull(mManager); in setUp()
40 mManager.requestAppFocus(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, owner); in setUp()
41 mManager.requestAppFocus(CarAppFocusManager.APP_FOCUS_TYPE_VOICE_COMMAND, owner); in setUp()
42 mManager.abandonAppFocus(owner); in setUp()
47 mManager.requestAppFocus(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, null); in testSetActiveNullListener()
56 mManager.addFocusListener(null, CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in testRegisterNull()
66 mManager.addFocusListener(listener, CarAppFocusManager.APP_FOCUS_TYPE_VOICE_COMMAND); in testRegisterUnregister()
67 mManager.addFocusListener(listener2, CarAppFocusManager.APP_FOCUS_TYPE_VOICE_COMMAND); in testRegisterUnregister()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DProvisioningManagerTest.java74 private ProvisioningManager mManager; field in ProvisioningManagerTest
87 mManager = new ProvisioningManager(mContext, mUiHandler, mFactory, mAnalyticsTracker, in setUp()
89 when(mFactory.createProvisioningController(mContext, TEST_PARAMS, mManager)) in setUp()
97 mManager.maybeStartProvisioning(TEST_PARAMS); in testMaybeStartProvisioning()
100 verify(mFactory).createProvisioningController(mContext, TEST_PARAMS, mManager); in testMaybeStartProvisioning()
108 mManager.maybeStartProvisioning(TEST_PARAMS); in testMaybeStartProvisioning()
118 mManager.maybeStartProvisioning(TEST_PARAMS); in testCancelProvisioning()
121 mManager.cancelProvisioning(); in testCancelProvisioning()
131 mManager.registerListener(mCallback); in testRegisterListener_noProgress()
137 mManager.progressUpdate(TEST_PROGRESS_ID); in testRegisterListener_noProgress()
[all …]
/packages/services/Car/car-support-lib/src/android/support/car/
DCarAppFocusManagerEmbedded.java28 private final android.car.CarAppFocusManager mManager; field in CarAppFocusManagerEmbedded
39 mManager = (android.car.CarAppFocusManager) manager; in CarAppFocusManagerEmbedded()
57 mManager.addFocusListener(proxy, appType); in addFocusListener()
72 mManager.removeFocusListener(proxy, appType); in removeFocusListener()
84 mManager.removeFocusListener(proxy); in removeFocusListener()
98 return mManager.isOwningFocus(proxy, appType); in isOwningFocus()
119 return mManager.requestAppFocus(appType, proxy); in requestAppFocus()
137 mManager.abandonAppFocus(proxy, appType); in abandonAppFocus()
152 mManager.abandonAppFocus(proxy); in abandonAppFocus()
164 private final CarAppFocusManager mManager; field in CarAppFocusManagerEmbedded.OnAppFocusChangedListenerProxy
[all …]
DCarInfoManagerEmbedded.java23 private final android.car.CarInfoManager mManager; field in CarInfoManagerEmbedded
27 mManager = (android.car.CarInfoManager) manager; in CarInfoManagerEmbedded()
33 return mManager.getManufacturer(); in getManufacturer()
42 return mManager.getModel(); in getModel()
51 return mManager.getModelYear(); in getModelYear()
60 return mManager.getVehicleId(); in getVehicleId()
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/
DDndCondition.java53 mManager.getContext().registerReceiver(mReceiver, DND_FILTER); in DndCondition()
60 mManager.getContext().getSystemService(NotificationManager.class); in refreshState()
86 return mManager.getContext().getString(R.string.zen_mode_option_alarms); in getZenState()
88 return mManager.getContext().getString( in getZenState()
91 return mManager.getContext().getString(R.string.zen_mode_option_no_interruptions); in getZenState()
98 return Icon.createWithResource(mManager.getContext(), R.drawable.ic_zen); in getIcon()
103 return mManager.getContext().getString(R.string.condition_zen_title, getZenState()); in getTitle()
110 …return isForever ? mManager.getContext().getString(com.android.internal.R.string.zen_mode_forever_… in getSummary()
111 : ZenModeConfig.getConditionSummary(mManager.getContext(), mConfig, in getSummary()
118 return new CharSequence[] { mManager.getContext().getString(R.string.condition_turn_off) }; in getActions()
[all …]
DCellularDataCondition.java39 ConnectivityManager connectivity = mManager.getContext().getSystemService( in refreshState()
41 TelephonyManager telephony = mManager.getContext().getSystemService(TelephonyManager.class); in refreshState()
62 return Icon.createWithResource(mManager.getContext(), R.drawable.ic_cellular_off); in getIcon()
67 return mManager.getContext().getString(R.string.condition_cellular_title); in getTitle()
72 return mManager.getContext().getString(R.string.condition_cellular_summary); in getSummary()
77 return new CharSequence[] { mManager.getContext().getString(R.string.condition_turn_on) }; in getActions()
82 mManager.getContext().startActivity(new Intent(mManager.getContext(), in onPrimaryClick()
89 TelephonyManager telephony = mManager.getContext().getSystemService( in onActionClick()
DBackgroundDataCondition.java33 setActive(NetworkPolicyManager.from(mManager.getContext()).getRestrictBackground()); in refreshState()
38 return Icon.createWithResource(mManager.getContext(), R.drawable.ic_data_saver); in getIcon()
43 return mManager.getContext().getString(R.string.condition_bg_data_title); in getTitle()
48 return mManager.getContext().getString(R.string.condition_bg_data_summary); in getSummary()
53 return new CharSequence[] { mManager.getContext().getString(R.string.condition_turn_off) }; in getActions()
58 mManager.getContext().startActivity(new Intent(mManager.getContext(), in onPrimaryClick()
70 NetworkPolicyManager.from(mManager.getContext()).setRestrictBackground(false); in onActionClick()
DAirplaneModeCondition.java46 setActive(WirelessUtils.isAirplaneModeOn(mManager.getContext())); in refreshState()
61 return Icon.createWithResource(mManager.getContext(), R.drawable.ic_airplane); in getIcon()
72 return mManager.getContext().getString(R.string.condition_airplane_title); in getTitle()
77 return mManager.getContext().getString(R.string.condition_airplane_summary); in getSummary()
82 return new CharSequence[] { mManager.getContext().getString(R.string.condition_turn_off) }; in getActions()
87 mManager.getContext().startActivity(new Intent(mManager.getContext(), in onPrimaryClick()
94 ConnectivityManager.from(mManager.getContext()).setAirplaneMode(false); in onActionClick()
DHotspotCondition.java46 mWifiManager = mManager.getContext().getSystemService(WifiManager.class); in HotspotCondition()
68 return Icon.createWithResource(mManager.getContext(), R.drawable.ic_hotspot); in getIcon()
74 return mManager.getContext().getString( in getSsid()
83 return mManager.getContext().getString(R.string.condition_hotspot_title); in getTitle()
88 return mManager.getContext().getString(R.string.condition_hotspot_summary, getSsid()); in getSummary()
93 final Context context = mManager.getContext(); in getActions()
103 Utils.startWithFragment(mManager.getContext(), TetherSettings.class.getName(), null, null, in onPrimaryClick()
110 final Context context = mManager.getContext(); in onActionClick()
DBatterySaverCondition.java32 PowerManager powerManager = mManager.getContext().getSystemService(PowerManager.class); in refreshState()
38 return Icon.createWithResource(mManager.getContext(), R.drawable.ic_settings_battery); in getIcon()
43 return mManager.getContext().getString(R.string.condition_battery_title); in getTitle()
48 return mManager.getContext().getString(R.string.condition_battery_summary); in getSummary()
53 return new CharSequence[] { mManager.getContext().getString(R.string.condition_turn_off) }; in getActions()
58 Utils.startWithFragment(mManager.getContext(), BatterySaverSettings.class.getName(), null, in onPrimaryClick()
65 mManager.getContext().getSystemService(PowerManager.class).setPowerSaveMode(false); in onActionClick()
DWorkModeCondition.java38 mUm = (UserManager) mManager.getContext().getSystemService(Context.USER_SERVICE); in WorkModeCondition()
63 return Icon.createWithResource(mManager.getContext(), in getIcon()
69 return mManager.getContext().getString(R.string.condition_work_title); in getTitle()
74 return mManager.getContext().getString(R.string.condition_work_summary); in getSummary()
80 mManager.getContext().getString(R.string.condition_turn_on) in getActions()
86 mManager.getContext().startActivity(new Intent(mManager.getContext(), in onPrimaryClick()
/packages/services/Car/tests/carservice_test/src/com/android/car/test/
DCarVendorExtensionManagerTest.java95 private CarVendorExtensionManager mManager; field in CarVendorExtensionManagerTest
101 mManager = (CarVendorExtensionManager) getCar().getCarManager(Car.VENDOR_EXTENSION_SERVICE); in setUp()
102 assertNotNull(mManager); in setUp()
111 List<CarPropertyConfig> configs = mManager.getProperties(); in testPropertyList()
128 mManager.setGlobalProperty(Integer.class, CUSTOM_GLOBAL_INT_PROP_ID, value); in testIntGlobalProperty()
129 int actualValue = mManager.getGlobalProperty(Integer.class, CUSTOM_GLOBAL_INT_PROP_ID); in testIntGlobalProperty()
135 mManager.setProperty( in testFloatZonedProperty()
141 float actualValue = mManager.getProperty( in testFloatZonedProperty()
150 mManager.setGlobalProperty( in testByteArrayProperty()
155 byte[] actualData = mManager.getGlobalProperty( in testByteArrayProperty()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DDatabaseIndexingManagerTest.java129 private DatabaseIndexingManager mManager; field in DatabaseIndexingManagerTest
139 mManager = spy(new DatabaseIndexingManager(mContext, PACKAGE_ONE)); in setUp()
188 mManager.indexOneSearchIndexableData(mDb, localeStr, raw, in testInsertRawColumn_rowInserted()
202 mManager.indexOneSearchIndexableData(mDb, localeStr, raw, niks); in testInsertRawColumn_nonIndexableKey_resultIsDisabled()
210 mManager.indexOneSearchIndexableData(mDb, localeStr, raw, in testInsertRawColumn_rowMatches()
265 mManager.indexOneSearchIndexableData(mDb, localeStr, raw, null /* Non-indexable keys */); in testInsertRawColumn_mismatchedLocale_noRowInserted()
275 mManager.indexOneSearchIndexableData(mDb, localeStr, null /* searchIndexableResource */, in testNullResource_NothingInserted()
284 mManager.indexOneSearchIndexableData(mDb, localeStr, resource, new HashMap<>()); in testAddResource_RowsInserted()
296 mManager.indexOneSearchIndexableData(mDb, localeStr, resource, niks); in testAddResource_withNIKs_rowsInsertedDisabled()
307 mManager.indexOneSearchIndexableData(mDb, localeStr, resource, new HashMap<>()); in testAddResourceHeader_rowsMatch()
[all …]
/packages/services/Car/car-support-lib/src/android/support/car/hardware/
DCarSensorManagerEmbedded.java36 private final android.car.hardware.CarSensorManager mManager; field in CarSensorManagerEmbedded
41 mManager = (android.car.hardware.CarSensorManager) manager; in CarSensorManagerEmbedded()
49 for (Integer sensor : mManager.getSupportedSensors()) { in getSupportedSensors()
75 return mManager.isSensorSupported(sensorType) in isSensorSupported()
84 return !mManager.isSensorSupported(sensorType) in isSensorProxied()
108 return mManager.registerListener(proxy, sensorType, rate); in addListener()
125 mManager.unregisterListener(proxy); in removeListener()
142 mManager.unregisterListener(proxy, sensorType); in removeListener()
151 return convert(mManager.getLatestSensorEvent(type)); in getLatestSensorEvent()
161 return convert(mManager.getSensorConfig(type)); in getSensorConfig()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarProjectionManagerTest.java38 private CarProjectionManager mManager; field in CarProjectionManagerTest
66 mManager = (CarProjectionManager) getCar().getCarManager(Car.PROJECTION_SERVICE); in setUp()
67 assertNotNull(mManager); in setUp()
71 mManager.registerProjectionListener( in testSetUnsetListeners()
73 mManager.unregisterProjectionListener(); in testSetUnsetListeners()
78 mManager.registerProjectionListener(null, CarProjectionManager.PROJECTION_VOICE_SEARCH); in testRegisterListenersHandleBadInput()
88 mManager.registerProjectionRunner(intent); in testRegisterProjectionRunner()
97 mManager.unregisterProjectionRunner(intent); in testRegisterProjectionRunner()
DCarAppFocusManagerTest.java39 private CarAppFocusManager mManager; field in CarAppFocusManagerTest
46 mManager = (CarAppFocusManager) getCar().getCarManager(Car.APP_FOCUS_SERVICE); in setUp()
47 assertNotNull(mManager); in setUp()
52 mManager.requestAppFocus(APP_FOCUS_TYPE_NAVIGATION, owner); in setUp()
53 mManager.requestAppFocus(APP_FOCUS_TYPE_VOICE_COMMAND, owner); in setUp()
54 mManager.abandonAppFocus(owner); in setUp()
62 mManager.requestAppFocus(APP_FOCUS_TYPE_NAVIGATION, null); in testSetActiveNullListener()
71 mManager.addFocusListener(null, 0); in testRegisterNull()
81 mManager.addFocusListener(listener, 1); in testRegisterUnregister()
82 mManager.addFocusListener(listener2, 1); in testRegisterUnregister()
[all …]
/packages/services/Car/car-support-lib/src/android/support/car/media/
DCarAudioManagerEmbedded.java41 private final android.car.media.CarAudioManager mManager; field in CarAudioManagerEmbedded
44 mManager = (android.car.media.CarAudioManager) manager; in CarAudioManagerEmbedded()
51 return mManager.getAudioAttributesForCarUsage(carUsage); in getAudioAttributesForCarUsage()
63 return mManager.requestAudioFocus(listener, requestAttributes, durationHint, flags); in requestAudioFocus()
74 return mManager.requestAudioFocus(listener, requestAttributes, durationHint, in requestAudioFocus()
83 mManager.abandonAudioFocus(listener, aa); in abandonAudioFocus()
121 return mManager.isMediaMuted(); in isMediaMuted()
130 return mManager.setMediaMute(mute); in setMediaMute()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DDeviceProfilesSettings.java64 private LocalBluetoothManager mManager; field in DeviceProfilesSettings
84 mManager = Utils.getLocalBtManager(getActivity()); in onCreate()
85 CachedBluetoothDeviceManager deviceManager = mManager.getCachedDeviceManager(); in onCreate()
88 BluetoothDevice remoteDevice = mManager.getBluetoothAdapter().getRemoteDevice(address); in onCreate()
92 mCachedDevice = deviceManager.addDevice(mManager.getBluetoothAdapter(), in onCreate()
93 mManager.getProfileManager(), remoteDevice); in onCreate()
95 mProfileManager = mManager.getProfileManager(); in onCreate()
148 mManager.setForegroundActivity(getActivity()); in onResume()
168 mManager.setForegroundActivity(null); in onPause()
196 final PbapServerProfile psp = mManager.getProfileManager().getPbapProfile(); in addPreferencesForProfiles()
[all …]
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractPublicApiTest.java62 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); in getStatusIfExists()
78 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); in getStringField()
89 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); in getLongField()
100 ParcelFileDescriptor downloadedFile = mManager.openDownloadedFile(mId); in getRawContents()
178 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); in runUntilProgress()
213 protected DownloadManager mManager; field in AbstractPublicApiTest
222 mManager = new DownloadManager(new ContextWrapper(mContext) { in setUp()
233 mManager.setAccessFilename(true); in setUp()
246 return new Download(mManager.enqueue(request)); in enqueueRequest()
/packages/services/Car/car-support-lib/src/android/support/car/navigation/
DCarNavigationStatusManagerEmbedded.java27 private final android.car.navigation.CarNavigationStatusManager mManager; field in CarNavigationStatusManagerEmbedded
30 mManager = (android.car.navigation.CarNavigationStatusManager) manager; in CarNavigationStatusManagerEmbedded()
40 mManager.sendNavigationStatus(status); in sendNavigationStatus()
56 mManager.sendNavigationTurnEvent(event, eventName, turnAngle, turnNumber, image, in sendNavigationTurnEvent()
67 mManager.sendNavigationTurnDistanceEvent(distanceMeters, timeSeconds, in sendNavigationTurnDistanceEvent()
77 mManager.sendEvent(eventType, bundle); in sendEvent()
99 callback.onInstrumentClusterStarted(this, convert(mManager.getInstrumentClusterInfo())); in addListener()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DContactsContentObserver.java42 private final ContactsManager mManager; field in ContactsContentObserver
49 mManager = manager; in ContactsContentObserver()
108 final int contactCount = mManager.getContactCount(); in haveContentsChanged()
115 if (contactCount != mManager.getContactCountAtLastRebuild()) { in haveContentsChanged()
118 + mManager.getContactCountAtLastRebuild() + " to " + contactCount); in haveContentsChanged()
122 final ArrayList<String> names = mManager.getValidNames(Contacts.CONTENT_URI); in haveContentsChanged()
123 if (names.hashCode() != mManager.getHashCodeAtLastRebuild()) { in haveContentsChanged()

123