Home
last modified time | relevance | path

Searched refs:manager (Results 1 – 25 of 259) sorted by relevance

1234567891011

/packages/services/Car/car-lib/src/android/car/
DCar.java826 CarManagerBase manager; in getCarManager() local
829 manager = mServiceMap.get(serviceName); in getCarManager()
830 if (manager == null) { in getCarManager()
838 manager = createCarManager(serviceName, binder); in getCarManager()
839 if (manager == null) { in getCarManager()
845 mServiceMap.put(serviceName, manager); in getCarManager()
851 return manager; in getCarManager()
865 CarManagerBase manager = null; in createCarManager() local
868 manager = new CarAudioManager(binder, mContext, mEventHandler); in createCarManager()
871 manager = new CarSensorManager(binder, mContext, mEventHandler); in createCarManager()
[all …]
DCarAppFocusManager.java333 private IAppFocusListenerImpl(CarAppFocusManager manager, in IAppFocusListenerImpl() argument
335 mManager = new WeakReference<>(manager); in IAppFocusListenerImpl()
357 final CarAppFocusManager manager = mManager.get(); in onAppFocusChanged() local
359 if (manager == null || listener == null) { in onAppFocusChanged()
362 manager.mHandler.post(new Runnable() { in onAppFocusChanged()
377 private IAppFocusOwnershipCallbackImpl(CarAppFocusManager manager, in IAppFocusOwnershipCallbackImpl() argument
379 mManager = new WeakReference<>(manager); in IAppFocusOwnershipCallbackImpl()
401 final CarAppFocusManager manager = mManager.get(); in onAppFocusOwnershipLost() local
403 if (manager == null || callback == null) { in onAppFocusOwnershipLost()
406 manager.mHandler.post(new Runnable() { in onAppFocusOwnershipLost()
[all …]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastConfigService.java84 SmsManager manager = SmsManager.getSmsManagerForSubscriptionId(id); in onHandleIntent() local
85 if (manager != null) { in onHandleIntent()
89 setCellBroadcastOnSub(manager, true); in onHandleIntent()
96 setCellBroadcastOnSub(manager, false); in onHandleIntent()
103 SmsManager manager = SmsManager.getDefault(); in onHandleIntent() local
104 if (manager != null) { in onHandleIntent()
105 setCellBroadcastOnSub(manager, true); in onHandleIntent()
123 public void setCellBroadcastOnSub(SmsManager manager, boolean enableForSub) { in setCellBroadcastOnSub() argument
185 setCellBroadcastRange(manager, enablePresidential, in setCellBroadcastOnSub()
190 setCellBroadcastRange(manager, enableCmasExtremeAlerts, in setCellBroadcastOnSub()
[all …]
/packages/services/Telephony/tests/src/com/android/phone/
DNumberVerificationManagerTest.java77 NumberVerificationManager manager = in testConcurrentRequestFailure() local
79 manager.requestVerification(SAMPLE_RANGE, mCallback, DEFAULT_VERIFICATION_TIMEOUT); in testConcurrentRequestFailure()
80 manager.requestVerification(SAMPLE_RANGE, mCallback, DEFAULT_VERIFICATION_TIMEOUT); in testConcurrentRequestFailure()
87 NumberVerificationManager manager = in testEcbmFailure() local
91 manager.requestVerification(SAMPLE_RANGE, mCallback, DEFAULT_VERIFICATION_TIMEOUT); in testEcbmFailure()
98 NumberVerificationManager manager = in testEmergencyCallFailure() local
102 manager.requestVerification(SAMPLE_RANGE, mCallback, DEFAULT_VERIFICATION_TIMEOUT); in testEmergencyCallFailure()
113 NumberVerificationManager manager = in testNoPhoneInServiceFailure() local
116 manager.requestVerification(SAMPLE_RANGE, mCallback, DEFAULT_VERIFICATION_TIMEOUT); in testNoPhoneInServiceFailure()
123 NumberVerificationManager manager = in testAllLinesFullFailure() local
[all …]
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarAppFocusManagerTest.java94 CarAppFocusManager manager = createManager(); in testRegisterUnregisterSpecificApp() local
95 manager.addFocusListener(listener1, APP_FOCUS_TYPE_NAVIGATION); in testRegisterUnregisterSpecificApp()
96 manager.addFocusListener(listener2, APP_FOCUS_TYPE_NAVIGATION); in testRegisterUnregisterSpecificApp()
98 manager.removeFocusListener(listener1, APP_FOCUS_TYPE_NAVIGATION); in testRegisterUnregisterSpecificApp()
101 manager.requestAppFocus(APP_FOCUS_TYPE_NAVIGATION, new FocusOwnershipCallback())); in testRegisterUnregisterSpecificApp()
109 manager.removeFocusListener(listener2, APP_FOCUS_TYPE_NAVIGATION); in testRegisterUnregisterSpecificApp()
111 manager.requestAppFocus(APP_FOCUS_TYPE_NAVIGATION, new FocusOwnershipCallback())); in testRegisterUnregisterSpecificApp()
115 manager.removeFocusListener(listener2, 2); in testRegisterUnregisterSpecificApp()
116 manager.removeFocusListener(listener2, 2); // Double-unregister is OK in testRegisterUnregisterSpecificApp()
254 CarAppFocusManager manager = (CarAppFocusManager) car.getCarManager(Car.APP_FOCUS_SERVICE); in createManager() local
[all …]
/packages/apps/TV/tests/unit/src/com/android/tv/util/
DTvInputManagerHelperTest.java88 TvInputManagerHelper manager = createMockTvInputManager(); in testComparatorInternal() local
92 new TvInputManagerHelper.InputComparatorInternal(manager)); in testComparatorInternal()
144 TvInputManagerHelper manager = createMockTvInputManager(); in testHardwareInputComparatorHdmi() local
148 new TvInputManagerHelper.HardwareInputComparator(getContext(), manager)); in testHardwareInputComparatorHdmi()
203 TvInputManagerHelper manager = createMockTvInputManager(); in testHardwareInputComparatorCec() local
207 new TvInputManagerHelper.HardwareInputComparator(getContext(), manager)); in testHardwareInputComparatorCec()
212 TvInputManagerHelper manager = Mockito.mock(TvInputManagerHelper.class); in createMockTvInputManager() local
221 .when(manager) in createMockTvInputManager()
231 .when(manager) in createMockTvInputManager()
241 .when(manager) in createMockTvInputManager()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DTimePickerDialogFragment.java96 final FragmentManager manager = parentFragment.getChildFragmentManager();
97 if (manager == null || manager.isDestroyed()) {
102 removeTimeEditDialog(manager);
115 fragment.show(manager, TAG);
118 public static void removeTimeEditDialog(FragmentManager manager) {
119 if (manager != null) {
120 final Fragment prev = manager.findFragmentByTag(TAG);
122 manager.beginTransaction().remove(prev).commit();
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DConfigureWifiSettingsTest.java60 ConnectivityManager manager = mock(ConnectivityManager.class); in testNonIndexableKeys_noConnection_blocksIP() local
61 when(manager.getActiveNetworkInfo()).thenReturn(null); in testNonIndexableKeys_noConnection_blocksIP()
62 doReturn(manager).when(mContext).getSystemService(Context.CONNECTIVITY_SERVICE); in testNonIndexableKeys_noConnection_blocksIP()
71 ConnectivityManager manager = mock(ConnectivityManager.class); in testNonIndexableKeys_wifiConnection_blocksIP() local
74 when(manager.getActiveNetworkInfo()).thenReturn(info); in testNonIndexableKeys_wifiConnection_blocksIP()
75 doReturn(manager).when(mContext).getSystemService(Context.CONNECTIVITY_SERVICE); in testNonIndexableKeys_wifiConnection_blocksIP()
84 ConnectivityManager manager = mock(ConnectivityManager.class); in testNonIndexableKeys_mobileConnection_blocksIP() local
87 when(manager.getActiveNetworkInfo()).thenReturn(info); in testNonIndexableKeys_mobileConnection_blocksIP()
88 doReturn(manager).when(mContext).getSystemService(Context.CONNECTIVITY_SERVICE); in testNonIndexableKeys_mobileConnection_blocksIP()
/packages/apps/Settings/src/com/android/settings/display/
DNightDisplayTimeFormatter.java48 public String getAutoModeTimeSummary(Context context, ColorDisplayManager manager) { in getAutoModeTimeSummary() argument
50 manager.isNightDisplayActivated() ? R.string.night_display_summary_on in getAutoModeTimeSummary()
52 return context.getString(summaryFormatResId, getAutoModeSummary(context, manager)); in getAutoModeTimeSummary()
55 public String getAutoModeSummary(Context context, ColorDisplayManager manager) { in getAutoModeSummary() argument
56 final boolean isActivated = manager.isNightDisplayActivated(); in getAutoModeSummary()
57 final int autoMode = manager.getNightDisplayAutoMode(); in getAutoModeSummary()
61 getFormattedTimeString(manager.getNightDisplayCustomEndTime())); in getAutoModeSummary()
64 getFormattedTimeString(manager.getNightDisplayCustomStartTime())); in getAutoModeSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DNightDisplayTimeFormatter.java48 public String getAutoModeTimeSummary(Context context, ColorDisplayManager manager) { in getAutoModeTimeSummary() argument
50 manager.isNightDisplayActivated() ? R.string.night_display_summary_on in getAutoModeTimeSummary()
52 return context.getString(summaryFormatResId, getAutoModeSummary(context, manager)); in getAutoModeTimeSummary()
55 private String getAutoModeSummary(Context context, ColorDisplayManager manager) { in getAutoModeSummary() argument
56 final boolean isActivated = manager.isNightDisplayActivated(); in getAutoModeSummary()
57 final int autoMode = manager.getNightDisplayAutoMode(); in getAutoModeSummary()
61 getFormattedTimeString(manager.getNightDisplayCustomEndTime())); in getAutoModeSummary()
64 getFormattedTimeString(manager.getNightDisplayCustomStartTime())); in getAutoModeSummary()
/packages/apps/TV/src/com/android/tv/util/
DSetupUtils.java99 final ChannelDataManager manager = in onTvInputSetupFinished() local
101 if (!manager.isDbLoadFinished()) { in onTvInputSetupFinished()
102 manager.addListener( in onTvInputSetupFinished()
106 manager.removeListener(this); in onTvInputSetupFinished()
124 final ChannelDataManager manager = tvSingletons.getChannelDataManager(); in updateChannelsAfterSetup() local
125 manager.updateChannels( in updateChannelsAfterSetup()
129 for (Channel channel : manager.getChannelList()) { in updateChannelsAfterSetup()
132 manager.updateBrowsable(channel.getId(), true, true); in updateChannelsAfterSetup()
144 manager.notifyChannelBrowsableChanged(); in updateChannelsAfterSetup()
145 manager.applyUpdatedValuesToDb(); in updateChannelsAfterSetup()
[all …]
/packages/apps/Camera2/src/com/android/camera/settings/
DSettingObserver.java59 private SettingObserver(SettingsManager manager, String scope, String key, Class<T> tClass) { in SettingObserver() argument
60 mSettingsManager = manager; in SettingObserver()
66 public static SettingObserver<Integer> ofInteger(SettingsManager manager, in ofInteger() argument
68 return new SettingObserver<>(manager, scope, key, in ofInteger()
72 public static SettingObserver<String> ofString(SettingsManager manager, in ofString() argument
74 return new SettingObserver<>(manager, scope, key, in ofString()
78 public static SettingObserver<Boolean> ofBoolean(SettingsManager manager, in ofBoolean() argument
80 return new SettingObserver<>(manager, scope, key, in ofBoolean()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DContextualCardManagerTest.java225 final ContextualCardManager manager = spy(mManager); in onFinishCardLoading_fastLoad_shouldCallOnContextualCardUpdated() local
226 doNothing().when(manager).onContextualCardUpdated(anyMap()); in onFinishCardLoading_fastLoad_shouldCallOnContextualCardUpdated()
228 manager.onFinishCardLoading(new ArrayList<>()); in onFinishCardLoading_fastLoad_shouldCallOnContextualCardUpdated()
230 verify(manager).onContextualCardUpdated(nullable(Map.class)); in onFinishCardLoading_fastLoad_shouldCallOnContextualCardUpdated()
236 final ContextualCardManager manager = spy(mManager); in onFinishCardLoading_slowLoad_shouldSkipOnContextualCardUpdated() local
237 doNothing().when(manager).onContextualCardUpdated(anyMap()); in onFinishCardLoading_slowLoad_shouldSkipOnContextualCardUpdated()
239 manager.onFinishCardLoading(new ArrayList<>()); in onFinishCardLoading_slowLoad_shouldSkipOnContextualCardUpdated()
241 verify(manager, never()).onContextualCardUpdated(anyMap()); in onFinishCardLoading_slowLoad_shouldSkipOnContextualCardUpdated()
321 final ContextualCardManager manager = spy(mManager); in onWindowFocusChanged_hasFocusAndNoConditional_startMonitoringConditionCard() local
323 doReturn(pool).when(manager).getControllerRendererPool(); in onWindowFocusChanged_hasFocusAndNoConditional_startMonitoringConditionCard()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/
DCarVendorExtensionManager.java214 CarPropertyEventListenerToBase(CarVendorExtensionManager manager) { in CarPropertyEventListenerToBase() argument
215 mManager = new WeakReference<>(manager); in CarPropertyEventListenerToBase()
220 CarVendorExtensionManager manager = mManager.get(); in onChangeEvent() local
221 if (manager != null) { in onChangeEvent()
222 manager.handleOnChangeEvent(value); in onChangeEvent()
228 CarVendorExtensionManager manager = mManager.get(); in onErrorEvent() local
229 if (manager != null) { in onErrorEvent()
230 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent()
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DChannelImplTest.java255 TvInputManagerHelper manager = Mockito.mock(TvInputManagerHelper.class); in testComparator() local
256 Mockito.when(manager.isPartnerInput(Matchers.anyString())) in testComparator()
265 Comparator<Channel> comparator = new TestChannelComparator(manager); in testComparator()
308 TvInputManagerHelper manager = Mockito.mock(TvInputManagerHelper.class); in testComparatorLabel() local
309 Mockito.when(manager.isPartnerInput(Matchers.anyString())) in testComparatorLabel()
318 Comparator<Channel> comparator = new ChannelComparatorWithDescriptionAsLabel(manager); in testComparatorLabel()
360 public TestChannelComparator(TvInputManagerHelper manager) { in TestChannelComparator() argument
361 super(null, manager); in TestChannelComparator()
372 public ChannelComparatorWithDescriptionAsLabel(TvInputManagerHelper manager) { in ChannelComparatorWithDescriptionAsLabel() argument
373 super(null, manager); in ChannelComparatorWithDescriptionAsLabel()
/packages/services/Car/car-lib/src/android/car/hardware/hvac/
DCarHvacManager.java254 public CarPropertyEventListenerToBase(CarHvacManager manager) { in CarPropertyEventListenerToBase() argument
255 mManager = new WeakReference<>(manager); in CarPropertyEventListenerToBase()
260 CarHvacManager manager = mManager.get(); in onChangeEvent() local
261 if (manager != null) { in onChangeEvent()
262 manager.handleOnChangeEvent(value); in onChangeEvent()
268 CarHvacManager manager = mManager.get(); in onErrorEvent() local
269 if (manager != null) { in onErrorEvent()
270 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent()
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarDrivingStateManager.java187 public CarDrivingStateChangeListenerToService(CarDrivingStateManager manager) { in CarDrivingStateChangeListenerToService() argument
188 mDrvStateMgr = new WeakReference<>(manager); in CarDrivingStateChangeListenerToService()
193 CarDrivingStateManager manager = mDrvStateMgr.get(); in onDrivingStateChanged() local
194 if (manager != null) { in onDrivingStateChanged()
195 manager.handleDrivingStateChanged(event); in onDrivingStateChanged()
221 public EventCallbackHandler(CarDrivingStateManager manager, Looper looper) { in EventCallbackHandler() argument
223 mDrvStateMgr = new WeakReference<>(manager); in EventCallbackHandler()
DCarUxRestrictionsManager.java333 public CarUxRestrictionsChangeListenerToService(CarUxRestrictionsManager manager) { in CarUxRestrictionsChangeListenerToService() argument
334 mUxRestrictionsManager = new WeakReference<>(manager); in CarUxRestrictionsChangeListenerToService()
339 CarUxRestrictionsManager manager = mUxRestrictionsManager.get(); in onUxRestrictionsChanged() local
340 if (manager != null) { in onUxRestrictionsChanged()
341 manager.handleUxRestrictionsChanged(restrictionInfo); in onUxRestrictionsChanged()
366 public EventCallbackHandler(CarUxRestrictionsManager manager, Looper looper) { in EventCallbackHandler() argument
368 mUxRestrictionsManager = new WeakReference<>(manager); in EventCallbackHandler()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DUpdateHandler.java242 final DownloadManagerWrapper manager = new DownloadManagerWrapper(context); in updateClientsWithMetadataUri() local
243 if (maybeCancelUpdateAndReturnIfStillRunning(context, metadataUri, manager, in updateClientsWithMetadataUri()
250 downloadId = manager.enqueue(metadataRequest); in updateClientsWithMetadataUri()
275 final String metadataUri, final DownloadManagerWrapper manager, final long graceTime) { in maybeCancelUpdateAndReturnIfStillRunning() argument
285 manager.remove(metadataDownloadIdAndStartDate.mId); in maybeCancelUpdateAndReturnIfStillRunning()
306 final DownloadManagerWrapper manager = new DownloadManagerWrapper(context); in cancelUpdate() local
308 maybeCancelUpdateAndReturnIfStillRunning(context, metadataUri, manager, 0 /* graceTime */); in cancelUpdate()
329 public static long registerDownloadRequest(final DownloadManagerWrapper manager, in registerDownloadRequest() argument
334 downloadId = manager.enqueue(request); in registerDownloadRequest()
345 final DownloadManagerWrapper manager, final long downloadId) { in getCompletedDownloadInfo() argument
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/cabin/
DCarCabinManager.java421 public CarPropertyEventListenerToBase(CarCabinManager manager) { in CarPropertyEventListenerToBase() argument
422 mManager = new WeakReference<>(manager); in CarPropertyEventListenerToBase()
427 CarCabinManager manager = mManager.get(); in onChangeEvent() local
428 if (manager != null) { in onChangeEvent()
429 manager.handleOnChangeEvent(value); in onChangeEvent()
435 CarCabinManager manager = mManager.get(); in onErrorEvent() local
436 if (manager != null) { in onErrorEvent()
437 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothUtils.java68 LocalBluetoothManager manager) { in showError() argument
70 Context activity = manager.getForegroundActivity(); in showError()
71 if (manager.isForegroundActivity()) { in showError()
94 LocalBluetoothManager manager = getLocalBtManager(context); in shouldShowDialogInForeground() local
95 if (manager == null) { in shouldShowDialogInForeground()
101 if (manager.isForegroundActivity()) { in shouldShowDialogInForeground()
124 LocalBluetoothAdapter adapter = manager.getBluetoothAdapter(); in shouldShowDialogInForeground()
/packages/apps/TV/src/com/android/tv/parental/
DContentRatingLevelPolicy.java36 ContentRatingsManager manager, in getRatingsForLevel() argument
41 return getRatingsForAge(settings, manager, AGE_THRESHOLD_FOR_LEVEL_HIGH); in getRatingsForLevel()
43 return getRatingsForAge(settings, manager, AGE_THRESHOLD_FOR_LEVEL_MEDIUM); in getRatingsForLevel()
45 return getRatingsForAge(settings, manager, AGE_THRESHOLD_FOR_LEVEL_LOW); in getRatingsForLevel()
51 ParentalControlSettings settings, ContentRatingsManager manager, int age) { in getRatingsForAge() argument
54 for (ContentRatingSystem contentRatingSystem : manager.getContentRatingSystems()) { in getRatingsForAge()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DMenuExecutor.java221 DataManager manager = mActivity.getDataManager(); in getIntentBySingleSelectedPath() local
223 String mimeType = getMimeType(manager.getMediaType(path)); in getIntentBySingleSelectedPath()
224 return new Intent(action).setDataAndType(manager.getContentUri(path), mimeType); in getIntentBySingleSelectedPath()
370 DataManager manager, JobContext jc, int cmd, Path path) { in execute() argument
377 manager.delete(path); in execute()
380 manager.rotate(path, 90); in execute()
383 manager.rotate(path, -90); in execute()
386 MediaObject obj = manager.getMediaObject(path); in execute()
397 MediaItem item = (MediaItem) manager.getMediaObject(path); in execute()
428 DataManager manager = mActivity.getDataManager(); in run() local
[all …]
/packages/services/Car/car-lib/src/android/car/diagnostic/
DCarDiagnosticManager.java347 public CarDiagnosticEventListenerToService(CarDiagnosticManager manager) { in CarDiagnosticEventListenerToService() argument
348 mManager = new WeakReference<>(manager); in CarDiagnosticEventListenerToService()
351 private void handleOnDiagnosticEvents(CarDiagnosticManager manager, in handleOnDiagnosticEvents() argument
353 manager.mHandlerCallback.sendEvents(events); in handleOnDiagnosticEvents()
358 CarDiagnosticManager manager = mManager.get(); in onDiagnosticEvents() local
359 if (manager != null) { in onDiagnosticEvents()
360 handleOnDiagnosticEvents(manager, events); in onDiagnosticEvents()
/packages/apps/Camera2/src/com/android/camera/one/
DOneCameraModule.java48 Optional<OneCameraOpener> manager = Camera2OneCameraOpenerImpl.create( in provideOneCameraOpener() local
50 if (!manager.isPresent()) { in provideOneCameraOpener()
51 manager = LegacyOneCameraOpenerImpl.create(); in provideOneCameraOpener()
53 if (!manager.isPresent()) { in provideOneCameraOpener()
56 return manager.get(); in provideOneCameraOpener()

1234567891011