| /packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/ |
| D | ExerciseSessionFormatter.kt | 214 add(SessionHeader(context.getString(R.string.exercise_segments_header))) in <lambda>() 218 add(SessionHeader(context.getString(R.string.exercise_laps_header))) in <lambda>() 230 context.getString(R.string.session_title, record.title, type) in <lambda>() 233 context.getString(R.string.session_title, formatDuration(duration), type) in <lambda>() 260 format(context.getString(R.string.repetitions), mapOf("count" to repetitionsCount)) in <lambda>() 261 return context.getString(R.string.repetitions_format, segmentType, repetitions) in <lambda>() 267 format(context.getString(R.string.repetitions_long), mapOf("count" to repetitionsCount)) in <lambda>() 268 return context.getString(R.string.repetitions_format, segmentType, repetitions) in <lambda>() 273 EXERCISE_SEGMENT_TYPE_BACK_EXTENSION -> context.getString(R.string.back_extension) in <lambda>() 275 context.getString(R.string.barbell_shoulder_press) in <lambda>() [all …]
|
| /packages/apps/Settings/src/com/android/settings/development/tare/ |
| D | TareFactorController.java | 75 Settings.Global.getString(mContentResolver, TARE_ALARM_MANAGER_CONSTANTS); in TareFactorController() 77 Settings.Global.getString(mContentResolver, TARE_JOB_SCHEDULER_CONSTANTS); in TareFactorController() 101 new TareFactorData(mResources.getString(R.string.tare_min_balance_exempted), in initAlarmManagerMap() 105 new TareFactorData(mResources.getString(R.string.tare_min_balance_headless_app), in initAlarmManagerMap() 109 new TareFactorData(mResources.getString(R.string.tare_min_balance_other_app), in initAlarmManagerMap() 113 new TareFactorData(mResources.getString(R.string.tare_max_satiated_balance), in initAlarmManagerMap() 117 new TareFactorData(mResources.getString(R.string.tare_initial_consumption_limit), in initAlarmManagerMap() 121 new TareFactorData(mResources.getString(R.string.tare_min_consumption_limit), in initAlarmManagerMap() 125 new TareFactorData(mResources.getString(R.string.tare_max_consumption_limit), in initAlarmManagerMap() 129 new TareFactorData(mResources.getString(R.string.tare_top_activity), in initAlarmManagerMap() [all …]
|
| /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
| D | EnterpriseContactsCursorWrapperTest.java | 188 assertEquals(null, rewritten.getString(column++)); in testWrappedResults() 189 assertEquals(null, rewritten.getString(column++)); in testWrappedResults() 190 assertEquals(null, rewritten.getString(column++)); in testWrappedResults() 191 assertEquals(null, rewritten.getString(column++)); in testWrappedResults() 192 assertEquals(null, rewritten.getString(column++)); in testWrappedResults() 193 assertEquals(null, rewritten.getString(column++)); in testWrappedResults() 194 assertEquals(null, rewritten.getString(column++)); in testWrappedResults() 195 assertEquals(null, rewritten.getString(column++)); in testWrappedResults() 196 assertEquals(null, rewritten.getString(column++)); in testWrappedResults() 197 assertEquals(null, rewritten.getString(column++)); in testWrappedResults() [all …]
|
| /packages/apps/Car/Settings/src/com/android/car/settings/units/ |
| D | UnitsSettingsFragment.java | 73 context.getString(R.string.pk_units_speed), 74 context.getString(R.string.units_speed_title), 75 context.getString(R.string.units_settings))); 80 context.getString(R.string.pk_units_distance), 81 context.getString(R.string.units_distance_title), 82 context.getString(R.string.units_settings))); 87 context.getString(R.string.pk_units_fuel_consumption), 88 context.getString(R.string.units_fuel_consumption_title), 89 context.getString(R.string.units_settings))); 91 context.getString(R.string.pk_units_volume), [all …]
|
| /packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/ |
| D | DialogFragmentManager.java | 62 fragmentActivity.getString(R.string.settingsUI_dialog_opt_out_title), in showOptOutDialogFragment() 63 fragmentActivity.getString(R.string.settingsUI_dialog_opt_out_message), in showOptOutDialogFragment() 64 fragmentActivity.getString( in showOptOutDialogFragment() 66 fragmentActivity.getString(R.string.settingsUI_dialog_negative_text), in showOptOutDialogFragment() 92 fragmentActivity.getString( in showBlockTopicDialog() 96 fragmentActivity.getString( in showBlockTopicDialog() 98 fragmentActivity.getString(R.string.settingsUI_dialog_block_topic_message), in showBlockTopicDialog() 99 fragmentActivity.getString( in showBlockTopicDialog() 101 fragmentActivity.getString(R.string.settingsUI_dialog_negative_text), in showBlockTopicDialog() 119 fragmentActivity.getString( in showUnblockTopicDialog() [all …]
|
| /packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/ |
| D | DbState.java | 282 .setId(sJSON.getString("id")) in getSourceFrom() 283 .setEventId(new UnsignedLong(sJSON.getString("eventId"))) in getSourceFrom() 286 sJSON.getString("sourceType").toUpperCase(Locale.ENGLISH))) in getSourceFrom() 287 .setPublisher(Uri.parse(sJSON.getString("publisher"))) in getSourceFrom() 291 .setEnrollmentId(sJSON.getString("enrollmentId")) in getSourceFrom() 298 .setRegistrant(Uri.parse(sJSON.getString("registrant"))) in getSourceFrom() 312 .setSourceId(sdJSON.getString("sourceId")) in getSourceDestinationFrom() 313 .setDestination(sdJSON.getString("destination")) in getSourceDestinationFrom() 320 .setId(tJSON.getString("id")) in getTriggerFrom() 321 .setAttributionDestination(Uri.parse(tJSON.getString("attributionDestination"))) in getTriggerFrom() [all …]
|
| /packages/apps/Settings/src/com/android/settings/notification/zen/ |
| D | ZenModeSettings.java | 138 mContext.getString(R.string.zen_mode_other_sounds_summary), in getOtherSoundCategoriesSummary() 160 return mContext.getString(R.string.zen_mode_none_calls); in getCallsSettingSummary() 162 return mContext.getString(R.string.zen_mode_calls_summary_one, in getCallsSettingSummary() 165 return mContext.getString(R.string.zen_mode_calls_summary_two, in getCallsSettingSummary() 177 return mContext.getString(R.string.zen_mode_none_messages); in getMessagesSettingSummary() 183 return mContext.getString(R.string.zen_mode_calls_summary_two, in getMessagesSettingSummary() 197 return mContext.getString(R.string.zen_mode_sound_summary_on); in getSoundSummary() 199 return mContext.getString(R.string.zen_mode_sound_summary_on_with_info, in getSoundSummary() 204 mContext.getString(R.string.zen_mode_sound_summary_off), in getSoundSummary() 214 return mContext.getResources().getString( in getBlockedEffectsSummary() [all …]
|
| /packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/ |
| D | DeletionConfirmationDialogFragment.kt | 91 getString(R.string.confirming_question_one_day) in <lambda>() 93 getString(R.string.confirming_question_one_week) in <lambda>() 95 getString(R.string.confirming_question_one_month) in <lambda>() 96 ChosenRange.DELETE_RANGE_ALL_DATA -> getString(R.string.confirming_question_all) in <lambda>() 100 val permissionTypeLabel = getString(deletionParameters.getPermissionTypeLabel()) in <lambda>() 103 getString( in <lambda>() 106 getString( in <lambda>() 109 getString( in <lambda>() 112 getString(R.string.confirming_question_data_type_all, permissionTypeLabel) in <lambda>() 116 val categoryLabel = getString(deletionParameters.getCategoryLabel()) in <lambda>() [all …]
|
| /packages/apps/Settings/src/com/android/settings/enterprise/ |
| D | DeviceAdminStringProviderImpl.java | 42 return mDevicePolicyManager.getResources().getString(DISABLED_BY_IT_ADMIN_TITLE, in getDefaultDisabledByPolicyTitle() 43 () -> mContext.getString(R.string.disabled_by_policy_title)); in getDefaultDisabledByPolicyTitle() 48 return mContext.getString(R.string.disabled_by_policy_title_adjust_volume); in getDisallowAdjustVolumeTitle() 53 return mContext.getString(R.string.disabled_by_policy_title_outgoing_calls); in getDisallowOutgoingCallsTitle() 58 return mContext.getString(R.string.disabled_by_policy_title_sms); in getDisallowSmsTitle() 63 return mContext.getString(R.string.disabled_by_policy_title_camera); in getDisableCameraTitle() 68 return mContext.getString(R.string.disabled_by_policy_title_screen_capture); in getDisableScreenCaptureTitle() 73 return mContext.getString(R.string.disabled_by_policy_title_suspend_packages); in getSuspendPackagesTitle() 78 return mDevicePolicyManager.getResources().getString(CONTACT_YOUR_IT_ADMIN, in getDefaultDisabledByPolicyContent() 79 () -> mContext.getString(R.string.default_admin_support_msg)); in getDefaultDisabledByPolicyContent() [all …]
|
| /packages/apps/Dialer/java/com/android/dialer/voicemail/listui/error/ |
| D | OmtpVoicemailMessageCreator.java | 67 context.getString(R.string.voicemail_error_activating_title), in create() 68 context.getString(R.string.voicemail_error_activating_message), in create() 78 context.getString(R.string.voicemail_error_activation_failed_title), in create() 79 context.getString(R.string.voicemail_error_activation_failed_message), in create() 86 context.getString(R.string.voicemail_error_no_data_title), in create() 87 context.getString(R.string.voicemail_error_no_data_message), in create() 94 context.getString(R.string.voicemail_error_no_data_title), in create() 95 context.getString(R.string.voicemail_error_no_data_cellular_required_message), in create() 102 context.getString(R.string.voicemail_error_bad_config_title), in create() 103 context.getString(R.string.voicemail_error_bad_config_message), in create() [all …]
|
| D | Vvm3VoicemailMessageCreator.java | 88 context.getString(R.string.vvm3_error_vms_dns_failure_title), in create() 96 context.getString(R.string.vvm3_error_vmg_dns_failure_title), in create() 104 context.getString(R.string.vvm3_error_spg_dns_failure_title), in create() 112 context.getString(R.string.vvm3_error_vms_no_cellular_title), in create() 120 context.getString(R.string.vvm3_error_vmg_no_cellular_title), in create() 128 context.getString(R.string.vvm3_error_spg_no_cellular_title), in create() 136 context.getString(R.string.vvm3_error_vms_timeout_title), in create() 144 context.getString(R.string.vvm3_error_vmg_timeout_title), in create() 152 context.getString(R.string.vvm3_error_status_sms_timeout_title), in create() 160 context.getString(R.string.vvm3_error_subscriber_blocked_title), in create() [all …]
|
| D | VoicemailTosMessageCreator.java | 134 context.getString(R.string.dialer_terms_and_conditions_existing_user_decline), 160 context.getString(R.string.dialer_terms_and_conditions_existing_user_ack), 418 String policyUrl = context.getString(R.string.verizon_terms_and_conditions_policy_url); 420 ? context.getString(R.string.verizon_terms_and_conditions_1_1_spanish, policyUrl) 421 : context.getString(R.string.verizon_terms_and_conditions_1_1_english, policyUrl); 425 return context.getString(R.string.dialer_terms_and_conditions_for_verizon_1_0); 433 String learnMoreText = context.getString(R.string.dialer_terms_and_conditions_learn_more); 434 return context.getString(R.string.dialer_terms_and_conditions_1_0, learnMoreText); 442 String learnMoreText = context.getString(R.string.dialer_terms_and_conditions_learn_more); 443 return context.getString(R.string.dialer_terms_and_conditions_existing_user, learnMoreText); [all …]
|
| /packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
| D | DetailsHelper.java | 105 return context.getString(R.string.title); in getDetailsName() 107 return context.getString(R.string.description); in getDetailsName() 109 return context.getString(R.string.time); in getDetailsName() 111 return context.getString(R.string.location); in getDetailsName() 113 return context.getString(R.string.path); in getDetailsName() 115 return context.getString(R.string.width); in getDetailsName() 117 return context.getString(R.string.height); in getDetailsName() 119 return context.getString(R.string.orientation); in getDetailsName() 121 return context.getString(R.string.duration); in getDetailsName() 123 return context.getString(R.string.mimetype); in getDetailsName() [all …]
|
| /packages/apps/Settings/src/com/android/settings/network/telephony/ |
| D | ToggleSubscriptionDialogActivity.java | 175 getString(R.string.privileged_action_disable_sub_dialog_progress)); in onConfirm() 197 getString(R.string.sim_action_enabling_sim_without_carrier_name)); in onConfirm() 218 getString( in onConfirm() 255 getString(R.string.privileged_action_disable_fail_title), in handleSwitchToEuiccSubscriptionSidecarStateChange() 256 getString(R.string.privileged_action_disable_fail_text)); in handleSwitchToEuiccSubscriptionSidecarStateChange() 275 getString(R.string.sim_action_enable_sim_fail_title), in handleSwitchToRemovableSlotSidecarStateChange() 276 getString(R.string.sim_action_enable_sim_fail_text)); in handleSwitchToRemovableSlotSidecarStateChange() 293 getString(R.string.dsds_activation_failure_title), in handleEnableMultiSimSidecarStateChange() 294 getString(R.string.dsds_activation_failure_body_msg2)); in handleEnableMultiSimSidecarStateChange() 348 getString(R.string.sim_action_enable_dsds_title), in showEnableDsdsConfirmDialog() [all …]
|
| /packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ui/ |
| D | SafetyCenterSubpagesTest.kt | 102 InstrumentationRegistry.getArguments().getString("timeout_msec", "60000").toLong(), 148 waitPageTitleDisplayed(context.getString(sourceGroup.titleResId)) in launchSafetyCenter_withSubpagesIntentExtra_showsSubpageTitle() 171 waitPageTitleNotDisplayed(context.getString(sourceGroup.titleResId)) in launchSafetyCenter_withNonExistingGroupID_opensHomepageAsFallback() 194 context.getString(firstGroup.titleResId), in launchSafetyCenter_withMultipleGroups_showsHomepageEntries() 195 context.getString(firstGroup.summaryResId), in launchSafetyCenter_withMultipleGroups_showsHomepageEntries() 196 context.getString(lastGroup.titleResId), in launchSafetyCenter_withMultipleGroups_showsHomepageEntries() 197 context.getString(lastGroup.summaryResId) in launchSafetyCenter_withMultipleGroups_showsHomepageEntries() 200 openPageAndExit(context.getString(lastGroup.titleResId)) { in launchSafetyCenter_withMultipleGroups_showsHomepageEntries() 201 waitPageTitleDisplayed(context.getString(lastGroup.titleResId)) in launchSafetyCenter_withMultipleGroups_showsHomepageEntries() 202 waitAllTextNotDisplayed(context.getString(lastGroup.summaryResId)) in launchSafetyCenter_withMultipleGroups_showsHomepageEntries() [all …]
|
| /packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
| D | CallTypeHelper.java | 61 incomingName = resources.getString(R.string.type_incoming); in CallTypeHelper() 62 incomingPulledName = resources.getString(R.string.type_incoming_pulled); in CallTypeHelper() 63 outgoingName = resources.getString(R.string.type_outgoing); in CallTypeHelper() 64 outgoingPulledName = resources.getString(R.string.type_outgoing_pulled); in CallTypeHelper() 65 missedName = resources.getString(R.string.type_missed); in CallTypeHelper() 66 incomingVideoName = resources.getString(R.string.type_incoming_video); in CallTypeHelper() 67 incomingVideoPulledName = resources.getString(R.string.type_incoming_video_pulled); in CallTypeHelper() 68 outgoingVideoName = resources.getString(R.string.type_outgoing_video); in CallTypeHelper() 69 outgoingVideoPulledName = resources.getString(R.string.type_outgoing_video_pulled); in CallTypeHelper() 70 missedVideoName = resources.getString(R.string.type_missed_video); in CallTypeHelper() [all …]
|
| /packages/apps/Camera2/src/com/android/camera/ui/ |
| D | DetailsDialog.java | 103 ? context.getString(R.string.manual) 104 : context.getString(R.string.auto); 113 value = context.getString(R.string.flash_on); 115 value = context.getString(R.string.flash_off); 139 value = context.getString(R.string.unknown); 148 value = context.getString(R.string.unknown); 189 context, key), value, context.getString(details.getUnit(key))); 294 return context.getString(R.string.title); 296 return context.getString(R.string.description); 298 return context.getString(R.string.time); [all …]
|
| /packages/services/Telecomm/src/com/android/server/telecom/ |
| D | QuickResponseUtils.java | 99 String cannedResponse1 = oldPrefs.getString(KEY_CANNED_RESPONSE_PREF_1, in maybeMigrateLegacyQuickResponses() 100 res.getString(R.string.respond_via_sms_canned_response_1)); in maybeMigrateLegacyQuickResponses() 101 String cannedResponse2 = oldPrefs.getString(KEY_CANNED_RESPONSE_PREF_2, in maybeMigrateLegacyQuickResponses() 102 res.getString(R.string.respond_via_sms_canned_response_2)); in maybeMigrateLegacyQuickResponses() 103 String cannedResponse3 = oldPrefs.getString(KEY_CANNED_RESPONSE_PREF_3, in maybeMigrateLegacyQuickResponses() 104 res.getString(R.string.respond_via_sms_canned_response_3)); in maybeMigrateLegacyQuickResponses() 105 String cannedResponse4 = oldPrefs.getString(KEY_CANNED_RESPONSE_PREF_4, in maybeMigrateLegacyQuickResponses() 106 res.getString(R.string.respond_via_sms_canned_response_4)); in maybeMigrateLegacyQuickResponses() 132 String defaultResponse1 = res.getString(R.string.respond_via_sms_canned_response_1); in maybeResetQuickResponses() 133 String currentValue1 = prefs.getString(QuickResponseUtils.KEY_CANNED_RESPONSE_PREF_1, ""); in maybeResetQuickResponses() [all …]
|
| /packages/apps/Traceur/src/com/android/traceur/ |
| D | Receiver.java | 103 context.getString(R.string.pref_key_tracing_on), false).commit(); in onReceive() 105 context.getString(R.string.pref_key_stack_sampling_on), false).commit(); in onReceive() 115 if (prefs.getBoolean(context.getString(R.string.pref_key_stop_on_bugreport), false) && in onReceive() 116 !prefs.getBoolean(context.getString( in onReceive() 119 … prefs.edit().putBoolean(context.getString(R.string.pref_key_tracing_on), false).commit(); in onReceive() 135 prefs.getBoolean(context.getString(R.string.pref_key_tracing_on), false); in updateTracing() 137 prefs.getBoolean(context.getString(R.string.pref_key_stack_sampling_on), false); in updateTracing() 145 context.getString(R.string.pref_key_tracing_on), false).commit(); in updateTracing() 147 context.getString(R.string.pref_key_stack_sampling_on), false).commit(); in updateTracing() 171 prefs.getString(context.getString(R.string.pref_key_buffer_size), in updateTracing() [all …]
|
| /packages/apps/Dialer/java/com/android/voicemail/impl/sms/ |
| D | StatusMessage.java | 81 provisioningStatus = unquote(getString(wrappedData, OmtpConstants.PROVISIONING_STATUS)); in StatusMessage() 82 statusReturnCode = getString(wrappedData, OmtpConstants.RETURN_CODE); in StatusMessage() 83 subscriptionUrl = getString(wrappedData, OmtpConstants.SUBSCRIPTION_URL); in StatusMessage() 84 serverAddress = getString(wrappedData, OmtpConstants.SERVER_ADDRESS); in StatusMessage() 85 tuiAccessNumber = getString(wrappedData, OmtpConstants.TUI_ACCESS_NUMBER); in StatusMessage() 87 getString(wrappedData, OmtpConstants.CLIENT_SMS_DESTINATION_NUMBER); in StatusMessage() 88 imapPort = getString(wrappedData, OmtpConstants.IMAP_PORT); in StatusMessage() 89 imapUserName = getString(wrappedData, OmtpConstants.IMAP_USER_NAME); in StatusMessage() 90 imapPassword = getString(wrappedData, OmtpConstants.IMAP_PASSWORD); in StatusMessage() 91 smtpPort = getString(wrappedData, OmtpConstants.SMTP_PORT); in StatusMessage() [all …]
|
| /packages/apps/Dialer/java/com/android/incallui/contactgrid/ |
| D | TopRow.java | 96 label = context.getString(R.string.incall_video_call_operation_failed); in getInfo() 98 label = context.getString(R.string.incall_transferring); in getInfo() 105 label = context.getString(R.string.incall_remotely_held); in getInfo() 152 return context.getString(R.string.contact_grid_incoming_work_call); in getLabelForIncoming() 154 return context.getString(R.string.contact_grid_incoming_voice_call); in getLabelForIncoming() 161 context.getString(R.string.contact_grid_incoming_via_template, state.connectionLabel()); in getColoredConnectionLabel() 178 return context.getString(R.string.contact_grid_incoming_wifi_video_call); in getLabelForIncomingVideo() 180 return context.getString(R.string.contact_grid_incoming_video_call); in getLabelForIncomingVideo() 184 return context.getString(R.string.contact_grid_incoming_wifi_video_call); in getLabelForIncomingVideo() 186 return context.getString(R.string.contact_grid_incoming_video_call); in getLabelForIncomingVideo() [all …]
|
| /packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/ |
| D | ReadableArchiveTest.java | 108 if (TextUtils.equals(targetDocId, cursor.getString( in assertRowExist() 127 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DISPLAY_NAME))); in testQueryChildDocument() 129 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_MIME_TYPE))); in testQueryChildDocument() 135 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DISPLAY_NAME))); in testQueryChildDocument() 137 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_MIME_TYPE))); in testQueryChildDocument() 143 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DISPLAY_NAME))); in testQueryChildDocument() 145 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_MIME_TYPE))); in testQueryChildDocument() 156 childCursor.getString(childCursor.getColumnIndexOrThrow( in testQueryChildDocument() 159 childCursor.getString(childCursor.getColumnIndexOrThrow( in testQueryChildDocument() 162 childCursor.getString(childCursor.getColumnIndexOrThrow( in testQueryChildDocument() [all …]
|
| /packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/module/ |
| D | DefaultWallpaperPreferencesTest.kt | 54 assertThat(pref.getString(WallpaperPreferenceKeys.KEY_HOME_WALLPAPER_ATTRIB_1, null)) in setHomeStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences() 56 assertThat(pref.getString(WallpaperPreferenceKeys.KEY_HOME_WALLPAPER_ATTRIB_2, null)) in setHomeStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences() 58 assertThat(pref.getString(WallpaperPreferenceKeys.KEY_HOME_WALLPAPER_ACTION_URL, null)) in setHomeStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences() 61 pref.getString(WallpaperPreferenceKeys.KEY_HOME_WALLPAPER_ACTION_LABEL_RES, null) in setHomeStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences() 64 assertThat(pref.getString(WallpaperPreferenceKeys.KEY_HOME_WALLPAPER_ACTION_ICON_RES, null)) in setHomeStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences() 66 assertThat(pref.getString(WallpaperPreferenceKeys.KEY_HOME_WALLPAPER_COLLECTION_ID, null)) in setHomeStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences() 71 assertThat(pref.getString(NoBackupKeys.KEY_HOME_WALLPAPER_REMOTE_ID, null)) in setHomeStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences() 95 assertThat(pref.getString(WallpaperPreferenceKeys.KEY_LOCK_WALLPAPER_ATTRIB_1, null)) in setLockStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences() 97 assertThat(pref.getString(WallpaperPreferenceKeys.KEY_LOCK_WALLPAPER_ATTRIB_2, null)) in setLockStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences() 99 assertThat(pref.getString(WallpaperPreferenceKeys.KEY_LOCK_WALLPAPER_ACTION_URL, null)) in setLockStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences() [all …]
|
| /packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/utils/ |
| D | UserPrefs.java | 35 mPrefs = context.getSharedPreferences(context.getString(R.string.prefs_file_name), in UserPrefs() 45 return mPrefs.getFloat(mContext.getString(R.string.prefs_zoom_ratio_key, cameraId), in fetchZoomRatio() 53 mPrefsEditor.putFloat(mContext.getString(R.string.prefs_zoom_ratio_key, cameraId), zoom); in storeZoomRatio() 63 return mPrefs.getString(mContext.getString(R.string.prefs_camera_id_key), defaultCameraId); in fetchCameraId() 70 mPrefsEditor.putString(mContext.getString(R.string.prefs_camera_id_key), cameraId); in storeCameraId() 80 return mPrefs.getString(mContext.getString(R.string.prefs_back_camera_id_key), in fetchBackCameraId() 88 mPrefsEditor.putString(mContext.getString(R.string.prefs_back_camera_id_key), cameraId); in storeBackCameraId() 98 return mPrefs.getString(mContext.getString(R.string.prefs_front_camera_id_key), in fetchFrontCameraId() 106 mPrefsEditor.putString(mContext.getString(R.string.prefs_front_camera_id_key), cameraId); in storeFrontCameraId()
|
| /packages/services/Mtp/tests/src/com/android/mtp/ |
| D | MtpDatabaseTest.java | 78 private static String getString(Cursor cursor, String columnName) { in getString() method in MtpDatabaseTest 79 return cursor.getString(cursor.getColumnIndex(columnName)); in getString() 101 DocumentsContract.Document.MIME_TYPE_DIR, getString(cursor, COLUMN_MIME_TYPE)); in testPutSingleStorageDocuments() 102 assertEquals("Storage", getString(cursor, COLUMN_DISPLAY_NAME)); in testPutSingleStorageDocuments() 134 assertEquals("Device Storage", getString(cursor, Root.COLUMN_TITLE)); in testPutSingleStorageDocuments() 163 … assertEquals(DocumentsContract.Document.MIME_TYPE_DIR, getString(cursor, COLUMN_MIME_TYPE)); in testPutStorageDocuments() 164 assertEquals("Storage", getString(cursor, COLUMN_DISPLAY_NAME)); in testPutStorageDocuments() 175 assertEquals("Storage", getString(cursor, COLUMN_DISPLAY_NAME)); in testPutStorageDocuments() 179 assertEquals("/@#%&<>Storage", getString(cursor, COLUMN_DISPLAY_NAME)); in testPutStorageDocuments() 213 assertEquals("text/plain", getString(cursor, COLUMN_MIME_TYPE)); in testPutChildDocuments() [all …]
|