Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 212) sorted by relevance

123456789

/development/samples/ApiDemos/src/com/example/android/apis/preference/
DPreferencesFromCode.java48 inlinePrefCat.setTitle(R.string.inline_preferences); in createPreferenceHierarchy()
54 checkboxPref.setTitle(R.string.title_checkbox_preference); in createPreferenceHierarchy()
55 checkboxPref.setSummary(R.string.summary_checkbox_preference); in createPreferenceHierarchy()
61 switchPref.setTitle(R.string.title_switch_preference); in createPreferenceHierarchy()
62 switchPref.setSummary(R.string.summary_switch_preference); in createPreferenceHierarchy()
67 dialogBasedPrefCat.setTitle(R.string.dialog_based_preferences); in createPreferenceHierarchy()
72 editTextPref.setDialogTitle(R.string.dialog_title_edittext_preference); in createPreferenceHierarchy()
74 editTextPref.setTitle(R.string.title_edittext_preference); in createPreferenceHierarchy()
75 editTextPref.setSummary(R.string.summary_edittext_preference); in createPreferenceHierarchy()
82 listPref.setDialogTitle(R.string.dialog_title_list_preference); in createPreferenceHierarchy()
[all …]
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
DMyCloudFragment.java52 item.setTitle(mLoggedIn ? R.string.log_out : R.string.log_in); in onPrepareOptionsMenu()
59 item.setTitle(mLoggedIn ? R.string.log_out : R.string.log_in); in onOptionsItemSelected()
80 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/ApiDemos/src/com/example/android/apis/app/
DAlertDialogSamples.java83 .setTitle(R.string.alert_dialog_two_buttons_title) in onCreateDialog()
84 .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() { in onCreateDialog()
90 … .setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() { in onCreateDialog()
100 .setTitle(R.string.alert_dialog_two_buttons_title) in onCreateDialog()
101 .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() { in onCreateDialog()
105 … .setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() { in onCreateDialog()
113 .setTitle(R.string.alert_dialog_two_buttons_title) in onCreateDialog()
114 .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() { in onCreateDialog()
118 … .setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() { in onCreateDialog()
126 .setTitle(R.string.alert_dialog_two_buttons_msg) in onCreateDialog()
[all …]
DDeviceAdminSample.java193 R.string.password_sufficient : R.string.password_insufficient); in reloadSummaries()
224 if (alertIfMonkey(mActivity, R.string.monkey_reset_password)) { in doResetPassword()
229 String message = mActivity.getString(R.string.reset_password_warning, newPassword); in doResetPassword()
231 builder.setPositiveButton(R.string.reset_password_ok, null); in doResetPassword()
239 return getString(R.string.status_local_global, local, global); in localGlobalSummary()
306 mActivity.getString(R.string.add_admin_extra_app_text)); in onPreferenceChange()
331 ? R.string.camera_disabled : R.string.camera_enabled); in reloadSummaries()
338 R.string.keyguard_widgets_disabled : R.string.keyguard_widgets_enabled); in reloadSummaries()
343 R.string.keyguard_secure_camera_disabled : R.string.keyguard_secure_camera_enabled); in reloadSummaries()
476 String warning = mActivity.getString(R.string.number_format_warning, valueString); in onPreferenceChange()
[all …]
DAlarmService_Service.java62 mNM.cancel(R.string.alarm_service_started); in onDestroy()
65 Toast.makeText(this, R.string.alarm_service_finished, Toast.LENGTH_SHORT).show(); in onDestroy()
100 CharSequence text = getText(R.string.alarm_service_started); in showNotification()
111 notification.setLatestEventInfo(this, getText(R.string.alarm_service_label), in showNotification()
116 mNM.notify(R.string.alarm_service_started, notification); in showNotification()
DStatusBarNotifications.java56 setMood(R.drawable.stat_happy, R.string.status_bar_notifications_happy_message, in onCreate()
64 setMood(R.drawable.stat_neutral, R.string.status_bar_notifications_ok_message, in onCreate()
72 setMood(R.drawable.stat_sad, R.string.status_bar_notifications_sad_message, false); in onCreate()
79 setMood(R.drawable.stat_happy, R.string.status_bar_notifications_happy_message, in onCreate()
87 … setMood(R.drawable.stat_neutral, R.string.status_bar_notifications_ok_message, true); in onCreate()
94 setMood(R.drawable.stat_sad, R.string.status_bar_notifications_sad_message, true); in onCreate()
101 setMoodView(R.drawable.stat_happy, R.string.status_bar_notifications_happy_message); in onCreate()
108 setMoodView(R.drawable.stat_neutral, R.string.status_bar_notifications_ok_message); in onCreate()
115 setMoodView(R.drawable.stat_sad, R.string.status_bar_notifications_sad_message); in onCreate()
205 notification.setLatestEventInfo(this, getText(R.string.status_bar_notifications_mood_title), in setMood()
[all …]
DLocalService.java50 private int NOTIFICATION = R.string.local_service_started;
85 Toast.makeText(this, R.string.local_service_stopped, Toast.LENGTH_SHORT).show(); in onDestroy()
102 CharSequence text = getText(R.string.local_service_started); in showNotification()
113 notification.setLatestEventInfo(this, getText(R.string.local_service_label), in showNotification()
DMessengerService.java130 mNM.cancel(R.string.remote_service_started); in onDestroy()
133 Toast.makeText(this, R.string.remote_service_stopped, Toast.LENGTH_SHORT).show(); in onDestroy()
150 CharSequence text = getText(R.string.remote_service_started); in showNotification()
161 notification.setLatestEventInfo(this, getText(R.string.remote_service_label), in showNotification()
166 mNM.notify(R.string.remote_service_started, notification); in showNotification()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DLinearLayout8.java60 menu.add(0, VERTICAL_ID, 0, R.string.linear_layout_8_vertical); in onCreateOptionsMenu()
61 menu.add(0, HORIZONTAL_ID, 0, R.string.linear_layout_8_horizontal); in onCreateOptionsMenu()
62 menu.add(0, TOP_ID, 0, R.string.linear_layout_8_top); in onCreateOptionsMenu()
63 menu.add(0, MIDDLE_ID, 0, R.string.linear_layout_8_middle); in onCreateOptionsMenu()
64 menu.add(0, BOTTOM_ID, 0, R.string.linear_layout_8_bottom); in onCreateOptionsMenu()
65 menu.add(0, LEFT_ID, 0, R.string.linear_layout_8_left); in onCreateOptionsMenu()
66 menu.add(0, CENTER_ID, 0, R.string.linear_layout_8_center); in onCreateOptionsMenu()
67 menu.add(0, RIGHT_ID, 0, R.string.linear_layout_8_right); in onCreateOptionsMenu()
DSeekBar1.java50 getString(R.string.seekbar_from_touch) + "=" + fromTouch); in onProgressChanged()
54 mTrackingText.setText(getString(R.string.seekbar_tracking_on)); in onStartTrackingTouch()
58 mTrackingText.setText(getString(R.string.seekbar_tracking_off)); in onStopTrackingTouch()
DRadioGroup1.java46 newRadioButton.setText(R.string.radio_group_snack); in onCreate()
54 String selection = getString(R.string.radio_group_selection); in onCreate()
65 String selection = getString(R.string.radio_group_selection); in onCheckedChanged()
66 String none = getString(R.string.radio_group_none); in onCheckedChanged()
DSecureView.java116 .setTitle(R.string.secure_view_action_dialog_title) in setClickedAction()
119 R.string.secure_view_action_dialog_dismiss), null) in setClickedAction()
131 .setTitle(R.string.secure_view_caught_dialog_title) in setTouchFilter()
132 .setMessage(R.string.secure_view_caught_dialog_message) in setTouchFilter()
134 R.string.secure_view_caught_dialog_dismiss), null) in setTouchFilter()
/development/apps/Development/src/com/android/development/
DShowActivity.java88 mLaunch.setText(getText(R.string.launch_multiple)); in onCreate()
91 mLaunch.setText(getText(R.string.launch_singleTop)); in onCreate()
94 mLaunch.setText(getText(R.string.launch_singleTask)); in onCreate()
97 mLaunch.setText(getText(R.string.launch_singleInstance)); in onCreate()
100 mLaunch.setText(getText(R.string.launch_unknown)); in onCreate()
104 ? mActivityInfo.taskAffinity : getText(R.string.none)); in onCreate()
106 ? mActivityInfo.permission : getText(R.string.none)); in onCreate()
109 ? getText(R.string.yes) : getText(R.string.no)); in onCreate()
112 ? getText(R.string.yes) : getText(R.string.no)); in onCreate()
115 ? getText(R.string.yes) : getText(R.string.no)); in onCreate()
/development/samples/training/basic/ActivityLifecycle/src/com/example/android/lifecycle/
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()
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()
/development/samples/LunarLander/src/com/example/android/lunarlander/
DLunarLander.java68 menu.add(0, MENU_START, 0, R.string.menu_start); in onCreateOptionsMenu()
69 menu.add(0, MENU_STOP, 0, R.string.menu_stop); in onCreateOptionsMenu()
70 menu.add(0, MENU_PAUSE, 0, R.string.menu_pause); in onCreateOptionsMenu()
71 menu.add(0, MENU_RESUME, 0, R.string.menu_resume); in onCreateOptionsMenu()
72 menu.add(0, MENU_EASY, 0, R.string.menu_easy); in onCreateOptionsMenu()
73 menu.add(0, MENU_MEDIUM, 0, R.string.menu_medium); in onCreateOptionsMenu()
74 menu.add(0, MENU_HARD, 0, R.string.menu_hard); in onCreateOptionsMenu()
94 getText(R.string.message_stopped)); in onOptionsItemSelected()
/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/training/AnimationsDemo/src/com/example/android/animationsdemo/
DMainActivity.java64 new Sample(R.string.title_crossfade, CrossfadeActivity.class), in onCreate()
65 new Sample(R.string.title_card_flip, CardFlipActivity.class), in onCreate()
66 new Sample(R.string.title_screen_slide, ScreenSlideActivity.class), in onCreate()
67 new Sample(R.string.title_zoom, ZoomActivity.class), in onCreate()
68 new Sample(R.string.title_layout_changes, LayoutChangesActivity.class), in onCreate()
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DImePreferences.java41 setTitle(R.string.settings_name); in onCreate()
48 setInputMethodSettingsCategoryTitle(R.string.language_selection_title); in onCreate()
49 setSubtypeEnablerTitle(R.string.select_language); in onCreate()
/development/samples/Alarm/src/com/example/android/newalarm/
DAlarmService.java158 mNotificationManager.cancel(R.string.alarm_service_started); in onDestroy()
163 R.string.alarm_service_finished, // the message to show in onDestroy()
182 CharSequence notificationText = getText(R.string.alarm_service_started); in showNotification()
203 getText(R.string.alarm_service_label), // The text to use as the label of the entry in showNotification()
212 R.string.alarm_service_started, // unique id for the mNotification in showNotification()
/development/samples/Obb/src/com/example/android/obbapp/
DObbMountActivity.java101 mStatus.setText(R.string.attempting_mount);
103 mStatus.setText(R.string.failed_to_start_mount);
106 mStatus.setText(R.string.obb_already_mounted);
119 mStatus.setText(R.string.attempting_unmount);
121 mStatus.setText(R.string.failed_to_start_unmount);
124 mStatus.setText(R.string.obb_not_mounted);
/development/samples/ApiDemos/src/com/example/android/apis/content/
DResourcesSample.java58 cs = getText(R.string.styled_text); in onCreate()
64 str = getString(R.string.styled_text); in onCreate()
79 cs = res.getText(R.string.styled_text); in onCreate()
/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()
/development/testrunner/
Dam_instrument_parser.py22 import string
91 line = line.strip(string.whitespace)
94 key = re_result.search(line).group(1).strip(string.whitespace)
97 val = re_result.search(line).group(2).strip(string.whitespace)
107 val = re_code.search(line).group(1).strip(string.whitespace)

123456789