Home
last modified time | relevance | path

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

12345678910>>...12

/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/
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()
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()
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/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/browseable/AppRestrictionSchema/src/com.example.android.apprestrictionschema/
DAppRestrictionSchemaFragment.java141 mMessage = restrictions.getString(KEY_MESSAGE); in updateMessage()
152 mTextNumber.setText(getString(R.string.your_number, number)); in updateNumber()
160 rank = restrictions.getString(KEY_RANK); in updateRank()
162 mTextRank.setText(getString(R.string.your_rank, rank)); in updateRank()
174 text = getString(R.string.none); in updateApprovals()
178 mTextApprovals.setText(getString(R.string.approvals_you_have, text)); in updateApprovals()
203 builder.append(item.getString(KEY_ITEM_KEY)); in updateItems()
205 builder.append(item.getString(KEY_ITEM_VALUE)); in updateItems()
208 builder.append(getString(R.string.none)); in updateItems()
211 builder.append(getString(R.string.none)); in updateItems()
[all …]
/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/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/ApiDemos/src/com/example/android/apis/os/
DTriggerSensors.java61 mTextView.append(mContext.getString(R.string.sig_motion) + "\n"); in onTrigger()
62 mTextView.append(mContext.getString(R.string.sig_motion_auto_disabled) + "\n"); in onTrigger()
78 mTextView.append(getString(R.string.sig_motion_enabled) + "\n"); in onResume()
104 mTextView.append(getString(R.string.no_sig_motion) + "\n"); in onCreate()
DSmsReceivedDialog.java53 mFromAddress = getIntent().getExtras().getString(SMS_FROM_ADDRESS_EXTRA); in onCreate()
54 mFromDisplayName = getIntent().getExtras().getString(SMS_FROM_DISPLAY_NAME_EXTRA); in onCreate()
55 mMessage = getIntent().getExtras().getString(SMS_MESSAGE_EXTRA); in onCreate()
58 getResources().getString(R.string.sms_speak_string_format), in onCreate()
/development/samples/browseable/BasicNetworking/src/com.example.android.basicnetworking/
DSimpleTextFragment.java77 getTextView().setText(getActivity().getString(stringId)); in setText()
91 mText = args.getString(TEXT_KEY); in processArguments()
95 mText = getString(mTextId); in processArguments()
/development/samples/browseable/AlwaysOn/src/com.example.android.wearable.wear.alwayson/
DMainActivity.java293 mTimeStampTextView.setText(getString(R.string.timestamp_label, currentTimeMs)); in loadDataAndUpdateScreen()
295 mStateTextView.setText(getString(R.string.mode_ambient_label)); in loadDataAndUpdateScreen()
297 getString(R.string.update_rate_label, (AMBIENT_INTERVAL_MS / 1000))); in loadDataAndUpdateScreen()
299 mDrawCountTextView.setText(getString(R.string.draw_count_label, mDrawCount)); in loadDataAndUpdateScreen()
303 mTimeStampTextView.setText(getString(R.string.timestamp_label, currentTimeMs)); in loadDataAndUpdateScreen()
305 mStateTextView.setText(getString(R.string.mode_active_label)); in loadDataAndUpdateScreen()
307 getString(R.string.update_rate_label, (ACTIVE_INTERVAL_MS / 1000))); in loadDataAndUpdateScreen()
309 mDrawCountTextView.setText(getString(R.string.draw_count_label, mDrawCount)); in loadDataAndUpdateScreen()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DDeviceAdminSample.java258 String message = mActivity.getString(R.string.reset_password_warning, newPassword); in doResetPassword()
268 return getString(R.string.status_local_global, local, global); in localGlobalSummary()
383 mActivity.getString(R.string.add_admin_extra_app_text)); in onPreferenceChange()
440 String cameraSummary = getString(mDPM.getCameraDisabled(mDeviceAdminSample) in reloadSummaries()
446 String keyguardWidgetSummary = getString( in reloadSummaries()
451 String keyguardSecureCameraSummary = getString( in reloadSummaries()
456 String keyguardSecureNotificationsSummary = getString( in reloadSummaries()
462 String keyguardUnredactedSummary = getString( in reloadSummaries()
468 String keyguardEnableTrustAgentSummary = getString( in reloadSummaries()
474 String keyguardEnableFingerprintSummary = getString( in reloadSummaries()
[all …]
/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/
DExpandingCells.java50 getResources().getString(R.string.short_lorem_ipsum)), in onCreate()
52 getResources().getString(R.string.medium_lorem_ipsum)), in onCreate()
54 getResources().getString(R.string.long_lorem_ipsum)), in onCreate()
/development/samples/browseable/AppRestrictions/src/com.example.android.apprestrictions/
DMainActivity.java94 getString(R.string.na); in onResume()
100 mRestrictionsBundle.getString(GetRestrictionsReceiver.KEY_CHOICE) : in onResume()
101 getString(R.string.na); in onResume()
108 mMultiEntryValue.setText(getString(R.string.na)); in onResume()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DMidiTools.java34 .getString(MidiDeviceInfo.PROPERTY_MANUFACTURER); in findDevice()
38 .getString(MidiDeviceInfo.PROPERTY_PRODUCT); in findDevice()

12345678910>>...12