Home
last modified time | relevance | path

Searched refs:getString (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/
DBatchStepSensorFragment.java267 .setDescription(getString(R.string.warning_nobatching)); in registerEventListener()
331 .setTitle(getString(R.string.counting_title, mSteps))
332 .setDescription(getString(R.string.counting_description,
333 getString(R.string.sensor_detector), mMaxDelay, delayString));
359 .setTitle(getString(R.string.counting_title, mSteps))
360 .setDescription(getString(R.string.counting_description,
361 getString(R.string.sensor_counter), mMaxDelay, delayString));
470 sensor = getString(R.string.sensor_counter); in showCountingCards()
472 sensor = getString(R.string.sensor_detector); in showCountingCards()
476 .setTitle(getString(R.string.counting_title, 0)) in showCountingCards()
[all …]
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
DRecipe.java52 recipeStep.stepText = bundle.getString(Constants.RECIPE_FIELD_STEP_TEXT); in fromBundle()
53 recipeStep.stepImage = bundle.getString(Constants.RECIPE_FIELD_STEP_IMAGE); in fromBundle()
66 recipe.titleText = json.getString(Constants.RECIPE_FIELD_TITLE); in fromJson()
67 recipe.summaryText = json.getString(Constants.RECIPE_FIELD_SUMMARY); in fromJson()
69 recipe.recipeImage = json.getString(Constants.RECIPE_FIELD_IMAGE); in fromJson()
75 … + ingredients.getJSONObject(i).getString(Constants.RECIPE_FIELD_TEXT) + "\n"; in fromJson()
82 recipeStep.stepText = step.getString(Constants.RECIPE_FIELD_TEXT); in fromJson()
84 recipeStep.stepImage = step.getString(Constants.RECIPE_FIELD_IMAGE); in fromJson()
113 recipe.titleText = bundle.getString(Constants.RECIPE_FIELD_TITLE); in fromBundle()
114 recipe.summaryText = bundle.getString(Constants.RECIPE_FIELD_SUMMARY); in fromBundle()
[all …]
/development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/
DActionsPresets.java59 context.getString(R.string.example_action), in apply()
75 context.getString(R.string.example_action_long_title), in apply()
91 .setLabel(context.getString(R.string.example_reply_label)) in apply()
95 context.getString(R.string.example_reply_action), in apply()
113 .setLabel(context.getString(R.string.example_reply_answer_label)) in apply()
114 .setChoices(new String[] { context.getString(R.string.yes), in apply()
115 context.getString(R.string.no), context.getString(R.string.maybe) }) in apply()
119 context.getString(R.string.example_reply_action), in apply()
138 context.getString(R.string.phone_action), in apply()
145 .setLabel(context.getString(R.string.example_reply_label)) in apply()
[all …]
DNotificationPresets.java184 style.addLine(context.getString(R.string.inbox_style_example_line1)); in buildNotifications()
185 style.addLine(context.getString(R.string.inbox_style_example_line2)); in buildNotifications()
186 style.addLine(context.getString(R.string.inbox_style_example_line3)); in buildNotifications()
187 style.setBigContentTitle(context.getString(R.string.inbox_style_example_title)); in buildNotifications()
188 style.setSummaryText(context.getString(R.string.inbox_style_example_summary_text)); in buildNotifications()
211 style.setBigContentTitle(context.getString(R.string.big_picture_style_example_title)); in buildNotifications()
212 style.setSummaryText(context.getString( in buildNotifications()
234 style.bigText(context.getString(R.string.big_text_example_big_text)); in buildNotifications()
235 style.setBigContentTitle(context.getString(R.string.big_text_example_title)); in buildNotifications()
236 style.setSummaryText(context.getString(R.string.big_text_example_summary_text)); in buildNotifications()
[all …]
/development/samples/training/basic/ActivityLifecycle/src/com/example/android/lifecycle/
DActivityA.java42 mActivityName = getString(R.string.activity_a); in onCreate()
45 mStatusTracker.setStatus(mActivityName, getString(R.string.on_create)); in onCreate()
52 mStatusTracker.setStatus(mActivityName, getString(R.string.on_start)); in onStart()
59 mStatusTracker.setStatus(mActivityName, getString(R.string.on_restart)); in onRestart()
66 mStatusTracker.setStatus(mActivityName, getString(R.string.on_resume)); in onResume()
73 mStatusTracker.setStatus(mActivityName, getString(R.string.on_pause)); in onPause()
80 mStatusTracker.setStatus(mActivityName, getString(R.string.on_stop)); in onStop()
86 mStatusTracker.setStatus(mActivityName, getString(R.string.on_destroy)); in onDestroy()
DActivityB.java42 mActivityName = getString(R.string.activity_b_label); in onCreate()
45 mStatusTracker.setStatus(mActivityName, getString(R.string.on_create)); in onCreate()
52 mStatusTracker.setStatus(mActivityName, getString(R.string.on_start)); in onStart()
59 mStatusTracker.setStatus(mActivityName, getString(R.string.on_restart)); in onRestart()
66 mStatusTracker.setStatus(mActivityName, getString(R.string.on_resume)); in onResume()
73 mStatusTracker.setStatus(mActivityName, getString(R.string.on_pause)); in onPause()
80 mStatusTracker.setStatus(mActivityName, getString(R.string.on_stop)); in onStop()
86 mStatusTracker.setStatus(mActivityName, getString(R.string.on_destroy)); in onDestroy()
DActivityC.java42 mActivityName = getString(R.string.activity_c_label); in onCreate()
45 mStatusTracker.setStatus(mActivityName, getString(R.string.on_create)); in onCreate()
52 mStatusTracker.setStatus(mActivityName, getString(R.string.on_start)); in onStart()
59 mStatusTracker.setStatus(mActivityName, getString(R.string.on_restart)); in onRestart()
66 mStatusTracker.setStatus(mActivityName, getString(R.string.on_resume)); in onResume()
73 mStatusTracker.setStatus(mActivityName, getString(R.string.on_pause)); in onPause()
80 mStatusTracker.setStatus(mActivityName, getString(R.string.on_stop)); in onStop()
86 mStatusTracker.setStatus(mActivityName, getString(R.string.on_destroy)); in onDestroy()
/development/samples/training/notify-user/src/com/example/android/pingme/
DPingService.java60 Log.d(CommonConstants.DEBUG_TAG, getString(R.string.snoozing)); in onHandleIntent()
62 issueNotification(intent, getString(R.string.done_snoozing)); in onHandleIntent()
87 .setContentTitle(getString(R.string.notification)) in issueNotification()
88 .setContentText(getString(R.string.ping)) in issueNotification()
100 getString(R.string.dismiss), piDismiss) in issueNotification()
102 getString(R.string.snooze), piSnooze); in issueNotification()
136 Log.d(CommonConstants.DEBUG_TAG, getString(R.string.timer_start)); in startTimer()
141 Log.d(CommonConstants.DEBUG_TAG, getString(R.string.sleep_error)); in startTimer()
143 Log.d(CommonConstants.DEBUG_TAG, getString(R.string.timer_finished)); in startTimer()
/development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/
DAdvertiserFragment.java66 String errorMessage = getString(R.string.start_error_prefix); in onCreate()
69 errorMessage += " " + getString(R.string.start_error_already_started); in onCreate()
72 errorMessage += " " + getString(R.string.start_error_too_large); in onCreate()
75 errorMessage += " " + getString(R.string.start_error_unsupported); in onCreate()
78 errorMessage += " " + getString(R.string.start_error_internal); in onCreate()
81 errorMessage += " " + getString(R.string.start_error_too_many); in onCreate()
84 errorMessage = " " + getString(R.string.advertising_timedout); in onCreate()
87 errorMessage += " " + getString(R.string.start_error_unknown); in onCreate()
DScanResultAdapter.java80 name = mContext.getResources().getString(R.string.no_name); in getView()
133 String lastSeenText = context.getResources().getString(R.string.last_seen) + " "; in getTimeSinceString()
139 lastSeenText += context.getResources().getString(R.string.just_now); in getTimeSinceString()
142 .getString(R.string.seconds_ago); in getTimeSinceString()
148 .getString(R.string.minute_ago); in getTimeSinceString()
151 .getString(R.string.minutes_ago); in getTimeSinceString()
157 .getString(R.string.hour_ago); in getTimeSinceString()
160 .getString(R.string.hours_ago); in getTimeSinceString()
/development/samples/browseable/BasicContactables/src/com.example.android.basiccontactables/
DContactablesLoaderCallbacks.java55 String query = args.getString(QUERY_KEY); in onCreateLoader()
113 String currentLookupKey = cursor.getString(lookupColumnIndex); in onLoadFinished()
115 String displayName = cursor.getString(nameColumnIndex); in onLoadFinished()
123 String mimeType = cursor.getString(typeColumnIndex); in onLoadFinished()
125 tv.append("\tPhone Number: " + cursor.getString(phoneColumnIndex) + "\n"); in onLoadFinished()
127 tv.append("\tEmail Address: " + cursor.getString(emailColumnIndex) + "\n"); in onLoadFinished()
135 cursor.getString(cursor.getColumnIndex(column)) + "\n"); in onLoadFinished()
/development/samples/browseable/AppRestrictionSchema/src/com.example.android.apprestrictionschema/
DAppRestrictionSchemaFragment.java156 mMessage = restrictions.getString(KEY_MESSAGE); in updateMessage()
167 mTextNumber.setText(getString(R.string.your_number, number)); in updateNumber()
175 rank = restrictions.getString(KEY_RANK); in updateRank()
177 mTextRank.setText(getString(R.string.your_rank, rank)); in updateRank()
189 text = getString(R.string.none); in updateApprovals()
193 mTextApprovals.setText(getString(R.string.approvals_you_have, text)); in updateApprovals()
215 name = profile.getString(KEY_PROFILE_NAME); in updateProfile()
219 mTextProfile.setText(getString(R.string.your_profile, name, age)); in updateProfile()
244 builder.append(item.getString(KEY_ITEM_KEY)); in updateItems()
246 builder.append(item.getString(KEY_ITEM_VALUE)); in updateItems()
[all …]
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
DStorageProviderFragment.java80 Log.i(TAG, getString(mLoggedIn ? R.string.logged_in_info : R.string.logged_out_info)); in toggleLogin()
88 getActivity().getSharedPreferences(getString(R.string.app_name), in writeLoginValue()
90 sharedPreferences.edit().putBoolean(getString(R.string.key_logged_in), loggedIn).commit(); in writeLoginValue()
98 getActivity().getSharedPreferences(getString(R.string.app_name), in readLoginValue()
100 return sharedPreferences.getBoolean(getString(R.string.key_logged_in), false); in readLoginValue()
/development/samples/Support4Demos/src/com/example/android/supportv4/accessibility/
DAccessibilityRoleDescriptionSupportActivity.java46 String roleDescriptionTextView = getString(R.string.accessibility_roledescription_role); in onCreate()
51 String roleDescriptionHeading1 = getString(R.string.accessibility_roledescription_h1_role); in onCreate()
56 String roleDescriptionHeading2 = getString(R.string.accessibility_roledescription_h2_role); in onCreate()
61 String roleDescriptionHeading3 = getString(R.string.accessibility_roledescription_h3_role); in onCreate()
69 getString(R.string.accessibility_roledescription_button_role); in onCreate()
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
DRawContact.java208 final String userName = !contact.isNull("u") ? contact.getString("u") : null; in valueOf()
217 final String firstName = !contact.isNull("f") ? contact.getString("f") : null; in valueOf()
218 final String lastName = !contact.isNull("l") ? contact.getString("l") : null; in valueOf()
219 final String cellPhone = !contact.isNull("m") ? contact.getString("m") : null; in valueOf()
220 final String officePhone = !contact.isNull("o") ? contact.getString("o") : null; in valueOf()
221 final String homePhone = !contact.isNull("h") ? contact.getString("h") : null; in valueOf()
222 final String email = !contact.isNull("e") ? contact.getString("e") : null; in valueOf()
223 final String status = !contact.isNull("s") ? contact.getString("s") : null; in valueOf()
224 final String avatarUrl = !contact.isNull("a") ? contact.getString("a") : null; in valueOf()
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/
DNotificationPresets.java55 .setContentTitle(context.getString(R.string.example_content_title)) in buildBasicNotification()
56 .setContentText(context.getString(R.string.example_content_text)) in buildBasicNotification()
81 .setContentTitle(context.getString(R.string.third_page)) in buildNotification()
94 context.getString(R.string.action_a), pendingIntent)) in buildNotification()
96 context.getString(R.string.reply), pendingIntent) in buildNotification()
99 context.getString(R.string.choice_1), in buildNotification()
175 context.getString(nameResId)); in buildNotification()
196 context.getString(R.string.xsmall_sized_display)); in buildNotification()
218 context.getString(R.string.action_a), pendingIntent)) in buildNotification()
220 context.getString(R.string.action_b), pendingIntent)) in buildNotification()
[all …]
/development/apps/Development/src/com/android/development/
DSyncAdapterDriver.java165 getString(R.string.status_starting_sync_format, accountName)); in startSync()
173 getString(R.string.status_remote_exception_while_starting_sync)); in startSync()
189 mStatusTextView.setText(getString(R.string.status_canceled_sync)); in cancelSync()
193 getString(R.string.status_remote_exception_while_canceling_sync)); in cancelSync()
235 mBoundAdapterTextView.setText(getString(R.string.binding_connected_format, in onServiceConnected()
241 mBoundAdapterTextView.setText(getString(R.string.binding_not_connected)); in onServiceDisconnected()
255 mStatusTextView.setText(getString(R.string.status_received_heartbeat)); in uiThreadSendHeartbeat()
261 getString(R.string.status_sync_failed_format, result.toString())); in uiThreadOnFinished()
264 getString(R.string.status_sync_succeeded_format, result.toString())); in uiThreadOnFinished()
283 mStatusTextView.setText(getString(R.string.status_already_bound)); in initiateBind()
[all …]
/development/samples/Support4Demos/src/com/example/android/supportv4/media/model/
DMusicProvider.java122 if (track.metadata.getString(MediaMetadataCompat.METADATA_KEY_TITLE).toLowerCase() in searchMusic()
145 String oldGenre = track.metadata.getString(MediaMetadataCompat.METADATA_KEY_GENRE); in updateMusic()
146 String newGenre = metadata.getString(MediaMetadataCompat.METADATA_KEY_GENRE); in updateMusic()
205 String genre = m.metadata.getString(MediaMetadataCompat.METADATA_KEY_GENRE); in buildListsByGenre()
231 String musicId = item.getString(MediaMetadataCompat.METADATA_KEY_MEDIA_ID); in retrieveMedia()
250 String title = json.getString(JSON_TITLE); in buildFromJSON()
251 String album = json.getString(JSON_ALBUM); in buildFromJSON()
252 String artist = json.getString(JSON_ARTIST); in buildFromJSON()
253 String genre = json.getString(JSON_GENRE); in buildFromJSON()
254 String source = json.getString(JSON_SOURCE); in buildFromJSON()
[all …]
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/model/
DMusicProvider.java123 if (track.metadata.getString(MediaMetadata.METADATA_KEY_TITLE).toLowerCase() in searchMusic()
146 String oldGenre = track.metadata.getString(MediaMetadata.METADATA_KEY_GENRE); in updateMusic()
147 String newGenre = metadata.getString(MediaMetadata.METADATA_KEY_GENRE); in updateMusic()
206 String genre = m.metadata.getString(MediaMetadata.METADATA_KEY_GENRE); in buildListsByGenre()
232 String musicId = item.getString(MediaMetadata.METADATA_KEY_MEDIA_ID); in retrieveMedia()
251 String title = json.getString(JSON_TITLE); in buildFromJSON()
252 String album = json.getString(JSON_ALBUM); in buildFromJSON()
253 String artist = json.getString(JSON_ARTIST); in buildFromJSON()
254 String genre = json.getString(JSON_GENRE); in buildFromJSON()
255 String source = json.getString(JSON_SOURCE); in buildFromJSON()
[all …]
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/dialog/
DDialogExampleFragment.java38 Guidance guidance = new Guidance(getString(R.string.dialog_example_title), in onCreateGuidance()
39 getString(R.string.dialog_example_description), in onCreateGuidance()
48 .title(getString(R.string.dialog_example_button_positive)).build(); in onCreateActions()
52 .title(getString(R.string.dialog_example_button_negative)).build(); in onCreateActions()
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/wizard/
DWizardExample1stStepFragment.java39 getString(R.string.wizard_example_choose_rent_options), in onCreateGuidance()
51 getString(R.string.wizard_example_watch_hd)) in onCreateActions()
56 .title(getString(R.string.wizard_example_rent_sd)) in onCreateActions()
59 getString(R.string.wizard_example_watch_sd)) in onCreateActions()
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DGuidedStepHalfScreenActivity.java52 String title = getString(R.string.guidedstep_first_title); in onCreateGuidance()
53 String breadcrumb = getString(R.string.guidedstep_first_breadcrumb); in onCreateGuidance()
54 String description = getString(R.string.guidedstep_first_description); in onCreateGuidance()
107 String title = getString(R.string.guidedstep_second_title); in onCreateGuidance()
108 String breadcrumb = getString(R.string.guidedstep_second_breadcrumb); in onCreateGuidance()
109 String description = getString(R.string.guidedstep_second_description); in onCreateGuidance()
DGuidedStepSupportHalfScreenActivity.java54 String title = getString(R.string.guidedstep_first_title); in onCreateGuidance()
55 String breadcrumb = getString(R.string.guidedstep_first_breadcrumb); in onCreateGuidance()
56 String description = getString(R.string.guidedstep_first_description); in onCreateGuidance()
109 String title = getString(R.string.guidedstep_second_title); in onCreateGuidance()
110 String breadcrumb = getString(R.string.guidedstep_second_breadcrumb); in onCreateGuidance()
111 String description = getString(R.string.guidedstep_second_description); in onCreateGuidance()
/development/tutorials/NotepadCodeLab/Notepadv2Solution/src/com/android/demo/notepad2/
DNotepadv2.java119 i.putExtra(NotesDbAdapter.KEY_TITLE, c.getString( in onListItemClick()
121 i.putExtra(NotesDbAdapter.KEY_BODY, c.getString( in onListItemClick()
132 String title = extras.getString(NotesDbAdapter.KEY_TITLE); in onActivityResult()
133 String body = extras.getString(NotesDbAdapter.KEY_BODY); in onActivityResult()
140 String editTitle = extras.getString(NotesDbAdapter.KEY_TITLE); in onActivityResult()
141 String editBody = extras.getString(NotesDbAdapter.KEY_BODY); in onActivityResult()
/development/tutorials/NotepadCodeLab/Notepadv3/src/com/android/demo/notepad3/
DNotepadv3.java119 i.putExtra(NotesDbAdapter.KEY_TITLE, c.getString( in onListItemClick()
121 i.putExtra(NotesDbAdapter.KEY_BODY, c.getString( in onListItemClick()
132 String title = extras.getString(NotesDbAdapter.KEY_TITLE); in onActivityResult()
133 String body = extras.getString(NotesDbAdapter.KEY_BODY); in onActivityResult()
140 String editTitle = extras.getString(NotesDbAdapter.KEY_TITLE); in onActivityResult()
141 String editBody = extras.getString(NotesDbAdapter.KEY_BODY); in onActivityResult()

12345678910>>...13