/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | PermissionUtilsTest.java | 34 import static androidx.test.InstrumentationRegistry.getContext; 126 final Context context = getContext(); in testSelfPermissions() 156 final Context context = getContext(); in testNoIsolatedStorageIsByDefaultDenied() 166 int testAppUid = getContext().getPackageManager().getPackageUid(packageName, 0); in testDefaultPermissionsOnTestAppWithStoragePerms() 170 assertThat(checkPermissionSelf(getContext(), TEST_APP_PID, testAppUid)).isFalse(); in testDefaultPermissionsOnTestAppWithStoragePerms() 173 checkIsLegacyStorageGranted(getContext(), testAppUid, packageName, in testDefaultPermissionsOnTestAppWithStoragePerms() 176 checkPermissionInstallPackages(getContext(), TEST_APP_PID, testAppUid, in testDefaultPermissionsOnTestAppWithStoragePerms() 179 checkPermissionAccessMtp(getContext(), TEST_APP_PID, testAppUid, packageName, in testDefaultPermissionsOnTestAppWithStoragePerms() 182 checkPermissionWriteStorage(getContext(), TEST_APP_PID, testAppUid, in testDefaultPermissionsOnTestAppWithStoragePerms() 185 checkPermissionReadStorage(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/modules/Permission/service/java/com/android/role/ |
D | RoleService.java | 182 getContext().registerReceiverForAllUsers(new BroadcastReceiver() { in registerUserRemovedReceiver() 198 Context context = getContext(); in onStart() 286 RoleController controller = new RemoteRoleController(UserHandle.of(userId), getContext()); in getLegacyFallbackDisabledRolesSync() 324 if (!UserUtils.isUserExistent(userId, getContext())) { in maybeGrantDefaultRolesInternal() 374 Context context = getContext(); in getOrCreateController() 468 getContext()); in isRoleAvailableAsUser() 469 if (!UserUtils.isUserExistent(userId, getContext())) { in isRoleAvailableAsUser() 484 UserUtils.enforceCrossUserPermission(userId, false, "isRoleHeldAsUser", getContext()); in isRoleHeldAsUser() 485 if (!UserUtils.isUserExistent(userId, getContext())) { in isRoleHeldAsUser() 504 getContext()); in getRoleHoldersAsUser() [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 | 175 mEnv.getContext().getDrawable(R.drawable.ic_dialog_alert)); in update() 178 mEnv.getContext().getDrawable(R.drawable.ic_dialog_info)); in update() 195 mEnv.getContext()).getApplicationName(root.userId, root.authority); in updateToAuthenticationExceptionHeader() 196 update(null, mEnv.getContext().getString(R.string.authentication_required, appName), in updateToAuthenticationExceptionHeader() 197 mEnv.getContext().getResources().getText(R.string.sign_in), in updateToAuthenticationExceptionHeader() 198 mEnv.getContext().getDrawable(R.drawable.ic_dialog_info)); in updateToAuthenticationExceptionHeader() 208 update(mEnv.getContext().getString(R.string.directory_blocked_header_title), in updateBlockFromTreeMessage() 209 mEnv.getContext().getString(R.string.directory_blocked_header_subtitle), in updateBlockFromTreeMessage() 210 mEnv.getContext().getString(R.string.create_new_folder_button), in updateBlockFromTreeMessage() 211 mEnv.getContext().getDrawable(R.drawable.ic_dialog_info)); in updateBlockFromTreeMessage() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/ |
D | PermissionUsageGraphicPreference.java | 122 TextView centerLabel = new TextView(getContext()); in onBindViewHolder() 126 centerLabel.setText(getContext().getString(privdashLabel)); in onBindViewHolder() 139 final int colorCamera = getContext().getColor(colorCameraRes); in onBindViewHolder() 140 final int colorMicrophone = getContext().getColor(colorMicrophoneRes); in onBindViewHolder() 141 final int colorLocation = getContext().getColor(colorLocationRes); in onBindViewHolder() 142 final int colorOther = getContext().getColor(colorOtherRes); in onBindViewHolder() 150 labels = new TextView[] { new TextView(getContext()) }; in onBindViewHolder() 156 new TextView(getContext()), in onBindViewHolder() 157 new TextView(getContext()), in onBindViewHolder() 158 new TextView(getContext()), in onBindViewHolder() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/eco/ |
D | EnergyModesFragment.java | 57 mEnergyModesHelper = new EnergyModesHelper(getContext()); in onCreatePreferences() 60 PreferenceScreen screen = getPreferenceManager().createPreferenceScreen(getContext()); in onCreatePreferences() 63 Preference titlePreference = new Preference(getContext()); in onCreatePreferences() 85 mEnergyModesHelper = new EnergyModesHelper(getContext()); in onResume() 88 final String key = getContext().getString(mode.identifierRes); in onResume() 95 final RadioPreference radioPreference = new RadioPreference(getContext()); in createEnergyModeRadioPreference() 98 radioPreference.setKey(getContext().getString(mode.identifierRes)); in createEnergyModeRadioPreference() 105 ((LayerDrawable) getContext().getDrawable(R.drawable.compound_icon)); in createEnergyModeRadioPreference() 107 final Drawable icon = getContext().getDrawable(mode.iconRes); in createEnergyModeRadioPreference() 108 final ColorStateList colorStateList = getContext().getResources() in createEnergyModeRadioPreference() [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/apps/Car/Settings/src/com/android/car/settings/display/ |
D | AdaptiveBrightnessTogglePreferenceController.java | 72 if (hasUserRestrictionByDpm(getContext(), DISALLOW_CONFIG_BRIGHTNESS)) { in onCreateInternal() 75 Toast.makeText(getContext(), in onCreateInternal() 76 getContext().getString(R.string.action_unavailable), in onCreateInternal() 78 LOG.d(getContext().getString(R.string.action_unavailable)); in onCreateInternal() 86 getContext().getContentResolver().registerContentObserver(ADAPTIVE_BRIGHTNESS_URI, in onStartInternal() 93 getContext().getContentResolver().unregisterContentObserver(mAdaptiveBrightnessObserver); in onStopInternal() 106 if (hasUserRestrictionByUm(getContext(), DISALLOW_CONFIG_BRIGHTNESS) in getDefaultAvailabilityStatus() 107 || hasUserRestrictionByDpm(getContext(), DISALLOW_CONFIG_BRIGHTNESS)) { in getDefaultAvailabilityStatus() 116 Settings.System.putInt(getContext().getContentResolver(), in handlePreferenceChanged() 124 int brightnessMode = Settings.System.getInt(getContext().getContentResolver(), in isAdaptiveBrightnessChecked() [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/Car/Settings/src/com/android/car/settings/accounts/ |
D | AddAccountPreferenceController.java | 82 if (!getProfileHelper().isNewUserDisclaimerAcknolwedged(getContext())) { in onCreateInternal() 88 .runClickableWhileDisabled(getContext(), getFragmentController()); in onCreateInternal() 123 if (authorizedAccountTypes.size() == 1 && !isDeviceManaged(getContext())) { in launchAddAccount() 125 getContext().startActivity( in launchAddAccount() 126 AddAccountActivity.createAddAccountActivityIntent(getContext(), accountType)); in launchAddAccount() 134 if (isDeviceManaged(getContext()) in getDefaultAvailabilityStatus() 135 && !getProfileHelper().isNewUserDisclaimerAcknolwedged(getContext())) { in getDefaultAvailabilityStatus() 142 || hasUserRestrictionByUm(getContext(), DISALLOW_MODIFY_ACCOUNTS)) { in getDefaultAvailabilityStatus() 150 new Intent(getContext(), NewUserDisclaimerActivity.class), in startNewUserDisclaimerActivityForResult() 156 return ProfileHelper.getInstance(getContext()); in getProfileHelper() [all …]
|
/packages/modules/Permission/tests/cts/permission/telephony/src/android/permission/cts/telephony/ |
D | TelephonyManagerPermissionTest.java | 55 mHasTelephony = getContext().getPackageManager().hasSystemFeature( in setUp() 58 (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE); in setUp() 60 mAudioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); in setUp() 229 getContext().sendBroadcast(intent); in testProtectedBroadcasts() 234 getContext().sendBroadcast(intent); in testProtectedBroadcasts() 239 getContext().sendBroadcast(intent); in testProtectedBroadcasts() 245 getContext().sendBroadcast(intent); in testProtectedBroadcasts() 251 getContext().sendBroadcast(intent); in testProtectedBroadcasts() 257 getContext().sendBroadcast(intent); in testProtectedBroadcasts() 262 getContext().sendBroadcast(intent); in testProtectedBroadcasts() [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/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/modules/Permission/service/java/com/android/safetycenter/ |
D | SafetyCenterService.java | 220 new UserBroadcastReceiver().register(getContext()); in onStart() 226 .register(getContext()); in onStart() 227 new LocaleBroadcastReceiver().register(getContext()); in onStart() 270 getContext(), in newSafetyCenterPullAtomCallbackLocked() 280 requireNonNull(getContext().getSystemService(StatsManager.class)); in registerSafetyCenterPullAtomCallback() 308 getContext() in setSafetySourceData() 317 UserProfileGroup userProfileGroup = UserProfileGroup.fromUser(getContext(), userId); in setSafetySourceData() 375 getContext() in reportSafetySourceError() 384 UserProfileGroup userProfileGroup = UserProfileGroup.fromUser(getContext(), userId); in reportSafetySourceError() 411 getContext().enforceCallingPermission(MANAGE_SAFETY_CENTER, "refreshSafetySources"); in refreshSafetySources() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/ |
D | KeyboardManagementPreferenceController.java | 58 InputMethodUtil.enableInputMethod(getContext().getContentResolver(), 71 InputMethodUtil.enableInputMethod(getContext().getContentResolver(), 127 .thenComparing((InputMethodInfo a) -> InputMethodUtil.getSummaryString(getContext(), in updateState() 155 getContext().getContentResolver(), inputMethodInfo); in isInputMethodEnabled() 166 if (!inputMethodInfo.isDefault(getContext())) { in isOnlyEnabledDefaultInputMethod() 173 if (!imi.isDefault(getContext())) { in isOnlyEnabledDefaultInputMethod() 192 CarUiSwitchPreference switchPreference = new CarUiSwitchPreference(getContext()); in createSwitchPreference() 197 switchPreference.setChecked(InputMethodUtil.isInputMethodEnabled(getContext() in createSwitchPreference() 199 switchPreference.setSummary(InputMethodUtil.getSummaryString(getContext(), in createSwitchPreference() 222 InputMethodUtil.disableInputMethod(getContext(), mInputMethodManager, in createSwitchPreference() [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/Settings/src/com/android/settings/slices/ |
D | SettingsSliceProvider.java | 156 mSlicesDatabaseAccessor = new SlicesDatabaseAccessor(getContext()); in onCreateSliceProvider() 175 final Context context = getContext(); in onSlicePinned() 201 final Context context = getContext(); in onSliceUnpinned() 227 final boolean nightMode = Utils.isNightMode(getContext()); in onBindSlice() 230 … getContext().setTheme(com.android.settingslib.widget.theme.R.style.Theme_SettingsBase); in onBindSlice() 234 getContext().getTheme().rebase(); in onBindSlice() 239 final UserManager userManager = getContext().getSystemService(UserManager.class); in onBindSlice() 248 final Context context = getContext(); in onBindSlice() 257 .getNewWifiCallingSliceHelper(getContext()) in onBindSlice() 260 return ZenModeSliceBuilder.getSlice(getContext()); in onBindSlice() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | BuildNumberPreferenceController.java | 58 mDevHitCountdown = DevelopmentSettingsUtil.isDevelopmentSettingsEnabled(getContext()) in onResumeInternal() 77 if (!DevelopmentSettingsUtil.isDeviceProvisioned(getContext())) { in handlePreferenceClicked() 84 DevelopmentSettingsUtil.setDevelopmentSettingsEnabled(getContext(), true); in handlePreferenceClicked() 85 showToast(getContext().getString(R.string.show_dev_on), Toast.LENGTH_LONG); in handlePreferenceClicked() 87 showToast(StringUtil.getIcuPluralsString(getContext(), mDevHitCountdown, in handlePreferenceClicked() 91 showToast(getContext().getString(R.string.show_dev_already), Toast.LENGTH_LONG); in handlePreferenceClicked() 100 mDevHitToast = Toast.makeText(getContext(), text, duration); in showToast() 105 return getContext().getResources().getInteger( in getTapsToBecomeDeveloper() 110 return getContext().getResources().getInteger( in getTapsToShowToast()
|
D | FactoryResetEntryPreferenceController.java | 57 if (hasUserRestrictionByDpm(getContext(), DISALLOW_FACTORY_RESET)) { in onCreateInternal() 60 Toast.makeText(getContext(), getContext().getString(R.string.action_unavailable), in onCreateInternal() 69 || hasUserRestrictionByUm(getContext(), DISALLOW_FACTORY_RESET) in getDefaultAvailabilityStatus() 70 || hasUserRestrictionByDpm(getContext(), DISALLOW_FACTORY_RESET)) { in getDefaultAvailabilityStatus() 77 return EnterpriseUtils.isAdminUser(getContext()) in isAlwaysAvailableForUser() 78 || EnterpriseUtils.isDemoUser(getContext()); in isAlwaysAvailableForUser() 83 EnterpriseUtils.getActionDisabledByAdminDialog(getContext(), in showActionDisabledByAdminDialog()
|
/packages/services/Car/service-builtin/src/com/android/car/admin/ |
D | NotificationHelper.java | 112 getContext().getSystemService(NotificationManager.class).cancelAsUser(TAG, notificationId, in cancelNotificationAsUser() 119 PendingIntent pendingIntent = getPendingUserDisclaimerIntent(getContext(), in showUserDisclaimerNotification() 123 .newNotificationBuilder(getContext(), NotificationManager.IMPORTANCE_DEFAULT) in showUserDisclaimerNotification() 127 getContext().getString(R.string.new_user_managed_notification_title)) in showUserDisclaimerNotification() 128 .setContentText(ManagedDeviceTextView.getManagedDeviceText(getContext())) in showUserDisclaimerNotification() 138 getContext().getSystemService(NotificationManager.class) in showUserDisclaimerNotification() 149 getContext().getSystemService(NotificationManager.class) in cancelUserDisclaimerNotification() 151 getPendingUserDisclaimerIntent(getContext(), in cancelUserDisclaimerNotification() 181 showResourceOveruseNotificationsAsUser(getContext(), user, packagesByImportance); in showResourceOveruseNotificationsAsUser() 191 getContext().getString(R.string.config_factoryResetActivity)); in showFactoryResetNotification() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | MainFragment.java | 152 switch (FlavorUtils.getFlavor(getContext())) { in getPreferenceScreenResId() 176 getContext(), this::updateConnectivityType, getLifecycle()); in onCreate() 180 getContext(), this::updateConnectivity, getSettingsLifecycle())); in onCreate() 194 return getContext().getResources().getBoolean(R.bool.wifi_scan_optimisation_enabled); in isWifiScanOptimisationEnabled() 236 if (Partner.getInstance(getContext()).isCustomizationPackageProvided()) { in onCreatePreferences() 238 getContext(), in onCreatePreferences() 259 if (FlavorUtils.isTwoPanel(getContext())) { in onCreatePreferences() 344 final ResolveInfo info = systemIntentIsHandled(getContext(), soundIntent); in updateSoundSettings() 372 Context targetContext = getContext().createPackageContext(pkgName, 0); in getStringResource() 393 Context targetContext = getContext().createPackageContext(pkgName, 0); in getDrawableResource() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarUxRestrictionsConfigurationXmlParserTest.java | 53 private Context getContext() { in getContext() method in CarUxRestrictionsConfigurationXmlParserTest 59 CarUxRestrictionsConfigurationXmlParser.parse(getContext(), R.xml.car_ux_restrictions_map); in testParsingDefaultConfiguration() 65 getContext(), R.xml.ux_restrictions_only_parameters).get(0); in testParsingParameters() 76 getContext(), R.xml.ux_restrictions_non_moving_state).get(0); in testParsingNonMovingState() 89 getContext(), R.xml.ux_restrictions_moving_state_no_speed_range).get(0); in testParsingMovingState_NoSpeedRange() 100 getContext(), R.xml.ux_restrictions_moving_state_single_speed_range).get(0); in testParsingMovingState_SingleSpeedRange() 111 getContext(), R.xml.ux_restrictions_moving_state_single_speed_range).get(0); in testParsingMovingState_MultiSpeedRange() 125 getContext(), R.xml.ux_restrictions_passenger_mode).get(0); in testParsingPassengerState() 143 getContext(), R.xml.ux_restrictions_multi_mode).get(0); in testParsingMultipleModes() 177 getContext(), R.xml.ux_restrictions_passenger_mode).get(0); in testParsingPassengerMode_ValuesInBaselineAreNotAffected() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/qc/ |
D | MobileDataRow.java | 72 Icon icon = MobileNetworkQCUtils.getMobileNetworkSignalIcon(getContext()); in getQCItem() 75 boolean hasDpmRestrictions = EnterpriseUtils.hasUserRestrictionByDpm(getContext(), in getQCItem() 77 boolean hasUmRestrictions = EnterpriseUtils.hasUserRestrictionByUm(getContext(), in getQCItem() 82 ? QCUtils.getDisabledToastBroadcastIntent(getContext()) in getQCItem() 83 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem() 91 .setContentDescription(getContext(), R.string.mobile_network_toggle_title) in getQCItem() 95 .setTitle(getContext().getString(R.string.mobile_network_settings)) in getQCItem() 135 return getContext().getString( in getSubtitle() 139 getContext(), dataEnabled); in getSubtitle() 147 return getContext().getString( in getActionText() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | ConnectedDevicesSliceProvider.java | 107 getContext().getContentResolver() 150 getContext(), 0, settingsIntent, PendingIntent.FLAG_IMMUTABLE); in onCreatePermissionRequest() 160 Context context = getContext(); in onSlicePinned() 206 Context context = getContext(); in onSliceUnpinned() 226 getContext().getContentResolver() in onDeviceUpdated() 233 PreferenceSliceBuilder psb = new PreferenceSliceBuilder(getContext(), sliceUri); in createGeneralSlice() 248 Context context = getContext(); in createBluetoothDeviceSlice() 252 AccessoryUtils.getCachedBluetoothDevice(getContext(), device); in createBluetoothDeviceSlice() 258 PreferenceSliceBuilder psb = new PreferenceSliceBuilder(getContext(), sliceUri); in createBluetoothDeviceSlice() 415 bluetoothToggleIntent = new Intent(getContext(), BluetoothActionActivity.class); in updateBluetoothToggle() [all …]
|