/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/ |
D | DaydreamFragment.java | 64 private DreamBackend mBackend; field in DaydreamFragment 73 mBackend = new DreamBackend(getActivity()); in onCreate() 116 dreamNowPref.setEnabled(mBackend.isEnabled()); in onCreatePreferences() 120 final List<DreamBackend.DreamInfo> infos = mBackend.getDreamInfos(); in refreshActiveDreamPref() 126 final ComponentName currentDreamComponent = mBackend.getActiveDream(); in refreshActiveDreamPref() 127 activeDreamPref.setValue(mBackend.isEnabled() && currentDreamComponent != null in refreshActiveDreamPref() 168 if (!mBackend.isEnabled()) { in setActiveDream() 169 mBackend.setEnabled(true); in setActiveDream() 171 if (!Objects.equals(mBackend.getActiveDream(), dreamInfo.componentName)) { in setActiveDream() 172 mBackend.setActiveDream(dreamInfo.componentName); in setActiveDream() [all …]
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | AppDeletionPreferenceGroup.java | 38 private AppDeletionType mBackend; field in AppDeletionPreferenceGroup 73 preference.setChecked(mBackend.isChecked(packageName)); in onAppRebuild() 91 return mBackend.getDeletionThreshold() == 0; in isNoThreshold() 107 if (mBackend == null) { in onPreferenceChange() 116 mBackend.setChecked(p.getPackageName(), isChecked); in onPreferenceChange() 127 mBackend.setChecked(p.getPackageName(), isChecked); in onPreferenceChange() 146 mBackend = type; in setDeletionType() 152 if (mBackend != null) { in updateText() 154 mBackend.getTotalAppsFreeableSpace(DeletionHelperSettings.COUNT_UNCHECKED); in updateText() 155 deletionThreshold = mBackend.getDeletionThreshold(); in updateText() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dream/ |
D | WhenToDreamPickerTest.java | 44 private DreamBackend mBackend; field in WhenToDreamPickerTest 59 ReflectionHelpers.setField(mPicker, "mBackend", mBackend); in setup() 64 when(mBackend.getWhenToDreamSetting()).thenReturn(DreamBackend.WHILE_CHARGING); in getDefaultKeyReturnsCurrentWhenToDreamSetting() 68 when(mBackend.getWhenToDreamSetting()).thenReturn(DreamBackend.WHILE_DOCKED); in getDefaultKeyReturnsCurrentWhenToDreamSetting() 72 when(mBackend.getWhenToDreamSetting()).thenReturn(DreamBackend.EITHER); in getDefaultKeyReturnsCurrentWhenToDreamSetting() 76 when(mBackend.getWhenToDreamSetting()).thenReturn(DreamBackend.NEVER); in getDefaultKeyReturnsCurrentWhenToDreamSetting() 85 verify(mBackend).setWhenToDream(DreamBackend.WHILE_CHARGING); in setDreamWhileCharging() 92 verify(mBackend).setWhenToDream(DreamBackend.WHILE_DOCKED); in setDreamWhileDocked() 99 verify(mBackend).setWhenToDream(DreamBackend.EITHER); in setDreamWhileChargingOrDocked() 106 verify(mBackend).setWhenToDream(DreamBackend.NEVER); in setDreamNever()
|
D | CurrentDreamPreferenceControllerTest.java | 50 private DreamBackend mBackend; field in CurrentDreamPreferenceControllerTest 61 ReflectionHelpers.setField(mController, "mBackend", mBackend); in setup() 66 when(mBackend.getDreamInfos()).thenReturn(new ArrayList<>(0)); in isDisabledIfNoDreamsAvailable() 73 when(mBackend.getDreamInfos()).thenReturn(new ArrayList<>(Arrays.asList(mDreamInfo))); in isEnabledIfDreamsAvailable() 83 when(mBackend.getDreamInfos()).thenReturn(new ArrayList<>(Arrays.asList(mDreamInfo))); in gearShowsIfActiveDreamInfoHasOptions() 100 when(mBackend.getDreamInfos()).thenReturn(new ArrayList<>(Arrays.asList(mDreamInfo))); in gearHidesIfActiveDreamInfoHasNoOptions()
|
D | CurrentDreamPickerTest.java | 50 private DreamBackend mBackend; field in CurrentDreamPickerTest 66 ReflectionHelpers.setField(mPicker, "mBackend", mBackend); in setup() 73 when(mBackend.getActiveDream()).thenReturn(mockComponentName); in getDefaultShouldReturnActiveDream() 85 when(mBackend.getDreamInfos()).thenReturn(new ArrayList<>(Arrays.asList(mockInfo))); in setDefaultShouldUpdateActiveDream() 89 verify(mBackend).setActiveDream(mockName); in setDefaultShouldUpdateActiveDream()
|
D | StartNowPreferenceControllerTest.java | 55 private DreamBackend mBackend; field in StartNowPreferenceControllerTest 66 ReflectionHelpers.setField(mController, "mBackend", mBackend); in setup() 81 when(mBackend.getWhenToDreamSetting()).thenReturn(DreamBackend.NEVER); in buttonIsDisabledWhenNeverDreaming() 89 when(mBackend.getWhenToDreamSetting()).thenReturn(DreamBackend.EITHER); in buttonIsEnabledWhenDreamIsAvailable()
|
/packages/apps/Settings/src/com/android/settings/dream/ |
D | CurrentDreamPreferenceController.java | 30 private final DreamBackend mBackend; field in CurrentDreamPreferenceController 36 mBackend = DreamBackend.getInstance(context); in CurrentDreamPreferenceController() 41 return mBackend.getDreamInfos().size() > 0; in isAvailable() 53 preference.setSummary(mBackend.getActiveDreamName()); in updateState() 72 mBackend.launchSettings(info.get()); in launchScreenSaverSettings() 76 return mBackend.getDreamInfos() in getActiveDreamInfo()
|
D | CurrentDreamPicker.java | 34 private DreamBackend mBackend; field in CurrentDreamPicker 40 mBackend = DreamBackend.getInstance(context); in onAttach() 52 mBackend.setActiveDream(componentNameMap.get(key)); in setDefaultKey() 60 return mBackend.getActiveDream().flattenToString(); in getDefaultKey() 66 candidates = mBackend.getDreamInfos().stream() in getCandidates() 82 mBackend.getDreamInfos() in getDreamComponentsMap()
|
D | StartNowPreferenceController.java | 33 private final DreamBackend mBackend; field in StartNowPreferenceController 38 mBackend = DreamBackend.getInstance(context); in StartNowPreferenceController() 57 startButton.setOnClickListener(v -> mBackend.startDreaming()); in displayPreference() 66 startButton.setEnabled(mBackend.getWhenToDreamSetting() != DreamBackend.NEVER); in updateState()
|
D | WhenToDreamPicker.java | 31 private DreamBackend mBackend; field in WhenToDreamPicker 37 mBackend = DreamBackend.getInstance(context); in onAttach() 73 return DreamSettings.getKeyFromSetting(mBackend.getWhenToDreamSetting()); in getDefaultKey() 78 mBackend.setWhenToDream(DreamSettings.getSettingFromPrefKey(key)); in setDefaultKey()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | HighPowerDetail.java | 46 private final PowerWhitelistBackend mBackend = PowerWhitelistBackend.getInstance(); field in HighPowerDetail 72 mIsEnabled = mDefaultOn || mBackend.isWhitelisted(mPackageName); in onCreate() 82 if (!on && mBackend.isSysWhitelisted(mPackageName)) { in setup() 94 if (!mBackend.isSysWhitelisted(mPackageName)) { in onCreateDialog() 128 boolean oldValue = mBackend.isWhitelisted(mPackageName); in onClick() 132 mBackend.addApp(mPackageName); in onClick() 134 mBackend.removeApp(mPackageName); in onClick()
|
D | BatteryOptimizationPreferenceController.java | 38 private PowerWhitelistBackend mBackend; field in BatteryOptimizationPreferenceController 49 mBackend = PowerWhitelistBackend.getInstance(); in BatteryOptimizationPreferenceController() 59 mBackend = backend; in BatteryOptimizationPreferenceController() 69 final boolean isWhitelisted = mBackend.isWhitelisted(mPackageName); in updateState()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | UsbModeChooserActivity.java | 61 private UsbBackend mBackend; field in UsbModeChooserActivity 109 mBackend = new UsbBackend(this); in onCreate() 110 int current = mBackend.getCurrentMode(); in onCreate() 112 if (mBackend.isModeSupported(DEFAULT_MODES[i]) in onCreate() 113 && !mBackend.isModeDisallowedBySystem(DEFAULT_MODES[i])) { in onCreate() 115 mBackend.isModeDisallowed(DEFAULT_MODES[i])); in onCreate() 160 mBackend.setMode(mode); in inflateOption()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | AppNotificationSettings.java | 104 mShowLegacyChannelConfig = mBackend.onlyHasDefaultChannel(mAppRow.pkg, mAppRow.uid); in onResume() 106 mChannel = mBackend.getChannel( in onResume() 116 mChannelGroupList = mBackend.getChannelGroups(mPkg, mUid).getList(); in onResume() 210 int deletedChannelCount = mBackend.getDeletedChannelCount(mAppRow.pkg, mAppRow.uid); in populateChannelList() 259 mBackend.updateChannel(mPkg, mUid, channel); in populateSingleChannelPrefs() 280 mBackend.setShowBadge(mPkg, mUid, value); in setupBadge() 284 mBackend.updateChannel(mPkg, mUid, mChannel); in setupBadge() 306 mBackend.updateChannel(mPkg, mUid, mChannel); in setupBlock() 308 mBackend.setNotificationsEnabledForPackage(mPkgInfo.packageName, mUid, isChecked); in setupBlock()
|
D | ChannelNotificationSettings.java | 107 mChannelGroup = mBackend.getGroup(mChannel.getGroup(), mPkg, mUid); in onResume() 195 mBackend.updateChannel(mPkg, mUid, mChannel); in setupBadge() 211 mBackend.updateChannel(mPkg, mUid, mChannel); in setupLights() 228 mBackend.updateChannel(mPkg, mUid, mChannel); in setupVibrate() 243 mBackend.updateChannel(mPkg, mUid, mChannel); in setupRingtone() 269 mBackend.updateChannel(mPkg, mUid, mChannel); in setupBlock()
|
D | NotificationSettingsBase.java | 90 protected NotificationBackend mBackend = new NotificationBackend(); field in NotificationSettingsBase 185 mAppRow = mBackend.loadAppRow(mContext, mPm, mPkgInfo); in onResume() 188 mBackend.getChannel(mPkg, mUid, args.getString(Settings.EXTRA_CHANNEL_ID)) : null; in onResume() 322 mBackend.updateChannel(mPkg, mUid, mChannel); in setupImportanceToggle() 340 mBackend.updateChannel(mPkg, mUid, mChannel); in setupPriorityPref() 393 mBackend.updateChannel(mPkg, mUid, mChannel); in setupVisOverridePref()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | BuiltInPrintService.java | 52 private Backend mBackend; field in BuiltInPrintService 75 mBackend = new Backend(this); in onCreate() 76 mCapabilitiesCache = new CapabilitiesCache(this, mBackend, in onCreate() 92 mBackend.close(); in onDestroy() 109 mJobQueue.print(new LocalPrintJob(this, mBackend, printJob)); in onPrintJobQueued()
|
D | LocalPrintJob.java | 54 private final Backend mBackend; field in LocalPrintJob 66 mBackend = backend; in LocalPrintJob() 120 mBackend.cancel(); in cancel() 160 mBackend.print(mPath, mPrintJob, capabilities, this::handleJobStatus); in handleCapabilities() 209 mBackend.closeDocument(); in finish()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryOptimizationPreferenceControllerTest.java | 59 private TestPowerWhitelistBackend mBackend; field in BatteryOptimizationPreferenceControllerTest 70 doReturn(false).when(mBackend).isWhitelisted(PKG_NOT_IN_WHITELIST); in setUp() 71 doReturn(true).when(mBackend).isWhitelisted(PKG_IN_WHITELIST); in setUp() 75 PKG_NOT_IN_WHITELIST, mBackend)); in setUp() 106 PKG_IN_WHITELIST, mBackend); in testUpdateState_appInWhitelist_showSummaryNotOptimized()
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
D | PaymentDefaultDialog.java | 39 private PaymentBackend mBackend; field in PaymentDefaultDialog 45 mBackend = new PaymentBackend(this); in onCreate() 62 mBackend.setDefaultPaymentApp(mNewDefault); in onClick() 85 List<PaymentAppInfo> services = mBackend.getPaymentAppInfos(); in buildDialog() 101 ComponentName defaultComponent = mBackend.getDefaultPaymentApp(); in buildDialog()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | NotificationAppsTest.java | 61 private NotificationBackend mBackend; field in NotificationAppsTest 73 ReflectionHelpers.setField(mSummaryProvider, "mNotificationBackend", mBackend); in setUp() 93 when(mBackend.getNotificationsBanned(anyString(), anyInt())).thenReturn(false); in setListening_shouldSetSummary() 100 when(mBackend.getNotificationsBanned(eq("package1"), anyInt())).thenReturn(true); in setListening_shouldSetSummary() 106 when(mBackend.getNotificationsBanned(eq("package2"), anyInt())).thenReturn(true); in setListening_shouldSetSummary()
|
D | SpecialAppAccessPreferenceControllerTest.java | 43 private DataSaverBackend mBackend; field in SpecialAppAccessPreferenceControllerTest 54 ReflectionHelpers.setField(mController, "mDataSaverBackend", mBackend); in setUp() 64 when(mBackend.getWhitelistedCount()).thenReturn(0); in updateState_shouldSetSummary() 71 when(mBackend.getWhitelistedCount()).thenReturn(1); in updateState_shouldSetSummary()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | AppDeletionPreferenceGroupTest.java | 45 @Mock private AppDeletionType mBackend; field in AppDeletionPreferenceGroupTest 56 mGroup.setDeletionType(mBackend); in setUp() 62 when(mBackend.getDeletionThreshold()).thenReturn(0L); in addsPreferenceToScreen_onNoThreshold() 72 when(mBackend.getDeletionThreshold()).thenReturn(0L); in addsPreferenceToScreenWithHighOrder_onNoThreshold()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/ |
D | StartJobTask.java | 71 private final Backend mBackend; field in StartJobTask 84 mBackend = backend; in StartJobTask() 148 int result = mBackend.nativeGetDefaultJobParameters(mJobParams); in doInBackground() 160 mBackend.nativeGetFinalJobParameters(mJobParams, mCapabilities); in doInBackground() 169 result = mBackend.nativeStartJob(Backend.getIp(address), mDestination.getPort(), in doInBackground()
|
D | CancelJobTask.java | 28 private final Backend mBackend; field in CancelJobTask 32 mBackend = backend; in CancelJobTask() 41 mBackend.nativeCancelJob(mJobId); in doInBackground()
|