/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | BaseContactsProvider2Test.java | 958 protected void assertStoredValues(Uri rowUri, ContentValues expectedValues) { in assertStoredValues() argument 959 assertStoredValues(rowUri, null, null, expectedValues); in assertStoredValues() 962 protected void assertStoredValues(Uri rowUri, ContentValues... expectedValues) { in assertStoredValues() argument 963 assertStoredValues(rowUri, null, null, expectedValues); in assertStoredValues() 967 ContentValues expectedValues) { in assertStoredValues() argument 972 assertCursorValues(c, expectedValues); in assertStoredValues() 981 protected void assertContainsValues(Uri rowUri, ContentValues expectedValues) { in assertContainsValues() argument 986 assertCursorValuesPartialMatch(c, expectedValues); in assertContainsValues() 995 protected void assertStoredValuesWithProjection(Uri rowUri, ContentValues expectedValues) { in assertStoredValuesWithProjection() argument 996 assertStoredValuesWithProjection(rowUri, new ContentValues[] {expectedValues}); in assertStoredValuesWithProjection() [all …]
|
D | LegacyContactsProviderTest.java | 470 ContentValues[] expectedValues = new ContentValues[1]; in testPhonesUpdate() local 471 expectedValues[0] = values; in testPhonesUpdate() 472 expectedValues[0].put(Phones.NUMBER_KEY, "36645550081"); in testPhonesUpdate() 473 assertStoredValues(uri, expectedValues); in testPhonesUpdate() 492 ContentValues[] expectedValues = new ContentValues[1]; in testPhonesFilterQuery() local 493 expectedValues[0] = values; in testPhonesFilterQuery() 494 expectedValues[0].put(Phones.NUMBER_KEY, "1144664008"); in testPhonesFilterQuery() 495 assertStoredValues(filterUri1, expectedValues); in testPhonesFilterQuery()
|
D | ContactsProvider2Test.java | 5738 ContentValues expectedValues = new ContentValues(); in testStreamItemInsertedOnStatusUpdate() local 5739 expectedValues.put(StreamItems.RAW_CONTACT_ID, rawContactId); in testStreamItemInsertedOnStatusUpdate() 5740 expectedValues.put(StreamItems.TEXT, "hacking"); in testStreamItemInsertedOnStatusUpdate() 5744 expectedValues); in testStreamItemInsertedOnStatusUpdate() local 5760 ContentValues expectedValues = new ContentValues(); in testStreamItemInsertedOnStatusUpdate_HtmlQuoting() local 5761 expectedValues.put(StreamItems.RAW_CONTACT_ID, rawContactId); in testStreamItemInsertedOnStatusUpdate_HtmlQuoting() 5762 expectedValues.put(StreamItems.TEXT, "& <b> test &#39;"); in testStreamItemInsertedOnStatusUpdate_HtmlQuoting() 5766 expectedValues); in testStreamItemInsertedOnStatusUpdate_HtmlQuoting() local 5783 ContentValues expectedValues = new ContentValues(); in testStreamItemUpdatedOnSecondStatusUpdate() local 5784 expectedValues.put(StreamItems.RAW_CONTACT_ID, rawContactId); in testStreamItemUpdatedOnSecondStatusUpdate() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardManagerTest.java | 529 final List<Integer> expectedValues = Arrays.asList(VIEW_TYPE_FULL_WIDTH, in getCardsWithViewType_twoConsecutiveSuggestionCards_shouldHaveTwoHalfCards() local 538 assertThat(result.get(i).getViewType()).isEqualTo(expectedValues.get(i)); in getCardsWithViewType_twoConsecutiveSuggestionCards_shouldHaveTwoHalfCards() 574 final List<Integer> expectedValues = Arrays.asList(VIEW_TYPE_FULL_WIDTH, in getCardsWithViewType_threeConsecutiveSuggestionCards_shouldHaveTwoHalfCards() local 583 assertThat(result.get(i).getViewType()).isEqualTo(expectedValues.get(i)); in getCardsWithViewType_threeConsecutiveSuggestionCards_shouldHaveTwoHalfCards() 598 final List<Integer> expectedValues = Arrays.asList(VIEW_TYPE_FULL_WIDTH, in getCardsWithViewType_fourConsecutiveSuggestionCards_shouldHaveFourHalfCards() local 607 assertThat(result.get(i).getViewType()).isEqualTo(expectedValues.get(i)); in getCardsWithViewType_fourConsecutiveSuggestionCards_shouldHaveFourHalfCards()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | NetworkManagementServiceTest.java | 307 final ArrayMap<Integer, Boolean> expectedValues = expected.get(chain); in testFirewallChains() local 312 expectedValues.get(state), mNMService.isNetworkRestricted(TEST_UID)); in testFirewallChains()
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | RawContactDeltaListTests.java | 214 ContentValues expectedValues = expected.getOperation().resolveValueBackReferences( in assertDiffPattern() local 218 expectedValues.remove(BaseColumns._ID); in assertDiffPattern() 220 assertEquals("Unexpected values", expectedValues, foundValues); in assertDiffPattern()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMetricsTest.java | 3553 int[] expectedValues = mTestUnusableEvents[index]; in verifyUnusableEvent() local 3554 assertEquals(expectedValues[0], event.type); in verifyUnusableEvent() 3555 assertEquals(expectedValues[1], event.lastScore); in verifyUnusableEvent() 3556 assertEquals(expectedValues[2], event.txSuccessDelta); in verifyUnusableEvent() 3557 assertEquals(expectedValues[3], event.txRetriesDelta); in verifyUnusableEvent() 3558 assertEquals(expectedValues[4], event.txBadDelta); in verifyUnusableEvent() 3559 assertEquals(expectedValues[5], event.rxSuccessDelta); in verifyUnusableEvent() 3560 assertEquals(expectedValues[6], event.packetUpdateTimeDelta); in verifyUnusableEvent() 3561 assertEquals(expectedValues[7], event.firmwareAlertCode); in verifyUnusableEvent() 3562 assertEquals(expectedValues[8], event.lastWifiUsabilityScore); in verifyUnusableEvent() [all …]
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | ValueMetricProducer_test.cpp | 66 vector<int> expectedValues(expectedValuesList); in assertPastBucketValuesSingleKey() local 71 ASSERT_EQ(expectedValues.size(), expectedDurationNs.size()); in assertPastBucketValuesSingleKey() 72 ASSERT_EQ(expectedValues.size(), expectedStartTimeNs.size()); in assertPastBucketValuesSingleKey() 73 ASSERT_EQ(expectedValues.size(), expectedEndTimeNs.size()); in assertPastBucketValuesSingleKey() 75 if (expectedValues.size() == 0) { in assertPastBucketValuesSingleKey() 81 ASSERT_EQ(expectedValues.size(), mPastBuckets.begin()->second.size()); in assertPastBucketValuesSingleKey() 84 for (int i = 0; i < expectedValues.size(); i++) { in assertPastBucketValuesSingleKey() 85 EXPECT_EQ(expectedValues[i], buckets[i].values[0].long_value) in assertPastBucketValuesSingleKey()
|