| /developers/samples/android/ui/notifications/BasicNotifications/Application/src/main/java/com/example/android/basicnotifications/ |
| D | MainActivity.java | 49 NotificationCompat.Builder builder = new NotificationCompat.Builder(this); in sendNotification() local 59 builder.setSmallIcon(R.drawable.ic_stat_notification); in sendNotification() 62 builder.setContentIntent(pendingIntent); in sendNotification() 66 builder.setAutoCancel(true); in sendNotification() 74 builder.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher)); in sendNotification() 85 builder.setContentTitle("BasicNotifications Sample"); in sendNotification() 86 builder.setContentText("Time to learn about notifications!"); in sendNotification() 87 builder.setSubText("Tap to view documentation about notifications."); in sendNotification() 98 notificationManager.notify(NOTIFICATION_ID, builder.build()); in sendNotification()
|
| /developers/build/prebuilts/gradle/BasicNotifications/Application/src/main/java/com/example/android/basicnotifications/ |
| D | MainActivity.java | 49 NotificationCompat.Builder builder = new NotificationCompat.Builder(this); in sendNotification() local 59 builder.setSmallIcon(R.drawable.ic_stat_notification); in sendNotification() 62 builder.setContentIntent(pendingIntent); in sendNotification() 66 builder.setAutoCancel(true); in sendNotification() 74 builder.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher)); in sendNotification() 85 builder.setContentTitle("BasicNotifications Sample"); in sendNotification() 86 builder.setContentText("Time to learn about notifications!"); in sendNotification() 87 builder.setSubText("Tap to view documentation about notifications."); in sendNotification() 98 notificationManager.notify(NOTIFICATION_ID, builder.build()); in sendNotification()
|
| /developers/samples/android/wearable/wear/Notifications/Application/src/main/java/com/example/android/notifications/ |
| D | NotificationPresets.java | 69 NotificationCompat.Builder builder, NotificationCompat.WearableExtender wearableOptions, in applyBasicOptions() argument 71 builder.setContentTitle(options.titlePreset) in applyBasicOptions() 76 options.actionsPreset.apply(context, builder, wearableOptions); in applyBasicOptions() 77 options.priorityPreset.apply(builder, wearableOptions); in applyBasicOptions() 79 builder.setLargeIcon(BitmapFactory.decodeResource( in applyBasicOptions() 83 builder.setLocalOnly(true); in applyBasicOptions() 86 builder.setContentIntent(NotificationUtil.getExamplePendingIntent(context, in applyBasicOptions() 90 builder.setVibrate(new long[] {0, 100, 50, 100} ); in applyBasicOptions() 92 return builder; in applyBasicOptions() 103 NotificationCompat.Builder builder = new NotificationCompat.Builder(context); in buildNotifications() local [all …]
|
| D | ActionsPresets.java | 45 public void apply(Context context, NotificationCompat.Builder builder, in apply() argument 56 public void apply(Context context, NotificationCompat.Builder builder, in apply() argument 58 builder.addAction(R.drawable.ic_full_action, in apply() 72 public void apply(Context context, NotificationCompat.Builder builder, in apply() argument 74 builder.addAction(R.drawable.ic_full_action, in apply() 88 public void apply(Context context, NotificationCompat.Builder builder, in apply() argument 100 builder.addAction(action); in apply() 110 public void apply(Context context, NotificationCompat.Builder builder, in apply() argument 134 public void apply(Context context, NotificationCompat.Builder builder, in apply() argument 142 builder.addAction(phoneAction); in apply()
|
| D | PriorityPresets.java | 50 public void apply(NotificationCompat.Builder builder, in apply() argument 52 builder.setPriority(mPriority); in apply()
|
| D | PriorityPreset.java | 30 public abstract void apply(NotificationCompat.Builder builder, in apply() argument
|
| D | ActionsPreset.java | 31 public abstract void apply(Context context, NotificationCompat.Builder builder, in apply() argument
|
| /developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/recipeassistant/ |
| D | RecipeService.java | 73 NotificationCompat.Builder builder = new NotificationCompat.Builder(this); in createNotification() local 74 builder.setStyle(style); in createNotification() 75 notificationPages.add(builder.build()); in createNotification() 78 NotificationCompat.Builder builder = new NotificationCompat.Builder(this); in createNotification() local 84 builder.setLargeIcon(recipeImage); in createNotification() 86 builder.setContentTitle(mRecipe.titleText); in createNotification() 87 builder.setContentText(mRecipe.summaryText); in createNotification() 88 builder.setSmallIcon(R.mipmap.ic_notification_recipe); in createNotification() 90 Notification notification = builder in createNotification()
|
| /developers/samples/android/media/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
| D | MessageDialogFragment.java | 47 AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); in onCreateDialog() local 48 builder.setPositiveButton(android.R.string.ok, null); in onCreateDialog() 51 builder.setMessage(args.getInt(ARG_MESSAGE_INT)); in onCreateDialog() 53 builder.setMessage(args.getString(ARG_MESSAGE_STRING)); in onCreateDialog() 55 return builder.create(); in onCreateDialog()
|
| /developers/build/prebuilts/gradle/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
| D | MessageDialogFragment.java | 47 AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); in onCreateDialog() local 48 builder.setPositiveButton(android.R.string.ok, null); in onCreateDialog() 51 builder.setMessage(args.getInt(ARG_MESSAGE_INT)); in onCreateDialog() 53 builder.setMessage(args.getString(ARG_MESSAGE_STRING)); in onCreateDialog() 55 return builder.create(); in onCreateDialog()
|
| /developers/samples/android/ui/notifications/CustomNotifications/Application/src/main/java/com/example/android/customnotifications/ |
| D | MainActivity.java | 46 NotificationCompat.Builder builder = new NotificationCompat.Builder(this); in createNotification() local 55 builder.setContentIntent(intent); in createNotification() 60 builder.setTicker(getResources().getString(R.string.custom_notification)); in createNotification() 63 builder.setSmallIcon(R.drawable.ic_stat_custom); in createNotification() 68 builder.setAutoCancel(true); in createNotification() 71 Notification notification = builder.build(); in createNotification()
|
| /developers/build/prebuilts/gradle/CustomNotifications/Application/src/main/java/com/example/android/customnotifications/ |
| D | MainActivity.java | 46 NotificationCompat.Builder builder = new NotificationCompat.Builder(this); in createNotification() local 55 builder.setContentIntent(intent); in createNotification() 60 builder.setTicker(getResources().getString(R.string.custom_notification)); in createNotification() 63 builder.setSmallIcon(R.drawable.ic_stat_custom); in createNotification() 68 builder.setAutoCancel(true); in createNotification() 71 Notification notification = builder.build(); in createNotification()
|
| /developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/provider/ |
| D | FeedProvider.java | 95 SelectionBuilder builder = new SelectionBuilder(); in query() local 101 builder.where(FeedContract.Entry._ID + "=?", id); in query() 104 builder.table(FeedContract.Entry.TABLE_NAME) in query() 106 Cursor c = builder.query(db, projection, sortOrder); in query() 149 SelectionBuilder builder = new SelectionBuilder(); in delete() local 155 count = builder.table(FeedContract.Entry.TABLE_NAME) in delete() 161 count = builder.table(FeedContract.Entry.TABLE_NAME) in delete() 181 SelectionBuilder builder = new SelectionBuilder(); in update() local 187 count = builder.table(FeedContract.Entry.TABLE_NAME) in update() 193 count = builder.table(FeedContract.Entry.TABLE_NAME) in update()
|
| /developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/provider/ |
| D | FeedProvider.java | 95 SelectionBuilder builder = new SelectionBuilder(); in query() local 101 builder.where(FeedContract.Entry._ID + "=?", id); in query() 104 builder.table(FeedContract.Entry.TABLE_NAME) in query() 106 Cursor c = builder.query(db, projection, sortOrder); in query() 149 SelectionBuilder builder = new SelectionBuilder(); in delete() local 155 count = builder.table(FeedContract.Entry.TABLE_NAME) in delete() 161 count = builder.table(FeedContract.Entry.TABLE_NAME) in delete() 181 SelectionBuilder builder = new SelectionBuilder(); in update() local 187 count = builder.table(FeedContract.Entry.TABLE_NAME) in update() 193 count = builder.table(FeedContract.Entry.TABLE_NAME) in update()
|
| /developers/samples/android/background/JobScheduler/Application/src/main/java/com/example/android/jobscheduler/ |
| D | MainActivity.java | 130 JobInfo.Builder builder = new JobInfo.Builder(kJobId++, mServiceComponent); in scheduleJob() local 134 builder.setMinimumLatency(Long.valueOf(delay) * 1000); in scheduleJob() 138 builder.setOverrideDeadline(Long.valueOf(deadline) * 1000); in scheduleJob() 143 builder.setRequiredNetworkCapabilities(JobInfo.NetworkType.UNMETERED); in scheduleJob() 145 builder.setRequiredNetworkCapabilities(JobInfo.NetworkType.ANY); in scheduleJob() 147 builder.setRequiresDeviceIdle(mRequiresIdleCheckbox.isChecked()); in scheduleJob() 148 builder.setRequiresCharging(mRequiresChargingCheckBox.isChecked()); in scheduleJob() 150 mTestService.scheduleJob(builder.build()); in scheduleJob()
|
| /developers/build/prebuilts/gradle/JobScheduler/Application/src/main/java/com/example/android/jobscheduler/ |
| D | MainActivity.java | 130 JobInfo.Builder builder = new JobInfo.Builder(kJobId++, mServiceComponent); in scheduleJob() local 134 builder.setMinimumLatency(Long.valueOf(delay) * 1000); in scheduleJob() 138 builder.setOverrideDeadline(Long.valueOf(deadline) * 1000); in scheduleJob() 143 builder.setRequiredNetworkCapabilities(JobInfo.NetworkType.UNMETERED); in scheduleJob() 145 builder.setRequiredNetworkCapabilities(JobInfo.NetworkType.ANY); in scheduleJob() 147 builder.setRequiresDeviceIdle(mRequiresIdleCheckbox.isChecked()); in scheduleJob() 148 builder.setRequiresCharging(mRequiresChargingCheckBox.isChecked()); in scheduleJob() 150 mTestService.scheduleJob(builder.build()); in scheduleJob()
|
| /developers/samples/android/wearable/wear/Quiz/Wearable/src/main/java/com/example/android/quiz/ |
| D | QuizListenerService.java | 119 Notification.Builder builder = new Notification.Builder(this) in onDataChanged() local 150 builder.extend(wearableOptions); in onDataChanged() 151 Notification notification = builder.build(); in onDataChanged() 183 Notification.Builder builder = new Notification.Builder(this) in onMessageReceived() local 195 builder.setContentText(quizReportText); in onMessageReceived() 198 builder.addAction(R.drawable.ic_launcher, in onMessageReceived() 202 .notify(QUIZ_REPORT_NOTIF_ID, builder.build()); in onMessageReceived() 206 private void appendColored(SpannableStringBuilder builder, String text, int colorResId) { in appendColored() argument 207 builder.append(text).setSpan(new ForegroundColorSpan(getResources().getColor(colorResId)), in appendColored() 208 builder.length() - text.length(), builder.length(), 0); in appendColored()
|
| /developers/samples/android/sensors/BatchStepSensor/Application/ |
| D | README-CardStream.txt | 43 Card.Builder builder = new Card.Builder(UNIQUE_TAG_STRING); 45 -Set the properties for your card in the builder. Some properties (title, description, progress typ… 48 builder.setTitle(String title) 51 All actions *must* be defined through the builder. They can be hidden or shown later again, but the… 52 in the builder before .build() is called. 59 builder.addAction(actionLabel1, 0, Card.ACTION_NEUTRAL, new Card.CardActionCallback() { 69 final Card card = builder.build(activity);
|
| /developers/build/templates/CardStream/_MODULE_/ |
| D | README-CardStream.txt | 43 Card.Builder builder = new Card.Builder(UNIQUE_TAG_STRING); 45 -Set the properties for your card in the builder. Some properties (title, description, progress typ… 48 builder.setTitle(String title) 51 All actions *must* be defined through the builder. They can be hidden or shown later again, but the… 52 in the builder before .build() is called. 59 builder.addAction(actionLabel1, 0, Card.ACTION_NEUTRAL, new Card.CardActionCallback() { 69 final Card card = builder.build(activity);
|
| /developers/samples/android/wearable/wear/SynchronizedNotifications/Application/src/main/java/com/example/android/synchronizednotifications/ |
| D | SynchronizedNotificationsFragment.java | 104 NotificationCompat.Builder builder = new NotificationCompat.Builder(this.getActivity()); in buildLocalOnlyNotification() local 105 builder.setContentTitle(title) in buildLocalOnlyNotification() 115 builder.setDeleteIntent(pendingIntent); in buildLocalOnlyNotification() 117 NotificationManagerCompat.from(this.getActivity()).notify(notificationId, builder.build()); in buildLocalOnlyNotification()
|
| /developers/build/prebuilts/gradle/SynchronizedNotifications/Application/src/main/java/com/example/android/synchronizednotifications/ |
| D | SynchronizedNotificationsFragment.java | 104 NotificationCompat.Builder builder = new NotificationCompat.Builder(this.getActivity()); in buildLocalOnlyNotification() local 105 builder.setContentTitle(title) in buildLocalOnlyNotification() 115 builder.setDeleteIntent(pendingIntent); in buildLocalOnlyNotification() 117 NotificationManagerCompat.from(this.getActivity()).notify(notificationId, builder.build()); in buildLocalOnlyNotification()
|
| /developers/samples/android/wearable/wear/Notifications/Wearable/src/main/java/com/example/android/notifications/ |
| D | NotificationPresets.java | 116 Notification.Builder builder = buildBasicNotification(context); in buildNotification() local 154 builder.setStyle(style); in buildNotification() 155 return builder.build(); in buildNotification() 158 private void appendStyled(SpannableStringBuilder builder, String str, Object... spans) { in appendStyled() argument 159 builder.append(str); in appendStyled() 161 builder.setSpan(span, builder.length() - str.length(), builder.length(), 0); in appendStyled()
|
| /developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/ |
| D | UpdateRecommendationsService.java | 48 RecommendationBuilder builder = new RecommendationBuilder() in onHandleIntent() local 58 builder.setBackground(movie.getCardImageUrl()) in onHandleIntent()
|
| /developers/samples/android/wearable/wear/SpeedTracker/Application/src/main/java/com/example/android/wearable/speedtracker/ |
| D | PhoneMainActivity.java | 107 LatLngBounds.Builder builder = new LatLngBounds.Builder(); in showTrack() local 110 builder.include(latLng); in showTrack() 113 bounds = builder.build(); in showTrack()
|
| /developers/samples/android/wearable/wear/SynchronizedNotifications/Wearable/src/main/java/com/example/android/synchronizednotifications/ |
| D | NotificationUpdateService.java | 121 Notification.Builder builder = new Notification.Builder(this) in buildWearableOnlyNotification() local 131 builder.setDeleteIntent(pendingIntent); in buildWearableOnlyNotification() 135 .notify(Constants.WATCH_ONLY_ID, builder.build()); in buildWearableOnlyNotification()
|