/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/ |
D | AppDataUsagePreferenceControllerTest.java | 103 NetworkStats.Entry entry2 = new NetworkStats.Entry(); in onDataLoaded_statsLoaded_hasTwoPreference() local 104 entry2.uid = UID_TETHERING; in onDataLoaded_statsLoaded_hasTwoPreference() 105 entry2.rxBytes = 200; in onDataLoaded_statsLoaded_hasTwoPreference() 107 mController.onDataLoaded(networkStats.addEntry(entry1).addEntry(entry2), new int[0]); in onDataLoaded_statsLoaded_hasTwoPreference() 118 NetworkStats.Entry entry2 = new NetworkStats.Entry(); in onDataLoaded_statsLoaded_hasOnePreference() local 119 entry2.uid = UID_TETHERING; in onDataLoaded_statsLoaded_hasOnePreference() 120 entry2.rxBytes = 200; in onDataLoaded_statsLoaded_hasOnePreference() 122 mController.onDataLoaded(networkStats.addEntry(entry1).addEntry(entry2), new int[0]); in onDataLoaded_statsLoaded_hasOnePreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/ |
D | ZenModeBypassingAppsPreferenceControllerTest.java | 128 ApplicationsState.AppEntry entry2 = mock(ApplicationsState.AppEntry.class); in testUpdateBypassingApps_multipleApps() local 129 entry2.info = new ApplicationInfo(); in testUpdateBypassingApps_multipleApps() 130 entry2.info.packageName = "test2"; in testUpdateBypassingApps_multipleApps() 131 entry2.label = "test2"; in testUpdateBypassingApps_multipleApps() 132 entry2.info.uid = 2; in testUpdateBypassingApps_multipleApps() 136 appEntries.add(entry2); in testUpdateBypassingApps_multipleApps() 145 when(mBackend.getNotificationChannelsBypassingDnd(entry2.info.packageName, in testUpdateBypassingApps_multipleApps() 146 entry2.info.uid)).thenReturn(new ParceledListSlice<>(channelsBypassing)); in testUpdateBypassingApps_multipleApps() 154 assertThat(mController.getSummary().contains(entry2.label)).isTrue(); in testUpdateBypassingApps_multipleApps()
|
D | ZenModeAllBypassingAppsPreferenceControllerTest.java | 91 ApplicationsState.AppEntry entry2 = mock(ApplicationsState.AppEntry.class); in testUpdateAppList() local 92 entry2.info = new ApplicationInfo(); in testUpdateAppList() 93 entry2.info.packageName = "test2"; in testUpdateAppList() 94 entry2.info.uid = 0; in testUpdateAppList() 98 appEntries.add(entry2); in testUpdateAppList()
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/tzs2range/ |
D | SuffixTableBlockTest.java | 197 SuffixTableRange entry2 = new SuffixTableRange(entry2StartCellId, entry2EndCellId, 3); in suffixTableBlock_populated_findEntryByCellId() local 198 suffixTableWriter.addRange(entry2); in suffixTableBlock_populated_findEntryByCellId() 220 assertEquals(entry2, findEntryByCellId(fileFormat, suffixTableBlock, tablePrefix, 2000)); in suffixTableBlock_populated_findEntryByCellId() 221 assertEquals(entry2, findEntryByCellId(fileFormat, suffixTableBlock, tablePrefix, 2001)); in suffixTableBlock_populated_findEntryByCellId() 222 assertEquals(entry2, findEntryByCellId(fileFormat, suffixTableBlock, tablePrefix, 2999)); in suffixTableBlock_populated_findEntryByCellId() 242 assertEquals(entry2, suffixTableBlock.getEntryByIndex(1).getSuffixTableRange()); in suffixTableBlock_populated_findEntryByCellId() 299 SuffixTableRange entry2 = new SuffixTableRange( in suffixTableBlock_visit() local 303 suffixTableWriter.addRange(entry2); in suffixTableBlock_visit()
|
D | TzS2RangeFileTest.java | 67 TzS2RangeFileReader.Entry entry2 = in findEntryByCellId() local 69 assertEquals(range2, entry2.getTzS2Range()); in findEntryByCellId()
|
/packages/apps/Settings/tests/componenttests/src/com/android/settingslib/applications/ |
D | ApplicationStateComponentTest.java | 85 ApplicationsState.AppEntry entry2 = createAppEntry("Info02", "Package1", 0); in test_all_apps_sorting_alpha() 89 assertThat(ApplicationsState.ALPHA_COMPARATOR.compare(entry1, entry2)).isEqualTo(-1); in test_all_apps_sorting_alpha() 90 assertThat(ApplicationsState.ALPHA_COMPARATOR.compare(entry2, entry3)).isEqualTo(1); in test_all_apps_sorting_alpha() 91 assertThat(ApplicationsState.ALPHA_COMPARATOR.compare(entry3, entry2)).isEqualTo(-1); in test_all_apps_sorting_alpha()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsTest.java | 793 NetworkStats.Entry entry2 = new NetworkStats.Entry( in testFilter_NoFilter() local 803 .insertEntry(entry2) in testFilter_NoFilter() 809 assertEquals(entry2, stats.getValues(1, null)); in testFilter_NoFilter() 820 NetworkStats.Entry entry2 = new NetworkStats.Entry( in testFilter_UidFilter() local 830 .insertEntry(entry2) in testFilter_UidFilter() 835 assertEquals(entry2, stats.getValues(0, null)); in testFilter_UidFilter() 847 NetworkStats.Entry entry2 = new NetworkStats.Entry( in testFilter_InterfaceFilter() local 861 .insertEntry(entry2) in testFilter_InterfaceFilter() 878 NetworkStats.Entry entry2 = new NetworkStats.Entry( in testFilter_EmptyInterfaceFilter() local 884 .insertEntry(entry2); in testFilter_EmptyInterfaceFilter() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/ |
D | AppStateAppOpsBridgeTest.java | 209 AppEntry entry2 = createAppEntry(packageInfo2); in loadsAppOpsExtraInfo_multipleApps() local 211 mBridge.loadExtraInfo(Arrays.asList(entry1, entry2)); in loadsAppOpsExtraInfo_multipleApps() 214 assertThat(entry2.extraInfo).isNotNull(); in loadsAppOpsExtraInfo_multipleApps() 241 AppEntry entry2 = createAppEntry(packageInfo2); in loadsAppOpExtraInfo_multipleProfiles() local 247 mBridge.loadExtraInfo(Arrays.asList(entry1, entry2)); in loadsAppOpExtraInfo_multipleProfiles() 250 assertThat(entry2.extraInfo).isNotNull(); in loadsAppOpExtraInfo_multipleProfiles()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/ |
D | TlvBufferUtilsTest.java | 96 byte[] entry2 = { 4, 5 }; in testTlvListOperations() 100 data.add(entry2); in testTlvListOperations() 110 equalTo(entry1.length + 1 + entry2.length + 1 + entry3.length + 1 + 1)); in testTlvListOperations() 113 collector.checkThat("parsedList-entry2", parsedList.get(1), equalTo(entry2)); in testTlvListOperations()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | ConvertUtils.java | 353 BatteryHistEntry entry2, in selectBatteryHistEntry() argument 357 } else if (entry2 != null && entry2 != EMPTY_BATTERY_HIST_ENTRY) { in selectBatteryHistEntry() 358 return entry2; in selectBatteryHistEntry()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
D | AppGridViewTest.java | 82 final AppGridView.ActivityEntry entry2 = in appEntry_compare_shouldCompareIgnoreCase() local 87 assertThat(entry1.compareTo(entry2)).isEqualTo(0); in appEntry_compare_shouldCompareIgnoreCase()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryDiffEntryTest.java | 285 final BatteryDiffEntry entry2 = createBatteryDiffEntry(mockDrawable2); in testClearCache_switchLocale_clearCacheIconAndLabel() local 288 assertThat(entry2.getAppIcon()).isEqualTo(mockDrawable2); in testClearCache_switchLocale_clearCacheIconAndLabel() 291 BatteryDiffEntry.sResourceCache.get(entry2.getKey()); in testClearCache_switchLocale_clearCacheIconAndLabel()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 927 NetworkStats.Entry entry2 = new NetworkStats.Entry( 937 .insertEntry(entry2) 946 entry2.operations = 1; 947 assertEquals(entry2, stats.getValues(1, null));
|