/development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/ |
D | ActionsPresets.java | 41 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 …]
|
D | NotificationPresets.java | 77 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 …]
|
D | PriorityPresets.java | 27 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/ |
D | PreferencesFromCode.java | 49 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/ |
D | AlertDialogSamples.java | 86 .setTitle(R.string.alert_dialog_two_buttons_title) in onCreateDialog() 87 .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() { in onCreateDialog() 93 … .setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() { in onCreateDialog() 103 .setTitle(R.string.alert_dialog_two_buttons_title) in onCreateDialog() 104 .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() { in onCreateDialog() 108 … .setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() { in onCreateDialog() 116 .setTitle(R.string.alert_dialog_two_buttons_title) in onCreateDialog() 117 .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() { in onCreateDialog() 121 … .setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() { in onCreateDialog() 128 .setTitle(R.string.alert_dialog_two_buttons_title) in onCreateDialog() [all …]
|
D | DeviceAdminSample.java | 211 R.string.password_sufficient : R.string.password_insufficient); in reloadSummaries() 251 if (alertIfMonkey(mActivity, R.string.monkey_reset_password)) { in doResetPassword() 256 String message = mActivity.getString(R.string.reset_password_warning, newPassword); in doResetPassword() 258 builder.setPositiveButton(R.string.reset_password_ok, null); in doResetPassword() 266 return getString(R.string.status_local_global, local, global); in localGlobalSummary() 367 mActivity.getString(R.string.add_admin_extra_app_text)); in onPreferenceChange() 424 ? R.string.camera_disabled : R.string.camera_enabled); in reloadSummaries() 431 R.string.keyguard_widgets_disabled : R.string.keyguard_widgets_enabled); in reloadSummaries() 436 R.string.keyguard_secure_camera_disabled : R.string.keyguard_secure_camera_enabled); in reloadSummaries() 441 R.string.keyguard_secure_notifications_disabled in reloadSummaries() [all …]
|
D | StatusBarNotifications.java | 56 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 …]
|
D | AlarmService_Service.java | 62 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()
|
D | LocalService.java | 50 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()
|
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/ |
D | MyCloudFragment.java | 52 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/ |
D | BatchStepSensorFragment.java | 267 .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/ |
D | ShowActivity.java | 88 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/ApiDemos/src/com/example/android/apis/view/ |
D | LinearLayout8.java | 60 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/GridViewPager/Wearable/src/com.example.android.wearable.gridviewpager/ |
D | SampleGridPagerAdapter.java | 60 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/training/basic/ActivityLifecycle/src/com/example/android/lifecycle/ |
D | ActivityA.java | 42 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()
|
D | ActivityB.java | 42 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()
|
D | ActivityC.java | 42 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/ |
D | LunarLander.java | 68 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/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/ |
D | NotificationPresets.java | 55 .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/ndk/sources/android/ndk_helper/ |
D | shader.cpp | 31 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/ |
D | PingService.java | 60 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/perftests/panorama/feature_stab/src/dbregtest/ |
D | PgmImage.h | 36 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;
|
D | dbregtest.cpp | 46 void usage(string name) { in usage() 72 const string& progname, 73 string& image_list_file_name, 109 string progname(argv[0]); in main() 110 string image_list_file_name; in main() 138 string file_name; in main() 306 const string& progname, in parse_cmd_line() 307 string& image_list_file_name, in parse_cmd_line() 320 string token; in parse_cmd_line()
|
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/ |
D | MainActivity.java | 64 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/Alarm/src/com/example/android/newalarm/ |
D | AlarmService.java | 158 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()
|