Home
last modified time | relevance | path

Searched refs:mgr (Results 1 – 25 of 56) sorted by relevance

123

/packages/modules/StatsD/statsd/tests/state/
DStateTracker_test.cpp60 int getStateInt(StateManager& mgr, int atomId, const HashableDimensionKey& queryKey) { in getStateInt() argument
62 mgr.getStateValue(atomId, queryKey, &output); in getStateInt()
110 StateManager& mgr = StateManager::getInstance(); in TEST() local
111 mgr.clear(); in TEST()
113 mgr.registerListener(util::SCREEN_STATE_CHANGED, listener1); in TEST()
114 EXPECT_EQ(1, mgr.getStateTrackersCount()); in TEST()
121 StateManager mgr; in TEST() local
122 mgr.updateLogSources(uidMap); in TEST()
124 mgr.registerListener(util::SCREEN_STATE_CHANGED, listener1); in TEST()
129 mgr.onLogEvent(*event); in TEST()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DMenuManagerTest.java119 private MenuManager mgr; field in MenuManagerTest
198 mgr = new MenuManager( in setUp()
232 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu()
251 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_ContainsPartial()
266 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_CreateArchives_ReflectsFeatureState()
274 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_CreateArchive()
282 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_NoCreateArchive()
290 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_cantRename()
298 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_cantDelete()
309 mgr.updateActionMenu(testMenu, selectionDetails); in testActionsMenu_canViewInOwner()
[all …]
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DE2ePerformanceTest.java87 CarSensorManager mgr = (CarSensorManager) mCar.getCarManager(Car.SENSOR_SERVICE); in benchmarkEventBandwidthThroughCarService() local
88 assertNotNull(mgr); in benchmarkEventBandwidthThroughCarService()
91 mgr.isSensorSupported(mgrPropId)); in benchmarkEventBandwidthThroughCarService()
118 mgr.registerListener(listener, propId, CarSensorManager.SENSOR_RATE_FASTEST); in benchmarkEventBandwidthThroughCarService()
127 mgr.unregisterListener(listener); in benchmarkEventBandwidthThroughCarService()
151 CarHvacManager mgr = (CarHvacManager) mCar.getCarManager(Car.HVAC_SERVICE); in benchmarkSetGetFromSingleClient() local
152 assertNotNull(mgr); in benchmarkSetGetFromSingleClient()
161 mgr.setBooleanProperty(PROP, 1, value); in benchmarkSetGetFromSingleClient()
162 boolean actualValue = mgr.getBooleanProperty(PROP, 1); in benchmarkSetGetFromSingleClient()
176 CarHvacManager mgr = (CarHvacManager) mCar.getCarManager(Car.HVAC_SERVICE); in benchmarkSetGetFromSingleClientMultipleThreads() local
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DMenuManagerTest.java115 private MenuManager mgr; field in MenuManagerTest
173 mgr = new MenuManager(testSearchManager, state, dirDetails, this::getFilesCount); in setUp()
189 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu()
203 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_selectAction()
211 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_selectActionTitle()
219 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_getContentAction()
227 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_getContentActionTitle()
235 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_notAllowMultiple()
244 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_AllowMultiple()
256 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_CanDeselectAll()
[all …]
/packages/apps/Gallery2/jni_jpegstream/src/
Djpeg_hook.cpp26 dst->mgr.next_output_byte = reinterpret_cast<JOCTET*>(dst->outStream->getBufferPtr()); in Mgr_init_destination_fcn()
27 dst->mgr.free_in_buffer = dst->outStream->getBufferSize(); in Mgr_init_destination_fcn()
36 dst->mgr.next_output_byte = reinterpret_cast<JOCTET*>(dst->outStream->getBufferPtr()); in Mgr_empty_output_buffer_fcn()
37 dst->mgr.free_in_buffer = len; in Mgr_empty_output_buffer_fcn()
43 int32_t remaining = dst->outStream->getBufferSize() - dst->mgr.free_in_buffer; in Mgr_term_destination_fcn()
64 d->mgr.init_destination = Mgr_init_destination_fcn; in MakeDst()
65 d->mgr.empty_output_buffer = Mgr_empty_output_buffer_fcn; in MakeDst()
66 d->mgr.term_destination = Mgr_term_destination_fcn; in MakeDst()
103 src->mgr.next_input_byte = reinterpret_cast<JOCTET*>(src->inStream->getBufferPtr()); in Mgr_fill_input_buffer_fcn()
104 src->mgr.bytes_in_buffer = bytesRead; in Mgr_fill_input_buffer_fcn()
[all …]
Djerr_hook.cpp26 ErrManager* mgr = reinterpret_cast<ErrManager*>(cinfo->err); in ErrExit() local
29 longjmp(mgr->setjmp_buf, 1); in ErrExit()
45 jpeg_std_error(&(errMgr->mgr)); in SetupErrMgr()
46 errMgr->mgr.error_exit = ErrExit; in SetupErrMgr()
47 errMgr->mgr.output_message = ErrOutput; in SetupErrMgr()
Djpeg_hook.h36 struct jpeg_destination_mgr mgr; member
58 struct jpeg_source_mgr mgr; member
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DWifiAwareSession.java74 WifiAwareManager mgr = mMgr.get(); in close() local
75 if (mgr == null) { in close()
79 mgr.disconnect(mClientId, mBinder); in close()
151 WifiAwareManager mgr = mMgr.get(); in publish() local
152 if (mgr == null) { in publish()
160 mgr.publish(mClientId, (handler == null) ? Looper.getMainLooper() : handler.getLooper(), in publish()
199 WifiAwareManager mgr = mMgr.get(); in subscribe() local
200 if (mgr == null) { in subscribe()
208 mgr.subscribe(mClientId, (handler == null) ? Looper.getMainLooper() : handler.getLooper(), in subscribe()
247 WifiAwareManager mgr = mMgr.get(); in createNetworkSpecifierOpen() local
[all …]
DDiscoverySession.java102 WifiAwareManager mgr = mMgr.get(); in close() local
103 if (mgr == null) { in close()
107 mgr.terminateSession(mClientId, mSessionId); in close()
215 WifiAwareManager mgr = mMgr.get(); in sendMessage() local
216 if (mgr == null) { in sendMessage()
221 mgr.sendMessage(mClientId, mSessionId, peerHandle, message, messageId, retryCount); in sendMessage()
296 WifiAwareManager mgr = mMgr.get(); in createNetworkSpecifierOpen() local
297 if (mgr == null) { in createNetworkSpecifierOpen()
306 return mgr.createNetworkSpecifier(mClientId, role, mSessionId, peerHandle, null, null); in createNetworkSpecifierOpen()
355 WifiAwareManager mgr = mMgr.get(); in createNetworkSpecifierPassphrase() local
[all …]
DWifiAwareManager.java613 WifiAwareEventCallbackProxy(WifiAwareManager mgr, Looper looper, Binder binder, in WifiAwareEventCallbackProxy() argument
616 mAwareManager = new WeakReference<>(mgr); in WifiAwareEventCallbackProxy()
629 WifiAwareManager mgr = mAwareManager.get(); in WifiAwareEventCallbackProxy()
630 if (mgr == null) { in WifiAwareEventCallbackProxy()
638 new WifiAwareSession(mgr, mBinder, msg.arg1)); in WifiAwareEventCallbackProxy()
708 WifiAwareDiscoverySessionCallbackProxy(WifiAwareManager mgr, Looper looper, in WifiAwareDiscoverySessionCallbackProxy() argument
711 mAwareManager = new WeakReference<>(mgr); in WifiAwareDiscoverySessionCallbackProxy()
913 WifiAwareManager mgr = mAwareManager.get(); in onProxySessionStarted() local
914 if (mgr == null) { in onProxySessionStarted()
920 PublishDiscoverySession session = new PublishDiscoverySession(mgr, in onProxySessionStarted()
[all …]
DSubscribeDiscoverySession.java64 WifiAwareManager mgr = mMgr.get(); in updateSubscribe() local
65 if (mgr == null) { in updateSubscribe()
70 mgr.updateSubscribe(mClientId, mSessionId, subscribeConfig); in updateSubscribe()
DPublishDiscoverySession.java59 WifiAwareManager mgr = mMgr.get(); in updatePublish() local
60 if (mgr == null) { in updatePublish()
65 mgr.updatePublish(mClientId, mSessionId, publishConfig); in updatePublish()
/packages/apps/Settings/src/com/android/settings/
DResetNetworkConfirm.java182 SubscriptionManager mgr = getSubscriptionManager();
184 stopMonitorSubscriptionChange(mgr);
185 if (!isSubscriptionRemainActive(mgr, mSubId)) {
296 SubscriptionManager mgr = mActivity.getSystemService(SubscriptionManager.class); in getSubscriptionManager() local
297 if (mgr == null) { in getSubscriptionManager()
300 return mgr; in getSubscriptionManager()
303 private void startMonitorSubscriptionChange(SubscriptionManager mgr) { in startMonitorSubscriptionChange() argument
304 if (mgr == null) { in startMonitorSubscriptionChange()
312 SubscriptionManager mgr = getSubscriptionManager(); in startMonitorSubscriptionChange()
313 if (isSubscriptionRemainActive(mgr, mSubId)) { in startMonitorSubscriptionChange()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DShortcutsUpdater.java53 ShortcutManager mgr = mContext.getSystemService(ShortcutManager.class); in update() local
55 Map<String, ShortcutInfo> existing = getPinnedShortcuts(mgr); in update()
62 mgr.setDynamicShortcuts(devices.subList(0, getNumDynSlots(mgr, devices.size()))); in update()
73 mgr.enableShortcuts(deviceIds); in update()
74 mgr.disableShortcuts(disabled); in update()
111 private Map<String, ShortcutInfo> getPinnedShortcuts(ShortcutManager mgr) { in getPinnedShortcuts() argument
113 for (ShortcutInfo s : mgr.getDynamicShortcuts()) { in getPinnedShortcuts()
119 private int getNumDynSlots(ShortcutManager mgr, int numDevices) { in getNumDynSlots() argument
120 int slots = mgr.getMaxShortcutCountPerActivity() - mgr.getManifestShortcuts().size(); in getNumDynSlots()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBlockedNumbersUtilTests.java48 NotificationManager mgr = mComponentContextFixture.getNotificationManager(); in testPostNotification() local
49 verify(mgr).notifyAsUser(isNull(), anyInt(), any(Notification.class), in testPostNotification()
57 NotificationManager mgr = mComponentContextFixture.getNotificationManager(); in testDismissNotification() local
58 verify(mgr).cancelAsUser(isNull(), anyInt(), any(UserHandle.class)); in testDismissNotification()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DSignalStrengthListener.java96 TelephonyManager mgr = mBaseTelephonyManager.createForSubscriptionId(subId); in startListening() local
97 mgr.registerTelephonyCallback( in startListening()
102 TelephonyManager mgr = mBaseTelephonyManager.createForSubscriptionId(subId); in stopListening() local
103 mgr.unregisterTelephonyCallback(mTelephonyCallbacks.get(subId)); in stopListening()
DTelephonyDisplayInfoListener.java103 TelephonyManager mgr = mBaseTelephonyManager.createForSubscriptionId(subId); in startListening() local
104 mgr.listen(mListeners.get(subId), PhoneStateListener.LISTEN_DISPLAY_INFO_CHANGED); in startListening()
108 TelephonyManager mgr = mBaseTelephonyManager.createForSubscriptionId(subId); in stopListening() local
109 mgr.listen(mListeners.get(subId), PhoneStateListener.LISTEN_NONE); in stopListening()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessController.java101 final NotificationManager mgr = context.getSystemService(NotificationManager.class); in setAccess() local
102 mgr.setNotificationPolicyAccessGranted(pkg, access); in setAccess()
108 final NotificationManager mgr = context.getSystemService(NotificationManager.class); in deleteRules() local
109 mgr.removeAutomaticZenRules(pkg); in deleteRules()
/packages/services/Car/car-lib/src/android/car/occupantawareness/
DOccupantAwarenessManager.java295 OccupantAwarenessManager mgr = mOccupantAwarenessManager.get(); in handleMessage() local
296 if (mgr != null) { in handleMessage()
300 mgr.dispatchSystemStatusToClient((SystemStatusEvent) msg.obj); in handleMessage()
304 mgr.dispatchDetectionEventToClient((OccupantAwarenessDetection) msg.obj); in handleMessage()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertUtils.java70 final AlarmManager mgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in createAlarmManager() local
75 mgr.setExact(type, triggerAtMillis, operation); in createAlarmManager()
77 mgr.set(type, triggerAtMillis, operation); in createAlarmManager()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenModeScheduleRuleSettings.java94 final FragmentManager mgr = getFragmentManager(); in onCreateInternal() local
96 mStart = new TimePickerPreference(getPrefContext(), mgr); in onCreateInternal()
118 mEnd = new TimePickerPreference(getPrefContext(), mgr); in onCreateInternal()
257 public TimePickerPreference(Context context, final FragmentManager mgr) { in TimePickerPreference() argument
266 frag.show(mgr, TimePickerPreference.class.getName()); in TimePickerPreference()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDocsSelectionHelperTest.java99 TestSelectionManager mgr = new TestSelectionManager(); in resetSelectionHelper() local
100 mCreated.add(mgr); in resetSelectionHelper()
102 mSelectionMgr.reset(mgr); in resetSelectionHelper()
/packages/services/Car/experimental/experimental_api/src/android/car/experimental/
DCarDriverDistractionManager.java157 CarDriverDistractionManager mgr = mDistractionManager.get(); in handleMessage() local
158 if (mgr == null) { in handleMessage()
166 mgr.dispatchDistractionChangeToClient((DriverDistractionChangeEvent) msg.obj); in handleMessage()
/packages/services/Car/car-lib/src/android/car/
DCarProjectionManager.java859 private CarProjectionStatusListenerImpl(CarProjectionManager mgr) { in CarProjectionStatusListenerImpl() argument
860 mManagerRef = new WeakReference<>(mgr); in CarProjectionStatusListenerImpl()
867 CarProjectionManager mgr = mManagerRef.get(); in onProjectionStatusChanged() local
868 if (mgr != null) { in onProjectionStatusChanged()
869 mgr.getEventHandler().post(() -> { in onProjectionStatusChanged()
874 mgr.handleProjectionStatusChanged(projectionState, packageName, mDetails); in onProjectionStatusChanged()
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarDrivingStateManager.java226 CarDrivingStateManager mgr = mDrvStateMgr.get(); in handleMessage() local
227 if (mgr != null) { in handleMessage()
228 mgr.dispatchDrivingStateChangeToClient((CarDrivingStateEvent) msg.obj); in handleMessage()

123