Home
last modified time | relevance | path

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

12345678910>>...17

/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DMainActivity.java53 String title = getString(R.string.main_title); in onCreateGuidance()
54 String breadcrumb = getString(R.string.main_breadcrumb); in onCreateGuidance()
62 addAction(actions, BrowseActivity.class, R.string.browse, R.string.browse_description); in onCreateActions()
63 addAction(actions, BrowseSupportActivity.class, R.string.browse_support, in onCreateActions()
64 R.string.browse_support_description); in onCreateActions()
65 addAction(actions, SearchActivity.class, R.string.search, R.string.search_description); in onCreateActions()
66 …addAction(actions, SearchSupportActivity.class, R.string.search_support, R.string.search_support_d… in onCreateActions()
67 … addAction(actions, DetailsActivity.class, R.string.details, R.string.details_description); in onCreateActions()
70 …addAction(actions, DetailsSupportActivity.class, R.string.details_support, R.string.details_suppor… in onCreateActions()
73 addAction(actions, SearchDetailsActivity.class, R.string.search_details, in onCreateActions()
[all …]
/development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/
DActionsPresets.java41 super(R.string.no_actions); in NoActionsPreset()
52 super(R.string.single_action); in SingleActionPreset()
59 context.getString(R.string.example_action), in apply()
61 R.string.example_action_clicked)) in apply()
68 super(R.string.long_title_action); in LongTitleActionPreset()
75 context.getString(R.string.example_action_long_title), in apply()
77 R.string.example_action_clicked)) in apply()
84 super(R.string.reply_action); in ReplyActionPreset()
91 .setLabel(context.getString(R.string.example_reply_label)) in apply()
95 context.getString(R.string.example_reply_action), in apply()
[all …]
DNotificationPresets.java77 context, R.string.example_notification_deleted)); in applyBasicOptions()
89 R.string.content_intent_clicked)); in applyBasicOptions()
99 super(R.string.basic_example, R.string.example_content_title, in BasicNotificationPreset()
100 R.string.example_content_text); in BasicNotificationPreset()
116 super(R.string.stylized_text_example, R.string.example_content_title, in StylizedTextNotificationPreset()
117 R.string.example_content_text); in StylizedTextNotificationPreset()
177 super(R.string.inbox_example, R.string.example_content_title, in InboxNotificationPreset()
178 R.string.example_content_text); in InboxNotificationPreset()
184 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()
[all …]
DPriorityPresets.java27 R.string.default_priority, Notification.PRIORITY_DEFAULT);
30 new SimplePriorityPreset(R.string.min_priority, Notification.PRIORITY_MIN),
31 new SimplePriorityPreset(R.string.low_priority, Notification.PRIORITY_LOW),
33 new SimplePriorityPreset(R.string.high_priority, Notification.PRIORITY_HIGH),
34 new SimplePriorityPreset(R.string.max_priority, Notification.PRIORITY_MAX)
/development/samples/ApiDemos/src/com/example/android/apis/preference/
DPreferencesFromCode.java49 inlinePrefCat.setTitle(R.string.inline_preferences); in populatePreferenceHierarchy()
55 checkboxPref.setTitle(R.string.title_checkbox_preference); in populatePreferenceHierarchy()
56 checkboxPref.setSummary(R.string.summary_checkbox_preference); in populatePreferenceHierarchy()
62 switchPref.setTitle(R.string.title_switch_preference); in populatePreferenceHierarchy()
63 switchPref.setSummary(R.string.summary_switch_preference); in populatePreferenceHierarchy()
68 dialogBasedPrefCat.setTitle(R.string.dialog_based_preferences); in populatePreferenceHierarchy()
73 editTextPref.setDialogTitle(R.string.dialog_title_edittext_preference); in populatePreferenceHierarchy()
75 editTextPref.setTitle(R.string.title_edittext_preference); in populatePreferenceHierarchy()
76 editTextPref.setSummary(R.string.summary_edittext_preference); in populatePreferenceHierarchy()
83 listPref.setDialogTitle(R.string.dialog_title_list_preference); in populatePreferenceHierarchy()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/app/
DAlertDialogSamples.java88 .setTitle(R.string.alert_dialog_two_buttons_title) in onCreateDialog()
89 .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() { in onCreateDialog()
95 … .setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() { in onCreateDialog()
105 .setTitle(R.string.alert_dialog_two_buttons_title) in onCreateDialog()
106 .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() { in onCreateDialog()
110 … .setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() { in onCreateDialog()
118 .setTitle(R.string.alert_dialog_two_buttons_title) in onCreateDialog()
119 .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() { in onCreateDialog()
123 … .setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() { in onCreateDialog()
130 .setTitle(R.string.alert_dialog_two_buttons_title) in onCreateDialog()
[all …]
DDeviceAdminSample.java213 R.string.password_sufficient : R.string.password_insufficient); in reloadSummaries()
253 if (alertIfMonkey(mActivity, R.string.monkey_reset_password)) { in doResetPassword()
258 String message = mActivity.getString(R.string.reset_password_warning, newPassword); in doResetPassword()
260 builder.setPositiveButton(R.string.reset_password_ok, null); 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()
441 ? R.string.camera_disabled : R.string.camera_enabled); in reloadSummaries()
448 R.string.keyguard_widgets_disabled : R.string.keyguard_widgets_enabled); in reloadSummaries()
453 R.string.keyguard_secure_camera_disabled : R.string.keyguard_secure_camera_enabled); in reloadSummaries()
458 R.string.keyguard_secure_notifications_disabled in reloadSummaries()
[all …]
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
DStorageProviderFragment.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/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/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/browseable/GridViewPager/src/com.example.android.wearable.gridviewpager/
DSampleGridPagerAdapter.java60 mRows.add(new Row(cardFragment(R.string.welcome_title, R.string.welcome_text))); in SampleGridPagerAdapter()
61 mRows.add(new Row(cardFragment(R.string.about_title, R.string.about_text))); in SampleGridPagerAdapter()
63 cardFragment(R.string.cards_title, R.string.cards_text), in SampleGridPagerAdapter()
64 cardFragment(R.string.expansion_title, R.string.expansion_text))); in SampleGridPagerAdapter()
66 cardFragment(R.string.backgrounds_title, R.string.backgrounds_text), in SampleGridPagerAdapter()
67 cardFragment(R.string.columns_title, R.string.columns_text))); in SampleGridPagerAdapter()
69 mRows.add(new Row(cardFragment(R.string.dismiss_title, R.string.dismiss_text))); in SampleGridPagerAdapter()
/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()
/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()
65 super(R.string.basic_example); in BasicPreset()
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()
111 super(R.string.stylized_text_example); in StylizedTextPreset()
168 super(R.string.display_intent_example); in DisplayIntentPreset()
187 super(R.string.multisize_display_intent_example); in MultiSizeDisplayIntentPreset()
[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/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/ndk/sources/android/ndk_helper/
Dshader.cpp31 const std::map<std::string, std::string>& map_parameters ) in CompileShader() argument
42 std::string str( data.begin(), data.end() ); in CompileShader()
43 std::string str_replacement_map( data.size(), ' ' ); in CompileShader()
45 std::map<std::string, std::string>::const_iterator it = map_parameters.begin(); in CompileShader()
46 std::map<std::string, std::string>::const_iterator itEnd = map_parameters.end(); in CompileShader()
50 while( (pos = str.find( it->first, pos )) != std::string::npos ) in CompileShader()
55 if( replaced_pos == std::string::npos || replaced_pos > pos ) in CompileShader()
/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/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()
59 Toast.makeText(getActivity(), R.string.dialog_example_button_toast_positive_clicked, in onGuidedActionClicked()
62 Toast.makeText(getActivity(), R.string.dialog_example_button_toast_negative_clicked, in onGuidedActionClicked()
/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()
/development/perftests/panorama/feature_stab/src/dbregtest/
DPgmImage.h36 PgmImage(std::string filename);
66 bool ReadPGM(const std::string filename);
68 bool WritePGM(const std::string filename, const std::string comment="");
90 std::string m_comment;
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/wizard/
DWizardNewPaymentStepFragment.java40 String title = getString(R.string.wizard_example_new_payment_guidance_title); in onCreateGuidance()
41 String description = getString(R.string.wizard_example_new_payment_guidance_description); in onCreateGuidance()
53 .title(R.string.wizard_example_input_card) in onCreateActions()
55 .description(R.string.wizard_example_input_card) in onCreateActions()
63 .title(R.string.wizard_example_expiration_date) in onCreateActions()
107 action.setDescription(getString(R.string.wizard_example_visa, in onGuidedActionEditedAndProceed()
110 action.setDescription(getString(R.string.wizard_example_master, in onGuidedActionEditedAndProceed()
115 action.setDescription(getString(R.string.wizard_example_input_card)); in onGuidedActionEditedAndProceed()
118 action.setDescription(getString(R.string.wizard_example_input_credit_wrong)); in onGuidedActionEditedAndProceed()
/development/samples/Support7Demos/src/com/example/android/supportv7/app/
DAlertDialogUsage.java70 b.setTitle(R.string.dialog_title); in showSimpleDialog()
71 b.setMessage(R.string.dialog_content); in showSimpleDialog()
77 b.setTitle(R.string.dialog_title); in showSimpleButtonsDialog()
78 b.setMessage(R.string.dialog_content); in showSimpleButtonsDialog()
86 b.setTitle(R.string.dialog_title); in showSingleChoiceDialog()
94 b.setTitle(R.string.dialog_title); in showMultiChoiceDialog()
/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()

12345678910>>...17