Home
last modified time | relevance | path

Searched refs:expectedValues (Results 1 – 8 of 8) sorted by relevance

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java958 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 …]
DLegacyContactsProviderTest.java470 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()
DContactsProvider2Test.java5738 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 '"); 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/
DContextualCardManagerTest.java529 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/
DNetworkManagementServiceTest.java307 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/
DRawContactDeltaListTests.java214 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/
DWifiMetricsTest.java3553 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/
DValueMetricProducer_test.cpp66 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()