/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/ |
D | ZenModeBypassingAppsPreferenceControllerTest.java | 123 ApplicationsState.AppEntry entry1 = mock(ApplicationsState.AppEntry.class); in testUpdateBypassingApps_multipleApps() local 124 entry1.info = new ApplicationInfo(); in testUpdateBypassingApps_multipleApps() 125 entry1.info.packageName = "test1"; in testUpdateBypassingApps_multipleApps() 126 entry1.label = "test1"; in testUpdateBypassingApps_multipleApps() 127 entry1.info.uid = 1; in testUpdateBypassingApps_multipleApps() 135 appEntries.add(entry1); in testUpdateBypassingApps_multipleApps() 143 when(mBackend.getNotificationChannelsBypassingDnd(entry1.info.packageName, in testUpdateBypassingApps_multipleApps() 144 entry1.info.uid)).thenReturn(new ParceledListSlice<>(channelsBypassing)); in testUpdateBypassingApps_multipleApps() 153 assertThat(mController.getSummary().contains(entry1.label)).isTrue(); in testUpdateBypassingApps_multipleApps()
|
D | ZenModeAllBypassingAppsPreferenceControllerTest.java | 86 ApplicationsState.AppEntry entry1 = mock(ApplicationsState.AppEntry.class); in testUpdateAppList() local 87 entry1.info = new ApplicationInfo(); in testUpdateAppList() 88 entry1.info.packageName = "test"; in testUpdateAppList() 89 entry1.info.uid = 0; in testUpdateAppList() 97 appEntries.add(entry1); in testUpdateAppList()
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/tzs2range/ |
D | SuffixTableBlockTest.java | 192 SuffixTableRange entry1 = new SuffixTableRange(entry1StartCellId, entry1EndCellId, 2); in suffixTableBlock_populated_findEntryByCellId() local 193 suffixTableWriter.addRange(entry1); in suffixTableBlock_populated_findEntryByCellId() 217 assertEquals(entry1, findEntryByCellId(fileFormat, suffixTableBlock, tablePrefix, 1000)); in suffixTableBlock_populated_findEntryByCellId() 218 assertEquals(entry1, findEntryByCellId(fileFormat, suffixTableBlock, tablePrefix, 1001)); in suffixTableBlock_populated_findEntryByCellId() 219 assertEquals(entry1, findEntryByCellId(fileFormat, suffixTableBlock, tablePrefix, 1999)); in suffixTableBlock_populated_findEntryByCellId() 241 assertEquals(entry1, suffixTableBlock.getEntryByIndex(0).getSuffixTableRange()); in suffixTableBlock_populated_findEntryByCellId() 264 SuffixTableRange entry1 = new SuffixTableRange(entry1StartCellId, entry1EndCellId, 2); in suffixTableBlock_populated_findEntryByCellId_cellIdOutOfRange() local 265 suffixTableWriter.addRange(entry1); in suffixTableBlock_populated_findEntryByCellId_cellIdOutOfRange() 293 SuffixTableRange entry1 = new SuffixTableRange( in suffixTableBlock_visit() local 297 suffixTableWriter.addRange(entry1); in suffixTableBlock_visit()
|
D | TzS2RangeFileTest.java | 63 TzS2RangeFileReader.Entry entry1 = in findEntryByCellId() local 65 assertEquals(range1, entry1.getTzS2Range()); in findEntryByCellId()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/ |
D | AppDataUsagePreferenceControllerTest.java | 101 NetworkStats.Entry entry1 = new NetworkStats.Entry(); in onDataLoaded_statsLoaded_hasTwoPreference() local 102 entry1.rxBytes = 100; in onDataLoaded_statsLoaded_hasTwoPreference() 107 mController.onDataLoaded(networkStats.addEntry(entry1).addEntry(entry2), new int[0]); in onDataLoaded_statsLoaded_hasTwoPreference() 116 NetworkStats.Entry entry1 = new NetworkStats.Entry(); in onDataLoaded_statsLoaded_hasOnePreference() local 117 entry1.rxBytes = 100; in onDataLoaded_statsLoaded_hasOnePreference() 122 mController.onDataLoaded(networkStats.addEntry(entry1).addEntry(entry2), new int[0]); in onDataLoaded_statsLoaded_hasOnePreference()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsTest.java | 789 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_NoFilter() local 802 .insertEntry(entry1) in testFilter_NoFilter() 808 assertEquals(entry1, stats.getValues(0, null)); in testFilter_NoFilter() 816 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_UidFilter() local 829 .insertEntry(entry1) in testFilter_UidFilter() 843 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_InterfaceFilter() local 860 .insertEntry(entry1) in testFilter_InterfaceFilter() 867 assertEquals(entry1, stats.getValues(0, null)); in testFilter_InterfaceFilter() 874 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_EmptyInterfaceFilter() local 883 .insertEntry(entry1) in testFilter_EmptyInterfaceFilter() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/ |
D | AppStateAppOpsBridgeTest.java | 203 AppEntry entry1 = createAppEntry(packageInfo1); in loadsAppOpsExtraInfo_multipleApps() local 211 mBridge.loadExtraInfo(Arrays.asList(entry1, entry2)); in loadsAppOpsExtraInfo_multipleApps() 213 assertThat(entry1.extraInfo).isNotNull(); in loadsAppOpsExtraInfo_multipleApps() 223 AppEntry entry1 = createAppEntry(packageInfo1); in loadsAppOpExtraInfo_multipleProfiles() local 247 mBridge.loadExtraInfo(Arrays.asList(entry1, entry2)); in loadsAppOpExtraInfo_multipleProfiles() 249 assertThat(entry1.extraInfo).isNotNull(); in loadsAppOpExtraInfo_multipleProfiles()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
D | AppGridViewTest.java | 80 final AppGridView.ActivityEntry entry1 = in appEntry_compare_shouldCompareIgnoreCase() local 87 assertThat(entry1.compareTo(entry2)).isEqualTo(0); in appEntry_compare_shouldCompareIgnoreCase() 88 assertThat(entry1.compareTo(entry3)).isNotEqualTo(0); in appEntry_compare_shouldCompareIgnoreCase()
|
/packages/apps/Settings/tests/componenttests/src/com/android/settingslib/applications/ |
D | ApplicationStateComponentTest.java | 84 ApplicationsState.AppEntry entry1 = createAppEntry("Info01", "Package1", 0); in test_all_apps_sorting_alpha() 89 assertThat(ApplicationsState.ALPHA_COMPARATOR.compare(entry1, entry2)).isEqualTo(-1); in test_all_apps_sorting_alpha() 93 assertThat(ApplicationsState.ALPHA_COMPARATOR.compare(entry1, entry3)).isEqualTo(-1); in test_all_apps_sorting_alpha()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/ |
D | TlvBufferUtilsTest.java | 95 byte[] entry1 = { 1, 2, 3 }; in testTlvListOperations() 99 data.add(entry1); in testTlvListOperations() 110 equalTo(entry1.length + 1 + entry2.length + 1 + entry3.length + 1 + 1)); in testTlvListOperations() 112 collector.checkThat("parsedList-entry1", parsedList.get(0), equalTo(entry1)); in testTlvListOperations()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | ConvertUtils.java | 352 BatteryHistEntry entry1, in selectBatteryHistEntry() argument 355 if (entry1 != null && entry1 != EMPTY_BATTERY_HIST_ENTRY) { in selectBatteryHistEntry() 356 return entry1; in selectBatteryHistEntry()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryDiffEntryTest.java | 280 final BatteryDiffEntry entry1 = createBatteryDiffEntry(mockDrawable); in testClearCache_switchLocale_clearCacheIconAndLabel() local 281 assertThat(entry1.getAppIcon()).isEqualTo(mockBadgedDrawable); in testClearCache_switchLocale_clearCacheIconAndLabel()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 925 NetworkStats.Entry entry1 = new NetworkStats.Entry( 936 .insertEntry(entry1) 944 entry1.operations = 1; 945 assertEquals(entry1, stats.getValues(0, null));
|