Home
last modified time | relevance | path

Searched refs:getContext (Results 1 – 25 of 2297) sorted by relevance

12345678910>>...92

/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/
DVoicemailSettingsFragment.java90 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/
DCaptionCustomFragment.java200 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/
DMessage.java142 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/
DSettingsSliceProvider.java154 mSlicesDatabaseAccessor = new SlicesDatabaseAccessor(getContext()); in onCreateSliceProvider()
162 final Context context = getContext(); in onSlicePinned()
187 SliceBroadcastRelay.unregisterReceivers(getContext(), sliceUri); in onSliceUnpinned()
207 final boolean nightMode = Utils.isNightMode(getContext()); in onBindSlice()
210 getContext().setTheme(R.style.Theme_SettingsBase); in onBindSlice()
214 getContext().getTheme().rebase(); in onBindSlice()
220 final Context context = getContext(); in onBindSlice()
227 return FeatureFactory.getFactory(getContext()) in onBindSlice()
229 .getNewWifiCallingSliceHelper(getContext()) in onBindSlice()
232 return ZenModeSliceBuilder.getSlice(getContext()); in onBindSlice()
[all …]
/packages/apps/Dialer/java/com/android/dialer/speeddial/
DSpeedDialFragment.java145 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/apps/Dialer/java/com/android/dialer/searchfragment/list/
DNewSearchFragment.java154 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/apps/Dialer/java/com/android/dialer/calllog/ui/
DNewCallLogFragment.java86 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/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceController.java146 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/TvSettings/Settings/src/com/android/tv/settings/device/
DDevicePrefFragment.java103 final TvInputManager manager = (TvInputManager) getContext().getSystemService( in onCreate()
182 MainFragment.systemIntentIsHandled(getContext(), preference.getIntent()) != null); in hideIfIntentUnhandled()
186 return SecurityFragment.isRestrictedProfileInEffect(getContext()); in isRestricted()
197 getContext())); in updateDeveloperOptions()
206 final ResolveInfo info = MainFragment.systemIntentIsHandled(getContext(), soundIntent); in updateSounds()
215 final ResolveInfo info = MainFragment.systemIntentIsHandled(getContext(), in updateGoogleSettings()
220 info.activityInfo.loadIcon(getContext().getPackageManager())); in updateGoogleSettings()
222 info.activityInfo.loadLabel(getContext().getPackageManager())); in updateGoogleSettings()
232 getContext(), castPref.getIntent()); in updateCastSettings()
235 final Context targetContext = getContext() in updateCastSettings()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/
DSensorsTestFragment.java131 mNaString = getContext().getString(R.string.sensor_na); in onCreateView()
142 new Handler(getContext().getMainLooper())); in onResume()
198 mLocationListener = new LocationListeners(getContext(), in initSensors()
260 summary.add(getContext().getString(R.string.sensor_speed, in refreshSensorInfoText()
265 summary.add(getContext().getString(R.string.sensor_rpm, in refreshSensorInfoText()
270 summary.add(getContext().getString(R.string.sensor_odometer, in refreshSensorInfoText()
281 summary.add(getContext().getString(R.string.sensor_ignition_status, in refreshSensorInfoText()
287 summary.add(getContext().getString(R.string.sensor_parking_brake, in refreshSensorInfoText()
293 summary.add(getContext().getString(R.string.sensor_gear, in refreshSensorInfoText()
298 summary.add(getContext().getString(R.string.sensor_night, in refreshSensorInfoText()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSettingsSliceProvider.java133 mSlicesDatabaseAccessor = new SlicesDatabaseAccessor(getContext()); in onCreateSliceProvider()
141 final Context context = getContext(); in onSlicePinned()
166 SliceBroadcastRelay.unregisterReceivers(getContext(), sliceUri); in onSliceUnpinned()
189 final Context context = getContext(); in onBindSlice()
196 return FeatureFactory.getFactory(getContext()) in onBindSlice()
198 .getNewWifiCallingSliceHelper(getContext()) in onBindSlice()
201 return ZenModeSliceBuilder.getSlice(getContext()); in onBindSlice()
203 return BluetoothSliceBuilder.getSlice(getContext()); in onBindSlice()
205 return FeatureFactory.getFactory(getContext()) in onBindSlice()
207 .getNewEnhanced4gLteSliceHelper(getContext()) in onBindSlice()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/
DActivationTask.java117 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/
DKeyboardManagementPreferenceController.java55 InputMethodUtil.enableInputMethod(getContext().getContentResolver(),
68 InputMethodUtil.enableInputMethod(getContext().getContentResolver(),
126 .thenComparing((InputMethodInfo a) -> InputMethodUtil.getSummaryString(getContext(), in updateState()
150 getContext().getContentResolver(), inputMethodInfo); in isInputMethodEnabled()
161 if (!inputMethodInfo.isDefault(getContext())) { in isOnlyEnabledDefaultInputMethod()
168 if (!imi.isDefault(getContext())) { in isOnlyEnabledDefaultInputMethod()
186 SwitchPreference switchPreference = new SwitchPreference(getContext()); in createSwitchPreference()
191 switchPreference.setChecked(InputMethodUtil.isInputMethodEnabled(getContext() in createSwitchPreference()
193 switchPreference.setSummary(InputMethodUtil.getSummaryString(getContext(), in createSwitchPreference()
210 InputMethodUtil.disableInputMethod(getContext(), mInputMethodManager, in createSwitchPreference()
[all …]
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DHelpersTest.java82 IoUtils.deleteContents(getContext().getFilesDir()); in tearDown()
83 IoUtils.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/
DMobileDataTogglePreferenceController.java77 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/TvSettings/Settings/src/com/android/tv/settings/inputmethod/
DKeyboardFragment.java100 InputMethodHelper.setDefaultInputMethodId(getContext(), (String) newValue); in onCreatePreferences()
125 final PackageManager packageManager = getContext().getPackageManager(); in updateCurrentKeyboardPreference()
127 .getEnabledSystemInputMethodList(getContext()); in updateCurrentKeyboardPreference()
132 final String defaultId = InputMethodHelper.getDefaultInputMethodId(getContext()); in updateCurrentKeyboardPreference()
151 return getPreferenceManager().getContext(); in getPreferenceContext()
156 final PackageManager packageManager = getContext().getPackageManager(); in updateKeyboardsSettings()
158 .getEnabledSystemInputMethodList(getContext()); in updateKeyboardsSettings()
164 final String uri = InputMethodHelper.getInputMethodsSettingsUri(getContext(), info); in updateKeyboardsSettings()
172 boolean useSlice = FeatureFactory.getFactory(getContext()).isTwoPanelLayout() in updateKeyboardsSettings()
183 preference.setTitle(getContext().getString(R.string.title_settings, in updateKeyboardsSettings()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/preferences/
DWifiWakeupTogglePreferenceController.java61 Intent intent = HelpUtils.getHelpIntent(getContext(),
62 getContext().getString(R.string.help_uri_wifi_scanning_required),
63 getContext().getClass().getName());
66 getContext().startActivity(intent);
113 getContext().startActivity(intent); in handlePreferenceClicked()
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()
[all …]
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummaryPreference.java198 launchWifiDataUsage(getContext()); in onBindViewHolder()
211 getContext().startActivity(mLaunchIntent); in onBindViewHolder()
240 final Formatter.BytesResult usedResult = Formatter.formatBytes(getContext().getResources(), in updateDataUsageLabels()
244 getContext().getResources().getDimensionPixelSize(R.dimen.usage_number_text_size); in updateDataUsageLabels()
247 CharSequence template = getContext().getText(R.string.data_used_formatted); in updateDataUsageLabels()
261 TextUtils.expandTemplate(getContext().getText(R.string.data_remaining), in updateDataUsageLabels()
262 DataUsageUtils.formatDataUsage(getContext(), dataRemaining))); in updateDataUsageLabels()
264 Utils.getColorAttr(getContext(), android.R.attr.colorAccent)); in updateDataUsageLabels()
267 TextUtils.expandTemplate(getContext().getText(R.string.data_overusage), in updateDataUsageLabels()
268 DataUsageUtils.formatDataUsage(getContext(), -dataRemaining))); in updateDataUsageLabels()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageSummaryPreference.java198 launchWifiDataUsage(getContext()); in onBindViewHolder()
211 getContext().startActivity(mLaunchIntent); in onBindViewHolder()
240 final Formatter.BytesResult usedResult = Formatter.formatBytes(getContext().getResources(), in updateDataUsageLabels()
244 getContext().getResources().getDimensionPixelSize(R.dimen.usage_number_text_size); in updateDataUsageLabels()
247 CharSequence template = getContext().getText(R.string.data_used_formatted); in updateDataUsageLabels()
261 TextUtils.expandTemplate(getContext().getText(R.string.data_remaining), in updateDataUsageLabels()
262 DataUsageUtils.formatDataUsage(getContext(), dataRemaining))); in updateDataUsageLabels()
264 Utils.getColorAttr(getContext(), android.R.attr.colorAccent)); in updateDataUsageLabels()
267 TextUtils.expandTemplate(getContext().getText(R.string.data_overusage), in updateDataUsageLabels()
268 DataUsageUtils.formatDataUsage(getContext(), -dataRemaining))); in updateDataUsageLabels()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java152 mIconCache = new IconCache(getContext()); in onCreate()
154 new ConnectivityListener(getContext(), this::updateConnectivity, getLifecycle()); in onCreate()
207 mQuickSettingsList = new PreferenceCategory(this.getPreferenceManager().getContext()); in showQuickSettings()
213 mHotwordSwitch = new SwitchPreference(this.getPreferenceManager().getContext()); in showQuickSettings()
225 mTakeBugReportPreference = new Preference(this.getPreferenceManager().getContext()); in showQuickSettings()
298 if (FeatureFactory.getFactory(getContext()).isTwoPanelLayout()) { in onCreatePreferences()
389 final ResolveInfo info = systemIntentIsHandled(getContext(), soundIntent); in updateSoundSettings()
417 Context targetContext = getContext().createPackageContext(pkgName, 0); in getStringResource()
438 Context targetContext = getContext().createPackageContext(pkgName, 0); in getDrawableResource()
486 mSuggestionsList = new PreferenceCategory(this.getPreferenceManager().getContext()); in onSuggestionReady()
[all …]
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DContactPreference.java128 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/applications/assist/
DDefaultVoiceInputPickerPreferenceController.java52 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/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberProvider.java113 mDbHelper = BlockedNumberDatabaseHelper.getInstance(getContext()); in onCreate()
114 mBackupManager = new BackupManager(getContext()); in onCreate()
139 getContext().getContentResolver().notifyChange(blockedUri, null); in insert()
162 final String e164Number = Utils.getE164Number(getContext(), phoneNumber, in insertBlockedNumber()
210 getContext().getContentResolver().notifyChange(uri, null); in delete()
271 cursor.setNotificationUri(getContext().getContentResolver(), uri); in query()
392 final String e164Number = Utils.getE164Number(getContext(), phoneNumber, null); in unblock()
410 final String e164Number = Utils.getE164Number(getContext(), phoneNumber, null); in isEmergencyNumber()
421 final String inE164 = Utils.getE164Number(getContext(), phoneNumber, null); // may be empty. in isBlocked()
455 return getContext().getUserId() == UserHandle.USER_SYSTEM; in canCurrentUserBlockUsers()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/units/
DUnitsFuelConsumptionPreferenceController.java54 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/Dialer/java/com/android/dialer/callcomposer/
DCameraComposerFragment.java110 if (!PermissionsUtil.hasCameraPermissions(getContext())) { in onCreateView()
112 Logger.get(getContext()).logImpression(DialerImpression.Type.CAMERA_PERMISSION_DISPLAYED); in onCreateView()
120 permissionImage.setColorFilter(ThemeComponent.get(getContext()).theme().getColorPrimary()); in onCreateView()
133 if (!PermissionsUtil.hasCameraPrivacyToastShown(getContext())) { in setupCamera()
134 PermissionsUtil.showCameraPermissionToast(getContext()); in setupCamera()
196 if (PermissionsUtil.isFirstRequest(getContext(), permissions[0]) in onClick()
198 Logger.get(getContext()).logImpression(DialerImpression.Type.CAMERA_PERMISSION_REQUESTED); in onClick()
202 Logger.get(getContext()).logImpression(DialerImpression.Type.CAMERA_PERMISSION_SETTINGS); in onClick()
207 intent.setData(Uri.parse("package:" + getContext().getPackageName())); in onClick()
240 Toast.makeText(getContext(), R.string.camera_media_failure, Toast.LENGTH_LONG).show(); in onMediaFailed()
[all …]

12345678910>>...92