/development/samples/browseable/Geofencing/Wearable/src/com.example.android.wearable.geofencing/ |
HomeListenerService.java | 27 import android.app.Notification; 28 import android.app.Notification.Action; 76 // The user has entered a geofence - post a notification! 85 * Deletes the check-in notification when the DataItem is deleted. 87 * notification to cancel (in this case, there is at most 1 notification). 97 * Posts a local notification for the given geofence id, with an option to check in. 99 * @param dataItemUri The Uri for the DataItem that triggered this notification. Used to delete 100 * this DataItem when the notification is dismissed. 103 // Use the geofenceId to determine the title and background of the check-in notification 134 Notification notification = new Notification.Builder(this) local [all...] |
/development/samples/browseable/SkeletonWearableApp/src/com.example.android.google.wearable.app/ |
MainActivity.java | 20 import android.app.Notification; 70 * Handles the button to launch a notification. 73 Notification notification = new NotificationCompat.Builder(this) local 83 NotificationManagerCompat.from(this).notify(NOTIFICATION_ID, notification);
|
/development/samples/browseable/WearNotifications/Application/src/com.example.android.wearable.wear.wearnotifications/handlers/ |
BigTextIntentService.java | 19 import android.app.Notification; 36 * Asynchronously handles snooze and dismiss actions for reminder app (and active Notification). 37 * Notification for for reminder app uses BigTextStyle. 87 // builder globally and get the notification back to recreate it later. 98 Notification notification; local 99 notification = notificationCompatBuilder.build(); 102 if (notification != null) { 113 notificationManagerCompat.notify(MainActivity.NOTIFICATION_ID, notification); 119 * This recreates the notification from the persistent state in case the app process was killed [all...] |
MessagingIntentService.java | 19 import android.app.Notification; 38 * Asynchronously handles updating messaging app posts (and active Notification) with replies from 39 * user in a conversation. Notification for social app use MessagingStyle. 69 * Handles action for replying to messages from the notification. 79 * You have two options for updating your notification (this class uses approach #2): 81 * 1. Use a new NotificationCompatBuilder to create the Notification. This approach 83 * Notification (and updates) and pass it to the builder. This is the approach used in 86 * 2. Use the original NotificationCompatBuilder to create the Notification. This 91 * IMPORTANT NOTE: You shouldn't save/modify the resulting Notification object using 96 // Retrieves NotificationCompat.Builder used to create initial Notification 109 Notification notification = notificationCompatBuilder.build(); local [all...] |
/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/handlers/ |
BigTextIntentService.java | 19 import android.app.Notification; 37 * Asynchronously handles snooze and dismiss actions for reminder app (and active Notification). 38 * Notification for for reminder app uses BigTextStyle. 88 // builder globally and get the notification back to recreate it later. 99 Notification notification; local 100 notification = notificationCompatBuilder.build(); 103 if (notification != null) { 114 notificationManagerCompat.notify(StandaloneMainActivity.NOTIFICATION_ID, notification); 120 * This recreates the notification from the persistent state in case the app process was killed [all...] |
MessagingIntentService.java | 19 import android.app.Notification; 36 * Asynchronously handles updating messaging app posts (and active Notification) with replies from 37 * user in a conversation. Notification for social app use MessagingStyle. 67 * Handles action for replying to messages from the notification. 77 * You have two options for updating your notification (this class uses approach #2): 79 * 1. Use a new NotificationCompatBuilder to create the Notification. This approach 81 * Notification (and updates) and pass it to the builder. This is the approach used in 84 * 2. Use the original NotificationCompatBuilder to create the Notification. This 89 * IMPORTANT NOTE: You shouldn't save/modify the resulting Notification object using 94 // Retrieves NotificationCompat.Builder used to create initial Notification 107 Notification notification = notificationCompatBuilder.build(); local [all...] |
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/service/ |
ListenerService.java | 19 import android.app.Notification; 74 // Clear the local notification 109 Notification notification = new NotificationCompat.Builder(this) local 123 notificationManager.notify(Constants.WEAR_NOTIFICATION_ID, notification);
|
/external/autotest/client/site_tests/security_ptraceRestrictions/src/ |
thread-prctl.c | 48 int notification[2]; variable 79 close(notification[0]); 80 close(notification[1]); 127 close(notification[1]); 128 saw = read(notification[0], buf, 1024); 160 saw = read(notification[0], buf, 1024); 216 if (pipe(notification)<0) { 253 /* Close our end of pid notification. */ 254 close(notification[0]); 256 write(notification[1], buf, strlen(buf)) [all...] |
/external/junit/src/main/java/org/junit/runner/notification/ |
RunNotifier.java | 1 package org.junit.runner.notification;
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowAccessibilityEventTest.java | 6 import android.app.Notification; 39 final Notification notification = new Notification(); local 40 event.setParcelableData(notification); 42 assertThat(anotherEvent.getParcelableData() instanceof Notification).isEqualTo(true); 43 assertThat(anotherEvent.getParcelableData()).isEqualTo(notification);
|
ShadowNotificationBuilderTest.java | 9 import android.app.Notification; 23 private final Notification.Builder builder = new Notification.Builder(RuntimeEnvironment.application); 27 Notification notification = builder.setContentTitle("Hello").build(); local 28 assertThat(shadowOf(notification).getContentTitle().toString()).isEqualTo("Hello"); 33 Notification notification = builder.build(); local 34 assertThat(shadowOf(notification).isOngoing()).isFalse(); 39 Notification notification = builder.setOngoing(true).build() local 46 Notification notification = builder.setWhen(100).setShowWhen(true).build(); local 54 Notification notification = builder.setShowWhen(false).build(); local 61 Notification notification = builder.setContentText("Hello Text").build(); local 68 Notification notification = builder.setTicker("My ticker").build(); local 76 Notification notification = builder.build(); local 83 Notification notification = builder.setSmallIcon(R.drawable.an_image).build(); local 90 Notification notification = builder.setWhen(11L).build(); local 97 Notification notification = builder.setProgress(36, 57, true).build(); local 104 Notification notification = builder.setProgress(50, 10, false).build(); local 114 Notification notification = builder.setUsesChronometer(true).setWhen(10).setShowWhen(true).build(); local 122 Notification notification = builder.setUsesChronometer(false).setWhen(10).setShowWhen(true).build(); local 129 Notification notification = builder.setContentTitle(null).build(); local 136 Notification notification = builder.setContentText(null).build(); local 143 Notification notification = builder.setTicker(null).build(); local 150 Notification notification = builder.setContentInfo(null).build(); local 159 Notification notification = builder.addAction(0, "Action", action).build(); local 166 Notification notification = builder.setStyle(new Notification.BigTextStyle(builder) local 184 Notification notification = builder.setStyle(new Notification.BigPictureStyle(builder) local [all...] |
/external/tensorflow/tensorflow/core/kernels/data/ |
parallel_map_dataset_op.cc | 165 if (invocation_results_[i].notification) { 166 invocation_results_[i].notification->WaitForNotification(); 195 if (result->notification) { 196 result->notification->WaitForNotification(); 220 if (invocation_results_[i].notification) { 221 invocation_results_[i].notification->WaitForNotification(); 261 result->notification.reset(new Notification); 262 result->notification->Notify(); 295 std::unique_ptr<Notification> notification member in struct:tensorflow::__anon39749::ParallelMapDatasetOp::Dataset::Iterator::InvocationResult [all...] |
/frameworks/base/core/java/android/service/notification/ |
Condition.java | 17 package android.service.notification;
|
ConditionProviderService.java | 17 package android.service.notification; 49 * <action android:name="android.service.notification.ConditionProviderService" /> 78 = "android.service.notification.ConditionProviderService"; 103 public static final String EXTRA_RULE_ID = "android.service.notification.extra.RULE_ID"; 170 * Informs the notification manager that the state of a Condition has changed. Use this method 183 * Informs the notification manager that the state of one or more Conditions has changed. See 192 Log.v(TAG, "Unable to contact notification manager", ex);
|
NotificationAssistantService.java | 17 package android.service.notification; 49 = "android.service.notification.NotificationAssistantService"; 71 * A notification was snoozed until a context. For use with 73 * assistant should restore the notification with {@link #unsnoozeNotification(String)}. 75 * @param sbn the notification to snooze 82 * A notification was posted by an app. Called before post. 84 * @param sbn the new notification 93 * This might occur because the user has dismissed the notification using system UI (or another 94 * notification listener) or because the app has withdrawn the notification [all...] |
NotificationRankingUpdate.java | 16 package android.service.notification;
|
NotificationStats.java | 16 package android.service.notification; 53 * Notification has not been dismissed yet. 57 * Notification has been dismissed from a {@link NotificationListenerService} or the app 62 * Notification has been dismissed while peeking. 66 * Notification has been dismissed from always on display. 70 * Notification has been dismissed from the notification shade. 116 * Returns whether the user has seen this notification at least once. 123 * Records that the user as seen this notification at least once. 130 * Returns whether the user has expanded this notification at least once [all...] |
ScheduleCalendar.java | 17 package android.service.notification; 19 import android.service.notification.ZenModeConfig.ScheduleInfo;
|
/frameworks/base/packages/ExtServices/tests/src/android/ext/services/notification/ |
ChannelImpressionsTest.java | 17 package android.ext.services.notification; 19 import static android.ext.services.notification.ChannelImpressions.DEFAULT_DISMISS_TO_VIEW_RATIO_LIMIT; 20 import static android.ext.services.notification.ChannelImpressions.DEFAULT_STREAK_LIMIT;
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/ |
EnableZenModeDialogTest.java | 17 package com.android.settingslib.notification; 37 import android.service.notification.Condition;
|
ZenDurationDialogTest.java | 17 package com.android.settingslib.notification; 38 import android.service.notification.Condition;
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
UiBot.java | 51 * Opens the system notification and gets a given notification. 54 * @return notification object. 73 * Opens the system notification and clicks a given notification. 78 UiObject notification = getNotification(text); local 79 click(notification, "bug report notification");
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
HybridNotificationView.java | 17 package com.android.systemui.statusbar.notification; 77 public boolean transformTo(TransformState ownState, TransformableView notification, 80 TransformState otherState = notification.getCurrentState( 92 TransformableView notification, float transformationAmount) { 94 TransformState otherState = notification.getCurrentState( 131 public void transformTo(TransformableView notification, Runnable endRunnable) { 132 mTransformationHelper.transformTo(notification, endRunnable); 136 public void transformTo(TransformableView notification, float transformationAmount) { 137 mTransformationHelper.transformTo(notification, transformationAmount); 141 public void transformFrom(TransformableView notification) { [all...] |
ImageTransformState.java | 17 package com.android.systemui.statusbar.notification;
|
NotificationViewWrapper.java | 17 package com.android.systemui.statusbar.notification; 30 * Wraps the actual notification content view; used to implement behaviors which are different for 96 * @return the notification header if it exists 112 public void transformTo(TransformableView notification, Runnable endRunnable) { 118 public void transformTo(TransformableView notification, float transformationAmount) { 123 public void transformFrom(TransformableView notification) { 129 public void transformFrom(TransformableView notification, float transformationAmount) {
|