/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | PermissionUtilsTest.java | 32 import static androidx.test.InstrumentationRegistry.getContext; 107 final Context context = getContext(); in testSelfPermissions() 137 final Context context = getContext(); in testNoIsolatedStorageIsByDefaultDenied() 146 int testAppUid = getContext().getPackageManager().getPackageUid(packageName, 0); in testDefaultPermissionsOnTestAppWithStoragePerms() 150 assertThat(checkPermissionSelf(getContext(), TEST_APP_PID, testAppUid)).isFalse(); in testDefaultPermissionsOnTestAppWithStoragePerms() 151 assertThat(checkPermissionShell(getContext(), TEST_APP_PID, testAppUid)).isFalse(); in testDefaultPermissionsOnTestAppWithStoragePerms() 153 checkIsLegacyStorageGranted(getContext(), testAppUid, packageName, in testDefaultPermissionsOnTestAppWithStoragePerms() 156 checkPermissionInstallPackages(getContext(), TEST_APP_PID, testAppUid, in testDefaultPermissionsOnTestAppWithStoragePerms() 159 checkPermissionAccessMtp(getContext(), TEST_APP_PID, testAppUid, packageName, in testDefaultPermissionsOnTestAppWithStoragePerms() 162 checkPermissionWriteStorage(getContext(), TEST_APP_PID, testAppUid, packageName, in testDefaultPermissionsOnTestAppWithStoragePerms() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/ |
D | VoicemailSettingsFragment.java | 90 voicemailClient = VoicemailComponent.get(getContext()).getVoicemailClient(); in onCreate() 96 Logger.get(getContext()).logImpression(DialerImpression.Type.VVM_SETTINGS_VIEWED); in onResume() 115 if (!voicemailClient.hasCarrierSupport(getContext(), phoneAccountHandle)) { in setupVisualVoicemailPreferences() 128 if (!voicemailClient.isVoicemailEnabled(getContext(), phoneAccountHandle) in setupVisualVoicemailFeaturePreferences() 129 || !voicemailClient.isActivated(getContext(), phoneAccountHandle)) { in setupVisualVoicemailFeaturePreferences() 139 if (!VoicemailComponent.get(getContext()) in updateTranscriptionPreferences() 141 .isVoicemailTranscriptionAvailable(getContext(), phoneAccountHandle)) { in updateTranscriptionPreferences() 153 voicemailClient.isVoicemailTranscriptionEnabled(getContext(), phoneAccountHandle)); in showTranscriptionEnabledPreference() 166 return new ContentWithLearnMoreSpanner(getContext()) in getVoicemailTranscriptionInformationalText() 168 getContext().getString(R.string.voicemail_transcription_preference_summary_info), in getVoicemailTranscriptionInformationalText() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
D | CaptionCustomFragment.java | 200 final String typeface = Settings.Secure.getString(getContext().getContentResolver(), in getCaptionsFontFamily() 207 Settings.Secure.putString(getContext().getContentResolver(), in setCaptionsFontFamily() 210 Settings.Secure.putString(getContext().getContentResolver(), in setCaptionsFontFamily() 216 return Integer.toHexString(Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsTextColor() 222 final int alpha = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsTextColor() 224 Settings.Secure.putInt(getContext().getContentResolver(), in setCaptionsTextColor() 229 return opacityToString(Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsTextOpacity() 234 final int color = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsTextOpacity() 237 Settings.Secure.putInt(getContext().getContentResolver(), in setCaptionsTextOpacity() 242 return Integer.toString(Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsEdgeType() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | Message.java | 142 mEnv.getContext().getDrawable(R.drawable.ic_dialog_alert)); in update() 145 mEnv.getContext().getDrawable(R.drawable.ic_dialog_info)); in update() 162 mEnv.getContext()).getApplicationName(root.userId, root.authority); in updateToAuthenticationExceptionHeader() 163 update(null, mEnv.getContext().getString(R.string.authentication_required, appName), in updateToAuthenticationExceptionHeader() 164 mEnv.getContext().getResources().getText(R.string.sign_in), in updateToAuthenticationExceptionHeader() 165 mEnv.getContext().getDrawable(R.drawable.ic_dialog_info)); in updateToAuthenticationExceptionHeader() 175 update(mEnv.getContext().getString(R.string.directory_blocked_header_title), in updateBlockFromTreeMessage() 176 mEnv.getContext().getString(R.string.directory_blocked_header_subtitle), in updateBlockFromTreeMessage() 177 mEnv.getContext().getString(R.string.create_new_folder_button), in updateBlockFromTreeMessage() 178 mEnv.getContext().getDrawable(R.drawable.ic_dialog_info)); in updateBlockFromTreeMessage() [all …]
|
/packages/apps/Settings/src/com/android/settings/slices/ |
D | SettingsSliceProvider.java | 159 mSlicesDatabaseAccessor = new SlicesDatabaseAccessor(getContext()); in onCreateSliceProvider() 171 final Context context = getContext(); in onSlicePinned() 196 final Context context = getContext(); in onSliceUnpinned() 222 final boolean nightMode = Utils.isNightMode(getContext()); in onBindSlice() 225 getContext().setTheme(R.style.Theme_SettingsBase); in onBindSlice() 229 getContext().getTheme().rebase(); in onBindSlice() 235 final Context context = getContext(); in onBindSlice() 242 return FeatureFactory.getFactory(getContext()) in onBindSlice() 244 .getNewWifiCallingSliceHelper(getContext()) in onBindSlice() 247 return ZenModeSliceBuilder.getSlice(getContext()); in onBindSlice() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | ConnectedDevicesSliceProvider.java | 92 getContext().getContentResolver() 128 getContext(), 0, settingsIntent, PendingIntent.FLAG_MUTABLE); in onCreatePermissionRequest() 138 Context context = getContext(); in onSlicePinned() 171 Context context = getContext(); in onSliceUnpinned() 191 getContext().getContentResolver() in onDeviceUpdated() 198 PreferenceSliceBuilder psb = new PreferenceSliceBuilder(getContext(), sliceUri); in createGeneralSlice() 212 Context context = getContext(); in createBluetoothDeviceSlice() 216 AccessoryUtils.getCachedBluetoothDevice(getContext(), device); in createBluetoothDeviceSlice() 222 PreferenceSliceBuilder psb = new PreferenceSliceBuilder(getContext(), sliceUri); in createBluetoothDeviceSlice() 343 bluetoothToggleIntent = new Intent(getContext(), BluetoothActionActivity.class); in updateBluetoothToggle() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/ |
D | DevicePrefFragment.java | 105 switch (FlavorUtils.getFlavor(getContext())) { in getPreferenceScreenResId() 137 PrivacyToggle.MIC_TOGGLE.preparePreferenceWithSensorFragment(getContext(), in onCreatePreferences() 139 PrivacyToggle.CAMERA_TOGGLE.preparePreferenceWithSensorFragment(getContext(), in onCreatePreferences() 145 final TvInputManager manager = (TvInputManager) getContext().getSystemService( in onCreate() 154 mAudioManager = getContext().getSystemService(AudioManager.class); in onCreate() 242 MainFragment.systemIntentIsHandled(getContext(), preference.getIntent()) != null); in hideIfIntentUnhandled() 246 return SecurityFragment.isRestrictedProfileInEffect(getContext()); in isRestricted() 257 getContext())); in updateDeveloperOptions() 266 final ResolveInfo info = MainFragment.systemIntentIsHandled(getContext(), soundIntent); in updateSounds() 275 final ResolveInfo info = MainFragment.systemIntentIsHandled(getContext(), in updateGoogleSettings() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/speeddial/ |
D | SpeedDialFragment.java | 145 DialerExecutorComponent.get(getContext()) in onCreateView() 150 new SpeedDialLayoutManager(getContext(), 3 /* spanCount */); in onCreateView() 160 getContext(), in onCreateView() 171 ItemTouchHelper.Callback callback = new SpeedDialItemTouchHelperCallback(getContext(), adapter); in onCreateView() 203 if (!PermissionsUtil.hasContactsReadPermissions(getContext())) { in onHidden() 208 DialerExecutorComponent.get(getContext()) in onHidden() 212 UiItemLoaderComponent.get(getContext()) in onHidden() 218 DialerExecutorComponent.get(getContext()).backgroundExecutor()); in onHidden() 220 getContext(), in onHidden() 230 PermissionsUtil.notifyPermissionGranted(getContext(), Manifest.permission.READ_CONTACTS); in onRequestPermissionsResult() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/ |
D | PermissionUsageGraphicPreference.java | 115 TextView centerLabel = new TextView(getContext()); in onBindViewHolder() 117 centerLabel.setText(getContext().getString(R.string.privdash_label_24h)); in onBindViewHolder() 130 final int colorCamera = getContext().getColor(colorCameraRes); in onBindViewHolder() 131 final int colorMicrophone = getContext().getColor(colorMicrophoneRes); in onBindViewHolder() 132 final int colorLocation = getContext().getColor(colorLocationRes); in onBindViewHolder() 133 final int colorOther = getContext().getColor(colorOtherRes); in onBindViewHolder() 141 labels = new TextView[] { new TextView(getContext()) }; in onBindViewHolder() 147 new TextView(getContext()), in onBindViewHolder() 148 new TextView(getContext()), in onBindViewHolder() 149 new TextView(getContext()), in onBindViewHolder() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/ |
D | NewCallLogFragment.java | 86 refreshAnnotatedCallLogReceiver = new RefreshAnnotatedCallLogReceiver(getContext()); in onActivityCreated() 117 ((NewCallLogAdapter) recyclerView.getAdapter()).logMetrics(getContext()); in onStop() 151 if (!PermissionsUtil.hasCallLogReadPermissions(getContext())) { in onFragmentShown() 168 CallLogComponent.get(getContext()) in onFragmentShown() 209 CallLogComponent.get(getContext()).getClearMissedCalls().clearAll(), in onFragmentHidden() 224 MetricsComponent.get(getContext()).metrics(), Metrics.NEW_CALL_LOG_JANK_EVENT_NAME)); in onCreateView() 230 DialerExecutorComponent.get(getContext()) in onCreateView() 235 if (PermissionsUtil.hasCallLogReadPermissions(getContext())) { in onCreateView() 253 if (getContext() == null) { in onEmptyViewActionButtonClicked() 259 getContext(), PermissionsUtil.allPhoneGroupPermissionsUsedInDialer); in onEmptyViewActionButtonClicked() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/ |
D | NewSearchFragment.java | 154 adapter = new SearchAdapter(getContext(), new SearchCursorManager(), this); in onCreateView() 160 recyclerView.setLayoutManager(new LinearLayoutManager(getContext())); in onCreateView() 164 if (!PermissionsUtil.hasContactsReadPermissions(getContext())) { in onCreateView() 202 return new SearchContactsCursorLoader(getContext(), query, isRegularSearch()); in onCreateLoader() 211 return new NearbyPlacesCursorLoader(getContext(), query, directoryIds); in onCreateLoader() 213 return new DirectoriesCursorLoader(getContext()); in onCreateLoader() 215 return new DirectoryContactsCursorLoader(getContext(), query, directories); in onCreateLoader() 290 if (getContext() == null in showLocationPermission() 291 || PermissionsUtil.hasLocationPermissions(getContext()) in showLocationPermission() 367 getContext(), PermissionsUtil.allContactsGroupPermissionsUsedInDialer); in onEmptyViewActionButtonClicked() [all …]
|
/packages/providers/MediaProvider/tests/transcode/src/com/android/providers/media/transcode/ |
D | TranscodeTest.java | 19 import static androidx.test.InstrumentationRegistry.getContext; 92 TranscodeTestUtils.grantPermission(getContext().getPackageName(), in setUp() 116 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testTranscoded_FilePath() 136 noTranscodeFiles.add(new File(getContext().getExternalFilesDir(null), HEVC_FILE_NAME)); in testNoTranscodeOutsideCamera_FilePath() 145 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testNoTranscodeOutsideCamera_FilePath() 170 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testSameTranscoded_FilePath() 192 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testTranscoded_ContentResolver() 223 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testNoTranscodeOutsideCamera_ConentResolver() 250 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testSameTranscodedFile_ContentResolver() 271 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testDeleteTranscodedFile_FilePath() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataUsageSummaryPreferenceController.java | 146 preference.setMinLabel(DataUsageUtils.bytesToIecUnits(getContext(), /* byteValue= */ 0)); in updateState() 148 DataUsageUtils.bytesToIecUnits(getContext(), mDataplanTrackingThreshold)); in updateState() 153 Formatter.BytesResult usedResult = Formatter.formatBytes(getContext().getResources(), in getUsageText() 156 int textSize = getContext().getResources().getDimensionPixelSize( in getUsageText() 163 CharSequence template = getContext().getText(R.string.data_used_formatted); in getUsageText() 173 getContext().getText(R.string.cell_data_warning_and_limit), in getLimitText() 174 DataUsageUtils.bytesToIecUnits(getContext(), info.warningLevel), in getLimitText() 175 DataUsageUtils.bytesToIecUnits(getContext(), info.limitLevel)); in getLimitText() 177 return TextUtils.expandTemplate(getContext().getText(R.string.cell_data_warning), in getLimitText() 178 DataUsageUtils.bytesToIecUnits(getContext(), info.warningLevel)); in getLimitText() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
D | ActivationTask.java | 117 getContext(), DialerImpression.Type.VVM_AUTO_RETRY_ACTIVATION); in createRestartIntent() 128 getContext(), DialerImpression.Type.VVM_ACTIVATION_STARTED); in onExecuteInBackgroundThread() 136 PreOMigrationHandler.migrate(getContext(), phoneAccountHandle); in onExecuteInBackgroundThread() 142 helper = new OmtpVvmCarrierConfigHelper(getContext(), phoneAccountHandle); in onExecuteInBackgroundThread() 146 VvmAccountManager.removeAccount(getContext(), phoneAccountHandle); in onExecuteInBackgroundThread() 150 if (!VisualVoicemailSettingsUtil.isEnabled(getContext(), phoneAccountHandle)) { in onExecuteInBackgroundThread() 163 if (!VoicemailStatus.edit(getContext(), phoneAccountHandle) in onExecuteInBackgroundThread() 172 && VvmAccountManager.isAccountActivated(getContext(), phoneAccountHandle)) { in onExecuteInBackgroundThread() 176 onSuccess(getContext(), phoneAccountHandle, helper); in onExecuteInBackgroundThread() 180 VoicemailStatus.edit(getContext(), phoneAccountHandle), OmtpEvents.CONFIG_ACTIVATING); in onExecuteInBackgroundThread() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/ |
D | KeyboardManagementPreferenceController.java | 56 InputMethodUtil.enableInputMethod(getContext().getContentResolver(), 69 InputMethodUtil.enableInputMethod(getContext().getContentResolver(), 125 .thenComparing((InputMethodInfo a) -> InputMethodUtil.getSummaryString(getContext(), in updateState() 149 getContext().getContentResolver(), inputMethodInfo); in isInputMethodEnabled() 160 if (!inputMethodInfo.isDefault(getContext())) { in isOnlyEnabledDefaultInputMethod() 167 if (!imi.isDefault(getContext())) { in isOnlyEnabledDefaultInputMethod() 185 SwitchPreference switchPreference = new CarUiSwitchPreference(getContext()); in createSwitchPreference() 190 switchPreference.setChecked(InputMethodUtil.isInputMethodEnabled(getContext() in createSwitchPreference() 192 switchPreference.setSummary(InputMethodUtil.getSummaryString(getContext(), in createSwitchPreference() 209 InputMethodUtil.disableInputMethod(getContext(), mInputMethodManager, in createSwitchPreference() [all …]
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | HelpersTest.java | 82 FsHelper.deleteContents(getContext().getFilesDir()); in tearDown() 83 FsHelper.deleteContents(getContext().getCacheDir()); in tearDown() 89 final File expected = new File(getContext().getFilesDir(), "file.mp4"); in testGenerateSaveFile() 90 final String actual = Helpers.generateSaveFile(getContext(), in testGenerateSaveFile() 97 final File expected1 = new File(getContext().getFilesDir(), "file.txt"); in testGenerateSaveFileDupes() 98 final String actual1 = Helpers.generateSaveFile(getContext(), "http://example.com/file.txt", in testGenerateSaveFileDupes() 101 final File expected2 = new File(getContext().getFilesDir(), "file-1.txt"); in testGenerateSaveFileDupes() 102 final String actual2 = Helpers.generateSaveFile(getContext(), "http://example.com/file.txt", in testGenerateSaveFileDupes() 110 final File expected = new File(getContext().getFilesDir(), "file.mp4"); in testGenerateSaveFileNoExtension() 111 final String actual = Helpers.generateSaveFile(getContext(), in testGenerateSaveFileNoExtension() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/network/ |
D | MobileDataTogglePreferenceController.java | 77 mSubscriptionManager = getContext().getSystemService(SubscriptionManager.class); in MobileDataTogglePreferenceController() 88 mTelephonyManager = TelephonyManager.from(getContext()).createForSubscriptionId(mSubId); in setSubId() 117 getContext().getContentResolver().registerContentObserver(getObservableUri(mSubId), in onStartInternal() 125 getContext().getContentResolver().unregisterContentObserver(mMobileDataChangeObserver); in onStopInternal() 162 NetworkUtils.setMobileDataEnabled(getContext(), mSubId, enabled, disableOtherSubscriptions); in setMobileDataEnabled() 173 if (TelephonyManager.from(getContext()).getSimCount() != 1) { in getObservableUri() 180 return new ConfirmationDialogFragment.Builder(getContext()) in getConfirmDataDisableDialog() 194 ? getContext().getResources().getString(R.string.sim_selection_required_pref) in getConfirmMultisimEnableDialog() 198 ? getContext().getResources().getString(R.string.sim_selection_required_pref) in getConfirmMultisimEnableDialog() 201 return new ConfirmationDialogFragment.Builder(getContext()) in getConfirmMultisimEnableDialog() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | AdvancedPowerUsageDetail.java | 240 mBatteryUtils = BatteryUtils.getInstance(getContext()); in onAttach() 267 initPreferenceForTriState(getContext()); in onResume() 269 FeatureFactory.getFactory(getContext()).getMetricsFeatureProvider() in onResume() 271 getContext(), in onResume() 275 initPreference(getContext()); in onResume() 444 FeatureFactory.getFactory(getContext()).getMetricsFeatureProvider() in onRadioButtonClicked() 446 getContext(), in onRadioButtonClicked() 469 getContext(), getArguments().getInt(EXTRA_UID), packageName); in onCreateForTriState() 477 FeatureFactory.getFactory(getContext()).getPowerUsageFeatureProvider(getContext()); in getAppActiveTime() 480 usageTimeSummary = getText(powerFeatureProvider.isChartGraphEnabled(getContext()) in getAppActiveTime() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/ |
D | KeyboardFragment.java | 99 InputMethodHelper.setDefaultInputMethodId(getContext(), (String) newValue); in onCreatePreferences() 124 final PackageManager packageManager = getContext().getPackageManager(); in updateCurrentKeyboardPreference() 126 .getEnabledSystemInputMethodList(getContext()); in updateCurrentKeyboardPreference() 131 final String defaultId = InputMethodHelper.getDefaultInputMethodId(getContext()); in updateCurrentKeyboardPreference() 150 return getPreferenceManager().getContext(); in getPreferenceContext() 155 final PackageManager packageManager = getContext().getPackageManager(); in updateKeyboardsSettings() 157 .getEnabledSystemInputMethodList(getContext()); in updateKeyboardsSettings() 163 final String uri = InputMethodHelper.getInputMethodsSettingsUri(getContext(), info); in updateKeyboardsSettings() 171 boolean useSlice = FlavorUtils.isTwoPanel(getContext()) && uri != null; in updateKeyboardsSettings() 181 preference.setTitle(getContext().getString(R.string.title_settings, in updateKeyboardsSettings() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | MainFragment.java | 138 switch (FlavorUtils.getFlavor(getContext())) { in getPreferenceScreenResId() 160 mConnectivityListener = new ConnectivityListener(getContext(), this::updateConnectivity, in onCreate() 203 if (FlavorUtils.isTwoPanel(getContext())) { in onCreatePreferences() 284 final ResolveInfo info = systemIntentIsHandled(getContext(), soundIntent); in updateSoundSettings() 312 Context targetContext = getContext().createPackageContext(pkgName, 0); in getStringResource() 333 Context targetContext = getContext().createPackageContext(pkgName, 0); in getDrawableResource() 375 return SecurityFragment.isRestrictedProfileInEffect(getContext()); in isRestricted() 385 && FlavorUtils.isTwoPanel(getContext()) in updateAccessoryPref() 387 getContext(), connectedDevicesSlicePreference.getUri())) { in updateAccessoryPref() 391 ProviderInfo pkgInfo = getProviderInfo(getContext(), in updateAccessoryPref() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/assist/ |
D | DefaultVoiceInputPickerPreferenceController.java | 52 VoiceInputUtils.getCurrentService(getContext()))) { in DefaultVoiceInputPickerPreferenceController() 69 new DefaultVoiceInputServiceInfo(getContext(), getContext().getPackageManager(), in getCandidates() 76 new DefaultVoiceInputServiceInfo(getContext(), getContext().getPackageManager(), in getCandidates() 84 ComponentName cn = VoiceInputUtils.getCurrentService(getContext()); in getCurrentDefaultKey() 100 Settings.Secure.putString(getContext().getContentResolver(), in setCurrentDefault() 102 Settings.Secure.putString(getContext().getContentResolver(), in setCurrentDefault() 108 Settings.Secure.putString(getContext().getContentResolver(), in setCurrentDefault() 110 Settings.Secure.putString(getContext().getContentResolver(), in setCurrentDefault()
|
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/ |
D | ContactPreference.java | 128 mContact = mContactFactory.getContact(getContext(), phoneUri); in setPhoneUri() 135 getContext().getResources().getString(R.string.phone_type_and_phone_number), in setPhoneUri() 144 String.format(getContext().getString(R.string.remove_contact), in setPhoneUri() 152 (int) getContext().getResources().getDimension(R.dimen.circle_avatar_size)); in setPhoneUri() 154 icon = getContext().getDrawable(R.drawable.ic_account_circle_filled_24dp); in setPhoneUri() 171 AlertDialog.Builder builder = new AlertDialog.Builder(getContext()); in setRemoveContactPreferenceListener() 172 builder.setNegativeButton(getContext().getString(R.string.cancel), null); in setRemoveContactPreferenceListener() 173 builder.setPositiveButton(getContext().getString(R.string.remove), in setRemoveContactPreferenceListener() 184 builder.setMessage(String.format(getContext().getString(R.string.remove_contact), in setRemoveContactPreferenceListener() 226 TelecomManager tm = (TelecomManager) getContext().getSystemService(Context.TELECOM_SERVICE); in callContact() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/units/ |
D | UnitsFuelConsumptionPreferenceController.java | 54 return getContext().getString(R.string.units_list_entry, getAbbreviationByVolumeUnit(unit), in generateEntryStringFromUnit() 62 abbreviation = getContext().getString( in getAbbreviationByVolumeUnit() 66 abbreviation = getContext().getString( in getAbbreviationByVolumeUnit() 71 abbreviation = getContext().getString( in getAbbreviationByVolumeUnit() 74 abbreviation = getContext().getString( in getAbbreviationByVolumeUnit() 85 pronounced = getContext().getString(R.string.units_unit_name_miles_per_gallon_us); in getPronouncedNameByVolumeUnit() 88 pronounced = getContext().getString(R.string.units_unit_name_miles_per_gallon_uk); in getPronouncedNameByVolumeUnit() 92 pronounced = getContext().getString( in getPronouncedNameByVolumeUnit() 95 pronounced = getContext().getString( in getPronouncedNameByVolumeUnit()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreference.java | 199 launchWifiDataUsage(getContext()); in onBindViewHolder() 212 getContext().startActivity(mLaunchIntent); in onBindViewHolder() 242 final Formatter.BytesResult usedResult = Formatter.formatBytes(getContext().getResources(), in updateDataUsageLabels() 246 getContext().getResources().getDimensionPixelSize(R.dimen.usage_number_text_size); in updateDataUsageLabels() 249 CharSequence template = getContext().getText(R.string.data_used_formatted); in updateDataUsageLabels() 262 TextUtils.expandTemplate(getContext().getText(R.string.data_remaining), in updateDataUsageLabels() 263 DataUsageUtils.formatDataUsage(getContext(), dataRemaining))); in updateDataUsageLabels() 265 Utils.getColorAttr(getContext(), android.R.attr.colorAccent)); in updateDataUsageLabels() 268 TextUtils.expandTemplate(getContext().getText(R.string.data_overusage), in updateDataUsageLabels() 269 DataUsageUtils.formatDataUsage(getContext(), -dataRemaining))); in updateDataUsageLabels() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/preferences/ |
D | WifiWakeupTogglePreferenceController.java | 62 Intent intent = HelpUtils.getHelpIntent(getContext(), 63 getContext().getString(R.string.help_uri_wifi_scanning_required), 64 getContext().getClass().getName()); 67 getContext().startActivity(intent); 127 return Settings.Global.getInt(getContext().getContentResolver(), in getWifiWakeupEnabled() 132 Settings.Global.putInt(getContext().getContentResolver(), in setWifiWakeupEnabled() 144 getContext(), in enableWifiScanning() 145 getContext().getString(R.string.wifi_settings_scanning_required_enabled), in enableWifiScanning() 151 CharSequence locationText = getContext() in getNoLocationSummary() 174 new ConfirmationDialogFragment.Builder(getContext()) in getConfirmEnableWifiScanningDialogFragment() [all …]
|