/packages/services/Telephony/src/com/android/services/telephony/rcs/ |
D | RcsFeatureController.java | 58 void onRcsConnected(RcsFeatureManager manager); in onRcsConnected() argument 123 public void connectionReady(RcsFeatureManager manager) 125 if (manager == null) { 132 updateConnectionStatus(manager); 133 setupConnectionToService(manager); 208 RcsFeatureManager manager = getFeatureManager(); in addFeature() local 209 if (manager != null) { in addFeature() 210 connector.onRcsConnected(manager); in addFeature() 249 RcsFeatureManager manager = getFeatureManager(); in updateAssociatedSubscription() local 250 if (manager != null) { in updateAssociatedSubscription() [all …]
|
/packages/services/Telephony/tests/src/com/android/phone/ |
D | NumberVerificationManagerTest.java | 77 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/car-lib/src/android/car/ |
D | Car.java | 1173 CarManagerBase manager; in getCarManager() local 1179 manager = mServiceMap.get(serviceName); in getCarManager() 1180 if (manager == null) { in getCarManager() 1188 manager = createCarManager(serviceName, binder); in getCarManager() 1189 if (manager == null) { in getCarManager() 1194 mServiceMap.put(serviceName, manager); in getCarManager() 1200 return manager; in getCarManager() 1294 CarManagerBase manager = null; in createCarManager() local 1297 manager = new CarAudioManager(this, binder); in createCarManager() 1300 manager = new CarSensorManager(this, binder); in createCarManager() [all …]
|
D | CarAppFocusManager.java | 333 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.getEventHandler().post(() -> { in onAppFocusChanged() 374 private IAppFocusOwnershipCallbackImpl(CarAppFocusManager manager, in IAppFocusOwnershipCallbackImpl() argument 376 mManager = new WeakReference<>(manager); in IAppFocusOwnershipCallbackImpl() 398 final CarAppFocusManager manager = mManager.get(); in onAppFocusOwnershipLost() local 400 if (manager == null || callback == null) { in onAppFocusOwnershipLost() 403 manager.getEventHandler().post(() -> { in onAppFocusOwnershipLost() [all …]
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarAppFocusManagerTest.java | 94 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/ |
D | TvInputManagerHelperTest.java | 93 TvInputManagerHelper manager = createMockTvInputManager(); in testComparatorInternal() local 96 new ComparatorTester(new TvInputManagerHelper.InputComparatorInternal(manager)) in testComparatorInternal() 149 TvInputManagerHelper manager = createMockTvInputManager(); in testHardwareInputComparatorHdmi() local 154 getContext(), manager)) in testHardwareInputComparatorHdmi() 210 TvInputManagerHelper manager = createMockTvInputManager(); in testHardwareInputComparatorCec() local 215 getContext(), manager)) in testHardwareInputComparatorCec() 221 TvInputManagerHelper manager = Mockito.mock(TvInputManagerHelper.class); in createMockTvInputManager() local 230 .when(manager) in createMockTvInputManager() 240 .when(manager) in createMockTvInputManager() 250 .when(manager) in createMockTvInputManager() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | TimePickerDialogFragment.kt | 104 val manager: FragmentManager = parentFragment.getChildFragmentManager() in <lambda>() constant 105 if (manager == null || manager.isDestroyed()) { in <lambda>() 110 removeTimeEditDialog(manager) in <lambda>() 123 fragment.show(manager, TAG) in <lambda>() 127 fun removeTimeEditDialog(manager: FragmentManager?) { in <lambda>() 128 manager?.let { manager -> in <lambda>() method 129 val prev: Fragment? = manager.findFragmentByTag(TAG) in <lambda>() 131 manager.beginTransaction().remove(it).commit() in <lambda>()
|
D | TimePickerDialogFragment.java | 96 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/ |
D | ConfigureWifiSettingsTest.java | 60 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/ |
D | NightDisplayTimeFormatter.java | 48 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/ |
D | NightDisplayTimeFormatter.java | 48 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/ |
D | SetupUtils.java | 99 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/ |
D | SettingObserver.java | 59 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/ |
D | ContextualCardManagerTest.java | 225 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/ |
D | CarVendorExtensionManager.java | 217 CarPropertyEventListenerToBase(CarVendorExtensionManager manager) { in CarPropertyEventListenerToBase() argument 218 mManager = new WeakReference<>(manager); in CarPropertyEventListenerToBase() 223 CarVendorExtensionManager manager = mManager.get(); in onChangeEvent() local 224 if (manager != null) { in onChangeEvent() 225 manager.handleOnChangeEvent(value); in onChangeEvent() 231 CarVendorExtensionManager manager = mManager.get(); in onErrorEvent() local 232 if (manager != null) { in onErrorEvent() 233 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent()
|
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
D | ChannelImplTest.java | 259 TvInputManagerHelper manager = Mockito.mock(TvInputManagerHelper.class); in testComparator() local 260 Mockito.when(manager.isPartnerInput(ArgumentMatchers.anyString())) in testComparator() 269 Comparator<Channel> comparator = new TestChannelComparator(manager); in testComparator() 313 TvInputManagerHelper manager = Mockito.mock(TvInputManagerHelper.class); in testComparatorLabel() local 314 Mockito.when(manager.isPartnerInput(ArgumentMatchers.anyString())) in testComparatorLabel() 323 Comparator<Channel> comparator = new ChannelComparatorWithDescriptionAsLabel(manager); in testComparatorLabel() 366 public TestChannelComparator(TvInputManagerHelper manager) { in TestChannelComparator() argument 367 super(null, manager); in TestChannelComparator() 378 public ChannelComparatorWithDescriptionAsLabel(TvInputManagerHelper manager) { in ChannelComparatorWithDescriptionAsLabel() argument 379 super(null, manager); in ChannelComparatorWithDescriptionAsLabel()
|
/packages/services/Car/car-lib/src/android/car/drivingstate/ |
D | CarDrivingStateManager.java | 185 public CarDrivingStateChangeListenerToService(CarDrivingStateManager manager) { in CarDrivingStateChangeListenerToService() argument 186 mDrvStateMgr = new WeakReference<>(manager); in CarDrivingStateChangeListenerToService() 191 CarDrivingStateManager manager = mDrvStateMgr.get(); in onDrivingStateChanged() local 192 if (manager != null) { in onDrivingStateChanged() 193 manager.handleDrivingStateChanged(event); in onDrivingStateChanged() 219 public EventCallbackHandler(CarDrivingStateManager manager, Looper looper) { in EventCallbackHandler() argument 221 mDrvStateMgr = new WeakReference<>(manager); in EventCallbackHandler()
|
D | CarUxRestrictionsManager.java | 305 public CarUxRestrictionsChangeListenerToService(CarUxRestrictionsManager manager) { in CarUxRestrictionsChangeListenerToService() argument 306 mUxRestrictionsManager = new WeakReference<>(manager); in CarUxRestrictionsChangeListenerToService() 311 CarUxRestrictionsManager manager = mUxRestrictionsManager.get(); in onUxRestrictionsChanged() local 312 if (manager != null) { in onUxRestrictionsChanged() 313 manager.handleUxRestrictionsChanged(restrictionInfo); in onUxRestrictionsChanged() 338 public EventCallbackHandler(CarUxRestrictionsManager manager, Looper looper) { in EventCallbackHandler() argument 340 mUxRestrictionsManager = new WeakReference<>(manager); in EventCallbackHandler()
|
/packages/services/Car/car-lib/src/android/car/hardware/hvac/ |
D | CarHvacManager.java | 252 public CarPropertyEventListenerToBase(CarHvacManager manager) { in CarPropertyEventListenerToBase() argument 253 mManager = new WeakReference<>(manager); in CarPropertyEventListenerToBase() 258 CarHvacManager manager = mManager.get(); in onChangeEvent() local 259 if (manager != null) { in onChangeEvent() 260 manager.handleOnChangeEvent(value); in onChangeEvent() 266 CarHvacManager manager = mManager.get(); in onErrorEvent() local 267 if (manager != null) { in onErrorEvent() 268 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | UpdateHandler.java | 242 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/ |
D | CarCabinManager.java | 419 public CarPropertyEventListenerToBase(CarCabinManager manager) { in CarPropertyEventListenerToBase() argument 420 mManager = new WeakReference<>(manager); in CarPropertyEventListenerToBase() 425 CarCabinManager manager = mManager.get(); in onChangeEvent() local 426 if (manager != null) { in onChangeEvent() 427 manager.handleOnChangeEvent(value); in onChangeEvent() 433 CarCabinManager manager = mManager.get(); in onErrorEvent() local 434 if (manager != null) { in onErrorEvent() 435 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothUtils.java | 68 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/ |
D | ContentRatingLevelPolicy.java | 36 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/ |
D | MenuExecutor.java | 221 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/apps/Camera2/src/com/android/camera/one/ |
D | OneCameraModule.java | 48 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()
|