Home
last modified time | relevance | path

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

123

/packages/modules/StatsD/statsd/tests/state/
DStateTracker_test.cpp61 int getStateInt(StateManager& mgr, int atomId, const HashableDimensionKey& queryKey) { in getStateInt() argument
63 mgr.getStateValue(atomId, queryKey, &output); in getStateInt()
111 StateManager& mgr = StateManager::getInstance(); in TEST() local
112 mgr.clear(); in TEST()
114 mgr.registerListener(util::SCREEN_STATE_CHANGED, listener1); in TEST()
115 EXPECT_EQ(1, mgr.getStateTrackersCount()); in TEST()
117 mgr.unregisterListener(util::SCREEN_STATE_CHANGED, listener1); in TEST()
123 StateManager mgr; in TEST() local
124 mgr.updateLogSources(uidMap); in TEST()
126 mgr.registerListener(util::SCREEN_STATE_CHANGED, listener1); in TEST()
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DDiscoverySession.java110 WifiAwareManager mgr = mMgr.get(); in close() local
111 if (mgr == null) { in close()
115 mgr.terminateSession(mClientId, mSessionId); in close()
223 WifiAwareManager mgr = mMgr.get(); in sendMessage() local
224 if (mgr == null) { in sendMessage()
229 mgr.sendMessage(mClientId, mSessionId, peerHandle, message, messageId, retryCount); in sendMessage()
294 WifiAwareManager mgr = mMgr.get(); in initiatePairingRequest() local
295 if (mgr == null) { in initiatePairingRequest()
299 mgr.initiateNanPairingSetupRequest(mClientId, mSessionId, peerHandle, password, in initiatePairingRequest()
334 WifiAwareManager mgr = mMgr.get(); in acceptPairingRequest() local
[all …]
DWifiAwareSession.java85 WifiAwareManager mgr = mMgr.get(); in close() local
86 if (mgr == null) { in close()
90 mgr.disconnect(mClientId, mBinder); in close()
174 WifiAwareManager mgr = mMgr.get(); in publish() local
175 if (mgr == null) { in publish()
183 mgr.publish(mClientId, (handler == null) ? Looper.getMainLooper() : handler.getLooper(), in publish()
234 WifiAwareManager mgr = mMgr.get(); in subscribe() local
235 if (mgr == null) { in subscribe()
243 mgr.subscribe(mClientId, (handler == null) ? Looper.getMainLooper() : handler.getLooper(), in subscribe()
258 WifiAwareManager mgr = mMgr.get(); in setMasterPreference() local
[all …]
DWifiAwareManager.java930 WifiAwareEventCallbackProxy(WifiAwareManager mgr, Executor executor, Binder binder, in WifiAwareEventCallbackProxy() argument
933 mAwareManager = new WeakReference<>(mgr); in WifiAwareEventCallbackProxy()
945 WifiAwareManager mgr = mAwareManager.get(); in onConnectSuccess() local
946 if (mgr == null) { in onConnectSuccess()
950 mAttachCallback.onAttached(new WifiAwareSession(mgr, mBinder, clientId)); in onConnectSuccess()
959 WifiAwareManager mgr = mAwareManager.get(); in onConnectFail() local
960 if (mgr == null) { in onConnectFail()
974 WifiAwareManager mgr = mAwareManager.get(); in onIdentityChanged() local
975 if (mgr == null) { in onIdentityChanged()
992 WifiAwareManager mgr = mAwareManager.get(); in onAttachTerminate() local
[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/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/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/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/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/apps/Settings/src/com/android/settings/
DResetSubscriptionContract.java79 SubscriptionManager mgr = getSubscriptionManager(); in getAnyMissingSubscriptionId() local
80 if (mgr == null) { in getAnyMissingSubscriptionId()
86 if (mgr.getActiveSubscriptionInfo(subId) == null) { in getAnyMissingSubscriptionId()
132 SubscriptionManager mgr = getSubscriptionManager();
133 if (mgr == null) {
139 mgr.addOnSubscriptionsChangedListener(
149 SubscriptionManager mgr = getSubscriptionManager();
150 if (mgr != null) {
151 mgr.removeOnSubscriptionsChangedListener(mSubscriptionsChangedListener);
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiTwtSession.java70 WifiManager mgr = mMgr.get(); in getStats() local
71 if (mgr == null) { in getStats()
78 mgr.getStatsTwtSession(mSessionId, executor, resultCallback); in getStats()
95 WifiManager mgr = mMgr.get(); in teardown() local
96 if (mgr == null) { in teardown()
100 mgr.teardownTwtSession(mSessionId); in teardown()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsRecyclerView.java156 StatsLogManager mgr = ActivityContext.lookupContext(getContext()).getStatsLogManager(); in onScrollStateChanged() local
161 mgr.logger().sendToInteractionJankMonitor( in onScrollStateChanged()
166 mgr.logger().sendToInteractionJankMonitor( in onScrollStateChanged()
324 StatsLogManager mgr = context.getStatsLogManager(); in logCumulativeVerticalScroll() local
334 mgr.logger().withContainerInfo(containerInfo).log( in logCumulativeVerticalScroll()
339 mgr.logger().withContainerInfo(containerInfo).log((mCumulativeVerticalScroll > 0) in logCumulativeVerticalScroll()
347 mgr.logger().withContainerInfo(containerInfo).log((mCumulativeVerticalScroll > 0) in logCumulativeVerticalScroll()
354 mgr.logger().withContainerInfo(containerInfo).log((mCumulativeVerticalScroll > 0) in logCumulativeVerticalScroll()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessController.java99 final NotificationManager mgr = context.getSystemService(NotificationManager.class); in setAccess() local
100 mgr.setNotificationPolicyAccessGranted(pkg, access); in setAccess()
104 final NotificationManager mgr = context.getSystemService(NotificationManager.class); in deleteRules() local
106 mgr.removeAutomaticZenRules(pkg, /* fromUser= */ true); in deleteRules()
108 mgr.removeAutomaticZenRules(pkg); in deleteRules()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBlockedNumbersUtilTests.java53 NotificationManager mgr = mComponentContextFixture.getNotificationManager(); in testPostNotification() local
54 verify(mgr).notifyAsUser(isNull(), anyInt(), any(Notification.class), in testPostNotification()
62 NotificationManager mgr = mComponentContextFixture.getNotificationManager(); in testDismissNotification() local
63 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.java107 TelephonyManager mgr = mBaseTelephonyManager.createForSubscriptionId(subId); in startListening() local
108 mgr.listen(mListeners.get(subId), PhoneStateListener.LISTEN_DISPLAY_INFO_CHANGED); in startListening()
112 TelephonyManager mgr = mBaseTelephonyManager.createForSubscriptionId(subId); in stopListening() local
113 mgr.listen(mListeners.get(subId), PhoneStateListener.LISTEN_NONE); in stopListening()
/packages/modules/Connectivity/service/src/com/android/metrics/
DConnectivitySampleMetricsHelper.java58 final StatsManager mgr = context.getSystemService(StatsManager.class); in start() local
59 if (null == mgr) return; // No metrics for you in start()
60 mgr.setPullAtomCallback(atomTag, null /* metadata */, in start()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertUtils.kt52 val mgr: AlarmManager = context.getSystemService(Context.ALARM_SERVICE) as AlarmManager in createAlarmManager() constant
56 mgr.setExact(type, triggerAtMillis, operation!!) in createAlarmManager()
58 mgr.set(type, triggerAtMillis, operation!!) in createAlarmManager()
/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/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/base/
DCSAgentWrapper.kt140 val mgr = context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager in ArgumentCaptor() constant
149 mgr.registerNetworkCallback(request, cb) in ArgumentCaptor()
165 mgr.unregisterNetworkCallback(cb) in ArgumentCaptor()
169 val mgr = context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager in ArgumentCaptor() constant
178 mgr.registerNetworkCallback(request, cb) in ArgumentCaptor()
/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/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()

123