Home
last modified time | relevance | path

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

12345678910>>...93

/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/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/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DHelpersTest.java36 IoUtils.deleteContents(getContext().getFilesDir()); in tearDown()
37 IoUtils.deleteContents(getContext().getCacheDir()); in tearDown()
43 final File expected = new File(getContext().getFilesDir(), "file.mp4"); in testGenerateSaveFile()
44 final String actual = Helpers.generateSaveFile(getContext(), in testGenerateSaveFile()
51 final File expected1 = new File(getContext().getFilesDir(), "file.txt"); in testGenerateSaveFileDupes()
52 final String actual1 = Helpers.generateSaveFile(getContext(), "http://example.com/file.txt", in testGenerateSaveFileDupes()
55 final File expected2 = new File(getContext().getFilesDir(), "file-1.txt"); in testGenerateSaveFileDupes()
56 final String actual2 = Helpers.generateSaveFile(getContext(), "http://example.com/file.txt", in testGenerateSaveFileDupes()
64 final File expected = new File(getContext().getFilesDir(), "file.mp4"); in testGenerateSaveFileNoExtension()
65 final String actual = Helpers.generateSaveFile(getContext(), in testGenerateSaveFileNoExtension()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/
DDevicePrefFragment.java87 final TvInputManager manager = (TvInputManager) getContext().getSystemService( in onCreate()
129 MainFragment.systemIntentIsHandled(getContext(), preference.getIntent()) != null); in hideIfIntentUnhandled()
133 return SecurityFragment.isRestrictedProfileInEffect(getContext()); in isRestricted()
144 getContext())); in updateDeveloperOptions()
152 mSoundsPref.setIcon(SoundFragment.getSoundEffectsEnabled(getContext().getContentResolver()) in updateSounds()
159 final ResolveInfo info = MainFragment.systemIntentIsHandled(getContext(), in updateGoogleSettings()
164 info.activityInfo.loadIcon(getContext().getPackageManager())); in updateGoogleSettings()
166 info.activityInfo.loadLabel(getContext().getPackageManager())); in updateGoogleSettings()
176 getContext(), castPref.getIntent()); in updateCastSettings()
179 final Context targetContext = getContext() in updateCastSettings()
[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.java141 preference.setMinLabel(DataUsageUtils.bytesToIecUnits(getContext(), /* byteValue= */ 0)); in updateState()
143 DataUsageUtils.bytesToIecUnits(getContext(), mDataplanTrackingThreshold)); in updateState()
148 Formatter.BytesResult usedResult = Formatter.formatBytes(getContext().getResources(), in getUsageText()
151 int textSize = getContext().getResources().getDimensionPixelSize( in getUsageText()
158 CharSequence template = getContext().getText(R.string.data_used_formatted); in getUsageText()
168 getContext().getText(R.string.cell_data_warning_and_limit), in getLimitText()
169 DataUsageUtils.bytesToIecUnits(getContext(), info.warningLevel), in getLimitText()
170 DataUsageUtils.bytesToIecUnits(getContext(), info.limitLevel)); in getLimitText()
172 return TextUtils.expandTemplate(getContext().getText(R.string.cell_data_warning), in getLimitText()
173 DataUsageUtils.bytesToIecUnits(getContext(), info.warningLevel)); in getLimitText()
[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/apps/Settings/src/com/android/settings/slices/
DSettingsSliceProvider.java138 mSlicesDatabaseAccessor = new SlicesDatabaseAccessor(getContext()); in onCreateSliceProvider()
146 final Context context = getContext(); in onSlicePinned()
171 SliceBroadcastRelay.unregisterReceivers(getContext(), sliceUri); in onSliceUnpinned()
194 final Context context = getContext(); in onBindSlice()
201 return FeatureFactory.getFactory(getContext()) in onBindSlice()
203 .getNewWifiCallingSliceHelper(getContext()) in onBindSlice()
206 return ZenModeSliceBuilder.getSlice(getContext()); in onBindSlice()
208 return BluetoothSliceBuilder.getSlice(getContext()); in onBindSlice()
210 return FeatureFactory.getFactory(getContext()) in onBindSlice()
212 .getNewEnhanced4gLteSliceHelper(getContext()) in onBindSlice()
[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/DocumentsUI/src/com/android/documentsui/dirlist/
DMessage.java113 mEnv.getContext().getDrawable(R.drawable.ic_dialog_alert)); in update()
116 mEnv.getContext().getDrawable(R.drawable.ic_dialog_info)); in update()
125 .getProvidersCache(mEnv.getContext()).getApplicationName(root.authority); in updateToAuthenticationExceptionHeader()
126 update(mEnv.getContext().getString(R.string.authentication_required, appName), in updateToAuthenticationExceptionHeader()
127 mEnv.getContext().getResources().getText(R.string.sign_in), in updateToAuthenticationExceptionHeader()
128 mEnv.getContext().getDrawable(R.drawable.ic_dialog_info)); in updateToAuthenticationExceptionHeader()
156 update(mEnv.getContext().getResources().getText(R.string.query_error), null, in updateToInflatedErrorMesage()
157 mEnv.getContext().getDrawable(R.drawable.hourglass)); in updateToInflatedErrorMesage()
161 update(mEnv.getContext().getResources().getText(R.string.cant_display_content), null, in updateToCantDisplayContentMessage()
162 mEnv.getContext().getDrawable(R.drawable.empty)); in updateToCantDisplayContentMessage()
[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/network/
DMobileDataTogglePreferenceController.java77 mSubscriptionManager = getContext().getSystemService(SubscriptionManager.class); in MobileDataTogglePreferenceController()
88 mTelephonyManager = TelephonyManager.from(getContext()).createForSubscriptionId(mSubId); in setSubId()
112 getContext().getContentResolver().registerContentObserver(getObservableUri(mSubId), in onStartInternal()
120 getContext().getContentResolver().unregisterContentObserver(mMobileDataChangeObserver); in onStopInternal()
157 NetworkUtils.setMobileDataEnabled(getContext(), mSubId, enabled, disableOtherSubscriptions); in setMobileDataEnabled()
168 if (TelephonyManager.from(getContext()).getSimCount() != 1) { in getObservableUri()
175 return new ConfirmationDialogFragment.Builder(getContext()) in getConfirmDataDisableDialog()
189 ? getContext().getResources().getString(R.string.sim_selection_required_pref) in getConfirmMultisimEnableDialog()
193 ? getContext().getResources().getString(R.string.sim_selection_required_pref) in getConfirmMultisimEnableDialog()
196 return new ConfirmationDialogFragment.Builder(getContext()) in getConfirmMultisimEnableDialog()
[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/Car/Settings/src/com/android/car/settings/inputmethod/
DKeyboardManagementPreferenceController.java56 InputMethodUtil.enableInputMethod(getContext().getContentResolver(),
69 InputMethodUtil.enableInputMethod(getContext().getContentResolver(),
125 .thenComparing((InputMethodInfo a) -> InputMethodUtil.getSummaryString(getContext(), in updateState()
159 if (!inputMethodInfo.isDefault(getContext())) { in isOnlyEnabledDefaultInputMethod()
166 if (!imi.isDefault(getContext())) { in isOnlyEnabledDefaultInputMethod()
184 SwitchPreference switchPreference = new SwitchPreference(getContext()); in createSwitchPreference()
189 switchPreference.setChecked(InputMethodUtil.isInputMethodEnabled(getContext() in createSwitchPreference()
191 switchPreference.setSummary(InputMethodUtil.getSummaryString(getContext(), in createSwitchPreference()
199 InputMethodUtil.disableInputMethod(getContext(), mInputMethodManager, in createSwitchPreference()
209 ConfirmationDialogFragment dialog = new ConfirmationDialogFragment.Builder(getContext()) in showDirectBootWarnDialog()
[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.java112 mDbHelper = BlockedNumberDatabaseHelper.getInstance(getContext()); in onCreate()
113 mBackupManager = new BackupManager(getContext()); in onCreate()
138 getContext().getContentResolver().notifyChange(blockedUri, null); in insert()
161 final String e164Number = Utils.getE164Number(getContext(), phoneNumber, in insertBlockedNumber()
209 getContext().getContentResolver().notifyChange(uri, null); in delete()
270 cursor.setNotificationUri(getContext().getContentResolver(), uri); in query()
391 final String e164Number = Utils.getE164Number(getContext(), phoneNumber, null); in unblock()
409 final String e164Number = Utils.getE164Number(getContext(), phoneNumber, null); in isEmergencyNumber()
420 final String inE164 = Utils.getE164Number(getContext(), phoneNumber, null); // may be empty. in isBlocked()
454 UserManager userManager = getContext().getSystemService(UserManager.class); in canCurrentUserBlockUsers()
[all …]
/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 …]
DGalleryComposerFragment.java87 if (!PermissionsUtil.hasPermission(getContext(), permission.READ_EXTERNAL_STORAGE)) { in onCreateView()
88 Logger.get(getContext()).logImpression(DialerImpression.Type.STORAGE_PERMISSION_DISPLAYED); in onCreateView()
97 permissionImage.setColorFilter(ThemeComponent.get(getContext()).theme().getColorPrimary()); in onCreateView()
115 DialerExecutorComponent.get(getContext()) in onActivityCreated()
138 adapter = new GalleryGridAdapter(getContext(), null, this); in setupGallery()
145 return cursorLoader = new GalleryCursorLoader(getContext()); in onCreateLoader()
169 if (PermissionsUtil.isFirstRequest(getContext(), permissions[0]) in onClick()
172 Logger.get(getContext()).logImpression(DialerImpression.Type.STORAGE_PERMISSION_REQUESTED); in onClick()
176 Logger.get(getContext()).logImpression(DialerImpression.Type.STORAGE_PERMISSION_SETTINGS); in onClick()
179 intent.setData(Uri.parse("package:" + getContext().getPackageName())); in onClick()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/
DKeyboardFragment.java93 InputMethodHelper.setDefaultInputMethodId(getContext(), (String) newValue); in onCreatePreferences()
118 final PackageManager packageManager = getContext().getPackageManager(); in updateCurrentKeyboardPreference()
120 .getEnabledSystemInputMethodList(getContext()); in updateCurrentKeyboardPreference()
125 final String defaultId = InputMethodHelper.getDefaultInputMethodId(getContext()); in updateCurrentKeyboardPreference()
144 return getPreferenceManager().getContext(); in getPreferenceContext()
149 final PackageManager packageManager = getContext().getPackageManager(); in updateKeyboardsSettings()
151 .getEnabledSystemInputMethodList(getContext()); in updateKeyboardsSettings()
169 preference.setTitle(getContext().getString(R.string.title_settings, in updateKeyboardsSettings()
215 return AutofillHelper.getAutofillCandidates(getContext(), in getAutofillCandidates()
222 DefaultAppInfo app = AutofillHelper.getCurrentAutofill(getContext(), candidates); in updateCurrentAutofillPreference()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/auto/
DAutoAppPermissionsFragment.java85 Toast.makeText(getContext(), R.string.app_not_found_dlg_title, in onCreate()
91 setHeaderLabel(getContext().getString(R.string.app_permissions)); in onCreate()
92 setAction(getContext().getString(R.string.all_permissions), v -> showAllPermissions()); in onCreate()
98 getContext().getResources().getConfiguration().getLocales().get(0)); in onCreate()
103 setPreferenceScreen(getPreferenceManager().createPreferenceScreen(getContext())); in onCreatePreferences()
132 AutoPermissionsUtils.createHeaderPreference(getContext(), in bindUi()
135 PreferenceGroup allowed = new PreferenceCategory(getContext()); in bindUi()
140 PreferenceGroup denied = new PreferenceCategory(getContext()); in bindUi()
147 Context context = getPreferenceManager().getContext(); in updatePreferences()
160 mExtraScreen.addPreference(AutoPermissionsUtils.createHeaderPreference(getContext(), in updatePreferences()
[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()

12345678910>>...93