/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
NotificationGroupManager.java | 42 public boolean isGroupExpanded(StatusBarNotification sbn) { 43 NotificationGroup group = mGroupMap.get(sbn.getGroupKey()); 50 public void setGroupExpanded(StatusBarNotification sbn, boolean expanded) { 51 NotificationGroup group = mGroupMap.get(sbn.getGroupKey()); 73 * @param sbn the notification the entry has, which doesn't need to be the same as it's internal 77 final StatusBarNotification sbn) { 78 Notification notif = sbn.getNotification(); 79 String groupKey = sbn.getGroupKey(); 104 setGroupExpanded(sbn, false); 116 StatusBarNotification sbn = added.notification local [all...] |
PhoneStatusBar.java | 2075 final StatusBarNotification sbn = entry.entry.notification; local [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
NotificationManagerTest.java | 64 for (StatusBarNotification sbn : sbns) { 65 if (sbn.getId() != id) { 67 + sbn.getKey()); 78 for (StatusBarNotification sbn : sbns) { 79 assertFalse("canceled notification was still alive, id=" + id, sbn.getId() == id); 91 for (StatusBarNotification sbn : sbns) { 92 Log.d(TAG, " " + sbn); 120 for (StatusBarNotification sbn : sbns) { 121 if (sbn.getId() == id) return;
|
/frameworks/base/services/core/java/com/android/server/notification/ |
NotificationRecord.java | 49 final StatusBarNotification sbn; field in class:NotificationRecord 87 public NotificationRecord(StatusBarNotification sbn, int score) 89 this.sbn = sbn; 91 mOriginalFlags = sbn.getNotification().flags; 93 mCreationTimeMs = sbn.getPostTime(); 110 public Notification getNotification() { return sbn.getNotification(); } 111 public int getFlags() { return sbn.getNotification().flags; } 112 public UserHandle getUser() { return sbn.getUser(); } 113 public String getKey() { return sbn.getKey(); [all...] |
NotificationComparator.java | 35 final int leftScore = left.sbn.getScore(); 36 final int rightScore = right.sbn.getScore();
|
PackagePriorityExtractor.java | 43 record.sbn.getPackageName(), record.sbn.getUid());
|
PackageVisibilityExtractor.java | 43 record.sbn.getPackageName(), record.sbn.getUid());
|
NotificationManagerService.java | 540 StatusBarNotification sbn = r.sbn; 541 cancelNotification(callingUid, callingPid, sbn.getPackageName(), sbn.getTag(), 542 sbn.getId(), Notification.FLAG_AUTO_CANCEL, 1899 final StatusBarNotification sbn = iter.next(); local 2229 StatusBarNotification sbn = r.sbn; local 2284 StatusBarNotification sbn = r.sbn; local [all...] |
ZenModeFiltering.java | 96 return record != null && record.sbn != null && record.sbn.getNotification() != null 97 ? record.sbn.getNotification().extras : null; 193 return record != null && (isDefaultPhoneApp(record.sbn.getPackageName()) 214 return Objects.equals(defaultApp, record.sbn.getPackageName());
|
NotificationUsageStats.java | 786 writeEvent(r.sbn.getPostTime(), EVENT_TYPE_POST, r); [all...] |
/packages/experimental/NotificationListenerSample/src/com/android/example/notificationlistener/ |
Listener.java | 69 public Delta(StatusBarNotification sbn, RankingMap rankingMap) { 70 mSbn = sbn; 168 StatusBarNotification sbn = sNotifications.get(mTmpRanking.getRank()); 169 if ((sbn.getNotification().flags & Notification.FLAG_AUTO_CANCEL) != 0 && 170 sbn.getNotification().contentIntent != null) { 172 sbn.getNotification().contentIntent.send(); 174 Log.d(TAG, "failed to send intent for " + sbn.getKey(), e); 185 StatusBarNotification sbn = sNotifications.get(mTmpRanking.getRank()); 186 if (sbn.getNotification().contentIntent != null) { 188 sbn.getNotification().contentIntent.send() [all...] |
NotificationListenerActivity.java | 123 StatusBarNotification sbn = (StatusBarNotification) tag; local 124 Log.d(TAG, " on " + sbn.getKey()); 127 .putExtra(Listener.EXTRA_KEY, sbn.getKey())); 135 StatusBarNotification sbn = (StatusBarNotification) tag; local 136 Log.d(TAG, " on " + sbn.getKey()); 139 .putExtra(Listener.EXTRA_KEY, sbn.getKey())); 187 final StatusBarNotification sbn = mNotifications.get(position); local 188 final String key = sbn.getKey(); 203 StatusBarNotification sbn = mNotifications.get(position); local 209 if (sbn.getKey().equals(mUpdateKey)) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setoolsgui/networkx/algorithms/bipartite/tests/ |
test_spectral_bipartivity.py | 84 sbn=sb(G,nodes=[1,2]) 85 assert_almost_equal(sbn[1],0.85,places=2) 86 assert_almost_equal(sbn[2],0.77,places=2) 90 sbn=sb(G,nodes=[1,2]) 91 assert_almost_equal(sbn[1],0.73,places=2) 92 assert_almost_equal(sbn[2],0.82,places=2)
|
/frameworks/base/core/java/android/service/notification/ |
NotificationListenerService.java | 161 * @param sbn A data structure encapsulating the original {@link android.app.Notification} 165 public void onNotificationPosted(StatusBarNotification sbn) { 172 * @param sbn A data structure encapsulating the original {@link android.app.Notification} 178 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { 179 onNotificationPosted(sbn); 195 * @param sbn A data structure encapsulating at least the original information (tag and id) 199 public void onNotificationRemoved(StatusBarNotification sbn) { 216 * @param sbn A data structure encapsulating at least the original information (tag and id) 223 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { 224 onNotificationRemoved(sbn); 472 StatusBarNotification sbn = list.get(i); local 683 StatusBarNotification sbn; local 720 StatusBarNotification sbn; local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
NotificationData.java | 243 StatusBarNotification sbn = entry.notification; local 245 if (shouldFilterOut(sbn)) { 255 boolean shouldFilterOut(StatusBarNotification sbn) { 257 showNotificationEvenIfUnprovisioned(sbn))) { 261 if (!mEnvironment.isNotificationForCurrentProfiles(sbn)) { 265 if (sbn.getNotification().visibility == Notification.VISIBILITY_SECRET && 266 mEnvironment.shouldHideSensitiveContents(sbn.getUserId())) { 271 && mGroupManager.isChildInGroupWithSummary(sbn)) { 294 public static boolean showNotificationEvenIfUnprovisioned(StatusBarNotification sbn) { 295 return "android".equals(sbn.getPackageName() [all...] |
BaseStatusBar.java | 454 for (StatusBarNotification sbn : notifications) { 455 addNotification(sbn, currentRanking, null /* oldEntry */); 462 public void onNotificationPosted(final StatusBarNotification sbn, 464 if (DEBUG) Log.d(TAG, "onNotificationPosted: " + sbn); 465 if (sbn != null) { 470 String key = sbn.getKey(); 478 && mGroupManager.isChildInGroupWithSummary(sbn)) { 480 Log.d(TAG, "Ignoring group child due to existing summary: " + sbn); 492 updateNotification(sbn, rankingMap); 494 addNotification(sbn, rankingMap, null /* oldEntry */) 895 final StatusBarNotification sbn = row.getStatusBarNotification(); local [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
MockListener.java | 217 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { 218 if (!mTestPackages.contains(sbn.getPackageName())) { return; } 219 Log.d(TAG, "posted: " + sbn.getTag()); 220 mPosted.add(sbn.getTag()); 223 notification.put(JSON_TAG, sbn.getTag()); 224 notification.put(JSON_ID, sbn.getId()); 225 notification.put(JSON_PACKAGE, sbn.getPackageName()); 226 notification.put(JSON_WHEN, sbn.getNotification().when); 227 notification.put(JSON_ICON, sbn.getNotification().icon); 228 notification.put(JSON_FLAGS, sbn.getNotification().flags) [all...] |
/packages/apps/Settings/src/com/android/settings/notification/ |
NotificationStation.java | 193 for (StatusBarNotification sbn : resultset) { 195 info.pkg = sbn.getPackageName(); 196 info.user = sbn.getUserId(); 197 info.icon = loadIconDrawable(info.pkg, info.user, sbn.getNotification().icon); 200 if (sbn.getNotification().extras != null) { 201 info.title = sbn.getNotification().extras.getString( 204 info.title = sbn.getNotification().extras.getString( 209 info.title = sbn.getNotification().tickerText; 215 info.timestamp = sbn.getPostTime(); 216 info.priority = sbn.getNotification().priority [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/ |
TvStatusBar.java | 182 protected boolean isSnoozedPackage(StatusBarNotification sbn) {
|