/packages/modules/StatsD/statsd/tests/state/ |
D | StateTracker_test.cpp | 60 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/ |
D | MenuManagerTest.java | 119 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/ |
D | E2ePerformanceTest.java | 87 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/ |
D | MenuManagerTest.java | 115 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/ |
D | jpeg_hook.cpp | 26 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 …]
|
D | jerr_hook.cpp | 26 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()
|
D | jpeg_hook.h | 36 struct jpeg_destination_mgr mgr; member 58 struct jpeg_source_mgr mgr; member
|
/packages/modules/Wifi/framework/java/android/net/wifi/aware/ |
D | WifiAwareSession.java | 74 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 …]
|
D | DiscoverySession.java | 102 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 …]
|
D | WifiAwareManager.java | 613 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 …]
|
D | SubscribeDiscoverySession.java | 64 WifiAwareManager mgr = mMgr.get(); in updateSubscribe() local 65 if (mgr == null) { in updateSubscribe() 70 mgr.updateSubscribe(mClientId, mSessionId, subscribeConfig); in updateSubscribe()
|
D | PublishDiscoverySession.java | 59 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/ |
D | ResetNetworkConfirm.java | 182 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/ |
D | ShortcutsUpdater.java | 53 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/ |
D | BlockedNumbersUtilTests.java | 48 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/ |
D | SignalStrengthListener.java | 96 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()
|
D | TelephonyDisplayInfoListener.java | 103 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/ |
D | ZenAccessController.java | 101 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/ |
D | OccupantAwarenessManager.java | 295 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/ |
D | AlertUtils.java | 70 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/ |
D | ZenModeScheduleRuleSettings.java | 94 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/ |
D | DocsSelectionHelperTest.java | 99 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/ |
D | CarDriverDistractionManager.java | 157 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/ |
D | CarProjectionManager.java | 859 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/ |
D | CarDrivingStateManager.java | 226 CarDrivingStateManager mgr = mDrvStateMgr.get(); in handleMessage() local 227 if (mgr != null) { in handleMessage() 228 mgr.dispatchDrivingStateChangeToClient((CarDrivingStateEvent) msg.obj); in handleMessage()
|