Home
last modified time | relevance | path

Searched refs:n2 (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationTest.java90 Notification.Builder n2 = new Notification.Builder(mContext, "test"); in testStyleChangeVisiblyDifferent_noStyles() local
92 assertFalse(Notification.areStyledNotificationsVisiblyDifferent(n1, n2)); in testStyleChangeVisiblyDifferent_noStyles()
98 Notification.Builder n2 = new Notification.Builder(mContext, "test") in testStyleChangeVisiblyDifferent_noStyleToStyle() local
101 assertTrue(Notification.areStyledNotificationsVisiblyDifferent(n1, n2)); in testStyleChangeVisiblyDifferent_noStyleToStyle()
106 Notification.Builder n2 = new Notification.Builder(mContext, "test"); in testStyleChangeVisiblyDifferent_styleToNoStyle() local
110 assertTrue(Notification.areStyledNotificationsVisiblyDifferent(n1, n2)); in testStyleChangeVisiblyDifferent_styleToNoStyle()
117 Notification.Builder n2 = new Notification.Builder(mContext, "test") in testStyleChangeVisiblyDifferent_changeStyle() local
120 assertTrue(Notification.areStyledNotificationsVisiblyDifferent(n1, n2)); in testStyleChangeVisiblyDifferent_changeStyle()
241 Notification.Builder n2 = new Notification.Builder(mContext, "test"); in testRemoteViews_nullChange() local
242 assertTrue(Notification.areRemoteViewsChanged(n1, n2)); in testRemoteViews_nullChange()
[all …]
DNotificationHistoryDatabaseTest.java197 HistoricalNotification n2 = getHistoricalNotification(2); in testAddNotification() local
204 mDataBase.addNotification(n2); in testAddNotification()
205 assertThat(mDataBase.mBuffer.getNotificationsToWrite()).contains(n2); in testAddNotification()
212 HistoricalNotification n2 = getHistoricalNotification(2); in testAddNotification_newestFirst() local
217 mDataBase.addNotification(n2); in testAddNotification_newestFirst()
219 assertThat(mDataBase.mBuffer.getNotificationsToWrite().get(0)).isEqualTo(n2); in testAddNotification_newestFirst()
DNotificationComparatorTest.java141 Notification n2 = new Notification.Builder(mContext, TEST_CHANNEL_ID) in setUp() local
146 callPkg, 1, "highcall", callUid, callUid, n2, in setUp()
/frameworks/compile/libbcc/tests/debuginfo/host-tests/
Dpass-struct.c17 int n2[2]; member
23 s.n2[1]++; in test_struct()
24 return s.n > s.n2[0] ? s.n : s.n2[0]; in test_struct()
32 s.n2[0] = 20; in main()
33 s.n2[1] = 21; in main()
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationHistoryTest.java116 HistoricalNotification n2 = getHistoricalNotification(1); in testAddNotificationToWrite() local
118 history.addNotificationToWrite(n2); in testAddNotificationToWrite()
122 assertThat(history.getNotificationsToWrite().get(0)).isSameInstanceAs(n2); in testAddNotificationToWrite()
131 HistoricalNotification n2 = getHistoricalNotification(1); in testAddNotificationsToWrite() local
133 history.addNotificationToWrite(n2); in testAddNotificationsToWrite()
149 assertThat(history.getNotificationsToWrite().get(3)).isSameInstanceAs(n2); in testAddNotificationsToWrite()
153 assertThat(history.getPooledStringsToWrite()).asList().contains(n2.getChannelName()); in testAddNotificationsToWrite()
DNotificationTest.java120 Notification n2 = new Notification.Builder(mContext) in testHasCompletedProgress_complete() local
124 assertTrue(n2.hasCompletedProgress()); in testHasCompletedProgress_complete()
132 Notification n2 = new Notification.Builder(mContext) in testHasCompletedProgress_notComplete() local
136 assertFalse(n2.hasCompletedProgress()); in testHasCompletedProgress_notComplete()
191 Notification n2 = builder.build(); in allPendingIntents_recollectedAfterReusingBuilder() local
192 n2.writeToParcel(p, 0); in allPendingIntents_recollectedAfterReusingBuilder()
194 assertTrue(n2.allPendingIntents.contains(intent2)); in allPendingIntents_recollectedAfterReusingBuilder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DNotificationHelper.java70 Notification n2 = e2.getSbn().getNotification();
73 boolean missedCall2 = isMissedCall(n2);
85 getMessagingStyleMessages(n2);
99 return (int) (n2.when - n1.when);
/frameworks/base/core/tests/privacytests/src/android/privacy/
DLongitudinalReportingEncoderTest.java322 final int n2 = 1000; in testLongitudinalReportingEncoder_basicPRRTest() local
324 final double expectedTrueSum2 = n2 * p2; in testLongitudinalReportingEncoder_basicPRRTest()
325 final double valueRange2 = 5 * Math.sqrt(n2 * p2 * (1 - p2)); in testLongitudinalReportingEncoder_basicPRRTest()
327 for (int i = 0; i < n2; i++) { in testLongitudinalReportingEncoder_basicPRRTest()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCellularNetworkValidator.java94 new PriorityQueue((Comparator<ValidatedNetwork>) (n1, n2) -> {
95 if (n1.mValidationTimeStamp < n2.mValidationTimeStamp) {
97 } else if (n1.mValidationTimeStamp > n2.mValidationTimeStamp) {
/frameworks/base/tests/notification/src/com/android/frameworks/tests/notification/
DNotificationTests.java434 final Notification n2 = Notification.CREATOR.createFromParcel(p); in testCreate() local
436 L(" %s: parcel read=%dms", summarize(n2), time); in testCreate()
439 noMa.notify(NOTIFICATION_ID + i, n2); in testCreate()
441 L(" %s: notify=%dms", summarize(n2), time); in testCreate()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DQuaternion.java127 double n2 = 2 * (x[0] * (v2 * x[0] - (x[1] * v1 - x[2] * v0)) + s * x[3]) - v2; in rotateVec() local
129 return new double[]{n0, n1, n2}; in rotateVec()
/frameworks/base/core/java/android/text/format/
DTimeFormatter.java312 int n2 = (wallTime.getHour() % 12 != 0) ? (wallTime.getHour() % 12) : 12; in handleToken() local
313 numberFormatter.format(getFormat(modifier, "%2d", "%2d", "%d", "%02d"), n2); in handleToken() local
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberUtils.java3284 PhoneNumber n2; in areSamePhoneNumber() local
3288 n2 = util.parseAndKeepRawInput(number2, defaultCountryIso); in areSamePhoneNumber()
3293 PhoneNumberUtil.MatchType matchType = util.isNumberMatch(n1, n2); in areSamePhoneNumber()
3298 return (n1.getNationalNumber() == n2.getNationalNumber() in areSamePhoneNumber()
3299 && n1.getCountryCode() == n2.getCountryCode()); in areSamePhoneNumber()
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptGroup.java871 public int compare(Node n1, Node n2) { in calcOrder()
872 return n1.mOrder - n2.mOrder; in calcOrder()