Home
last modified time | relevance | path

Searched refs:mNotifications (Results 1 – 6 of 6) sorted by relevance

/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DObservableArrayMapTest.java33 private ArrayList<String> mNotifications = new ArrayList<>(); field in ObservableArrayMapTest
39 mNotifications.add((String) o);
49 mNotifications.clear(); in setUp()
55 assertTrue(mNotifications.isEmpty()); in testAddListener()
58 assertFalse(mNotifications.isEmpty()); in testAddListener()
67 mNotifications.clear(); in testRemoveListener()
70 assertTrue(mNotifications.isEmpty()); in testRemoveListener()
81 assertEquals(1, mNotifications.size()); in testClear()
82 assertNull(mNotifications.get(0)); in testClear()
88 assertEquals(1, mNotifications.size()); in testClear()
[all …]
DObservableArrayListTest.java40 private ArrayList<ListChange> mNotifications = new ArrayList<>(); field in ObservableArrayListTest
45 mNotifications.add(new ListChange(ALL, 0, 0));
50 mNotifications.add(new ListChange(CHANGE, start, count));
55 mNotifications.add(new ListChange(INSERT, start, count));
60 mNotifications.add(new ListChange(MOVE, from, to, count));
65 mNotifications.add(new ListChange(REMOVE, start, count));
104 mNotifications.clear(); in setUp()
110 assertTrue(mNotifications.isEmpty()); in testAddListener()
113 assertFalse(mNotifications.isEmpty()); in testAddListener()
122 mNotifications.clear(); in testRemoveListener()
[all …]
DBaseObservableTest.java28 private ArrayList<Integer> mNotifications = new ArrayList<>(); field in BaseObservableTest
33 mNotifications.add(i);
43 mNotifications.clear(); in setUp()
50 assertTrue(mNotifications.isEmpty()); in testAddCallback()
53 assertFalse(mNotifications.isEmpty()); in testAddCallback()
62 mNotifications.clear(); in testRemoveCallback()
65 assertTrue(mNotifications.isEmpty()); in testRemoveCallback()
74 assertEquals(1, mNotifications.size()); in testNotifyChange()
75 assertEquals(0, (int) mNotifications.get(0)); in testNotifyChange()
82 assertEquals(1, mNotifications.size()); in testNotifyPropertyChanged()
[all …]
/frameworks/base/tests/notification/src/com/android/frameworks/tests/notification/
DNotificationTests.java249 ArrayList<Notification> mNotifications = new ArrayList<Notification>(); in testCreate() local
255 int bigtextId = mNotifications.size(); in testCreate()
259 mNotifications.add(n); in testCreate()
262 int uploadId = mNotifications.size(); in testCreate()
266 mNotifications.add(makeUploadNotification(mContext, 0, uploadWhen)); in testCreate()
270 int phoneId = mNotifications.size(); in testCreate()
291 mNotifications.add(phoneCall); in testCreate()
304 mNotifications.add(n); in testCreate()
325 mNotifications.add(n); in testCreate()
349 mNotifications.add(n); in testCreate()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DLingerMonitor.java82 private final SparseIntArray mNotifications = new SparseIntArray(); field in LingerMonitor
112 for (int i = 0; i < mNotifications.size(); i++) { in getNotificationSource()
113 if (mNotifications.valueAt(i) == toNai.network.netId) { in getNotificationSource()
114 return mNotifications.keyAt(i); in getNotificationSource()
166 mNotifications.delete(fromNetId); in maybeStopNotifying()
203 mNotifications.put(fromNai.network.netId, toNai.network.netId); in notify()
274 mNotifications.delete(nai.network.netId); in noteDisconnect()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DNotificationController.java73 private final ArraySet<PrintJobId> mNotifications; field in NotificationController
79 mNotifications = new ArraySet<>(0); in NotificationController()
111 ArraySet<PrintJobId> removedPrintJobs = new ArraySet<>(mNotifications); in updateNotifications()
121 mNotifications.add(printJobId); in updateNotifications()
132 mNotifications.remove(removedPrintJob); in updateNotifications()