/cts/hostsidetests/incident/src/com/android/server/cts/ |
IncidentdTest.java | 26 public void testIncidentReportDump(final int filterLevel, final String dest) throws Exception { 33 SystemPropertiesTest.verifySystemPropertiesProto(dump.getSystemProperties(), filterLevel); 35 StackTraceIncidentTest.verifyBackTraceProto(dump.getNativeTraces(), filterLevel); 36 StackTraceIncidentTest.verifyBackTraceProto(dump.getHalTraces(), filterLevel); 37 StackTraceIncidentTest.verifyBackTraceProto(dump.getJavaTraces(), filterLevel); 40 FingerprintIncidentTest.verifyFingerprintServiceDumpProto(dump.getFingerprint(), filterLevel); 43 NetstatsIncidentTest.verifyNetworkStatsServiceDumpProto(dump.getNetstats(), filterLevel); 45 SettingsIncidentTest.verifySettingsServiceDumpProto(dump.getSettings(), filterLevel); 47 NotificationIncidentTest.verifyNotificationServiceDumpProto(dump.getNotification(), filterLevel); 49 BatteryStatsIncidentTest.verifyBatteryStatsServiceDumpProto(dump.getBatterystats(), filterLevel); [all...] |
UsbIncidentTest.java | 42 static void verifyUsbServiceDumpProto(UsbServiceDumpProto dump, final int filterLevel) throws Exception { 43 verifyUsbDeviceManagerProto(dump.getDeviceManager(), filterLevel); 44 verifyUsbHostManagerProto(dump.getHostManager(), filterLevel); 45 verifyUsbSettingsManagerProto(dump.getSettingsManager(), filterLevel); 48 private static void verifyUsbDeviceManagerProto(UsbDeviceManagerProto udmp, final int filterLevel) throws Exception { 49 verifyUsbHandlerProto(udmp.getHandler(), filterLevel); 50 verifyUsbDebuggingManagerProto(udmp.getDebuggingManager(), filterLevel); 53 private static void verifyUsbHandlerProto(UsbHandlerProto uhp, final int filterLevel) throws Exception { 60 verifyUsbAccessoryProto(uhp.getCurrentAccessory(), filterLevel); 63 private static void verifyUsbAccessoryProto(UsbAccessoryProto uap, final int filterLevel) throws Exception [all...] |
PrintProtoTest.java | 57 static void verifyPrintServiceDumpProto(PrintServiceDumpProto dump, final int filterLevel) throws Exception { 65 verifyActivePrintServiceProto(aps, filterLevel); 68 verifyPrintJobInfoProto(cpj.getPrintJob(), filterLevel); 71 verifyPrinterDiscoverySessionProto(pds, filterLevel); 73 verifyPrintSpoolerStateProto(pus.getPrintSpoolerState(), filterLevel); 77 private static void verifyActivePrintServiceProto(ActivePrintServiceProto aps, final int filterLevel) throws Exception { 79 verifyPrinterIdProto(pip, filterLevel); 83 private static void verifyPrinterDiscoverySessionProto(PrinterDiscoverySessionProto pds, final int filterLevel) throws Exception { 85 verifyPrinterIdProto(pip, filterLevel); 88 verifyPrinterInfoProto(pip, filterLevel); [all...] |
WindowManagerIncidentTest.java | 30 static void verifyWindowManagerServiceDumpProto(WindowManagerServiceDumpProto dump, final int filterLevel) throws Exception { 31 verifyWindowManagerPolicyProto(dump.getPolicy(), filterLevel); 32 verifyRootWindowContainerProto(dump.getRootWindowContainer(), filterLevel); 33 verifyIdentifierProto(dump.getFocusedWindow(), filterLevel); 34 verifyIdentifierProto(dump.getInputMethodWindow(), filterLevel); 37 private static void verifyWindowManagerPolicyProto(WindowManagerPolicyProto wmp, final int filterLevel) throws Exception { 42 private static void verifyIdentifierProto(IdentifierProto ip, final int filterLevel) throws Exception { 43 if (filterLevel == PRIVACY_AUTO) { 48 private static void verifyRootWindowContainerProto(RootWindowContainerProto rwcp, final int filterLevel) throws Exception { 50 verifyIdentifierProto(ip, filterLevel); [all...] |
SystemPropertiesTest.java | 27 static void verifySystemPropertiesProto(SystemPropertiesProto properties, final int filterLevel) { 29 if (filterLevel == PRIVACY_LOCAL) { 35 assertEquals(filterLevel == PRIVACY_AUTO, properties.getPersist().getSysTimezone().isEmpty());
|
StackTraceIncidentTest.java | 24 static void verifyBackTraceProto(BackTraceProto dump, final int filterLevel) throws Exception { 25 if (filterLevel == PRIVACY_AUTO) {
|
ActivityManagerIncidentTest.java | 113 static void verifyActivityManagerServiceDumpServicesProto(ActivityManagerServiceDumpServicesProto dump, final int filterLevel) throws Exception { 116 verifyServiceRecordProto(srp, filterLevel); 121 private static void verifyServiceRecordProto(ServiceRecordProto srp, final int filterLevel) throws Exception { 122 if (filterLevel == PRIVACY_AUTO) { 131 verifyServiceRecordProtoStartItem(si, filterLevel); 134 verifyServiceRecordProtoStartItem(si, filterLevel); 137 verifyConnectionRecordProto(crp, filterLevel); 141 private static void verifyServiceRecordProtoStartItem(ServiceRecordProto.StartItem si, final int filterLevel) throws Exception { 142 verifyNeededUriGrantsProto(si.getNeededGrants(), filterLevel); 143 verifyUriPermissionOwnerProto(si.getUriPermissions(), filterLevel); [all...] |
AlarmManagerIncidentTest.java | 44 static void verifyAlarmManagerServiceDumpProto(AlarmManagerServiceDumpProto dump, final int filterLevel) throws Exception { 107 testAlarmProtoList(b.getAlarmsList(), filterLevel); 110 testAlarmProtoList(dump.getPendingUserBlockedBackgroundAlarmsList(), filterLevel); 112 testAlarmProto(dump.getPendingIdleUntil(), filterLevel); 114 testAlarmProtoList(dump.getPendingWhileIdleAlarmsList(), filterLevel); 116 testAlarmProto(dump.getNextWakeFromIdle(), filterLevel); 118 testAlarmProtoList(dump.getPastDueNonWakeupAlarmsList(), filterLevel); 135 testFilterStatsProto(f.getFilterStats(), filterLevel); 136 if (filterLevel == PRIVACY_AUTO) { 148 testFilterStatsProto(ta.getFilter(), filterLevel); [all...] |
NotificationIncidentTest.java | 105 private static void verifyRankingHelperProto(RankingHelperProto rhProto, final int filterLevel) throws Exception { 135 private static void verifyZenModeProto(ZenModeProto zenProto, final int filterLevel) throws Exception { 143 if (filterLevel == PRIVACY_AUTO) { 180 static void verifyNotificationServiceDumpProto(NotificationServiceDumpProto dump, final int filterLevel) throws Exception { 182 verifyNotificationRecordProto(nr, filterLevel); 184 verifyZenModeProto(dump.getZen(), filterLevel); 185 verifyManagedServicesProto(dump.getNotificationListeners(), filterLevel); 186 verifyManagedServicesProto(dump.getNotificationAssistants(), filterLevel); 187 verifyManagedServicesProto(dump.getConditionProviders(), filterLevel); 188 verifyRankingHelperProto(dump.getRankingConfig(), filterLevel); [all...] |
SettingsIncidentTest.java | 60 static void verifySettingsServiceDumpProto(SettingsServiceDumpProto dump, final int filterLevel) throws Exception { 66 verifySettings(userSettings.getSecureSettings(), filterLevel); 68 verifySettings(userSettings.getSystemSettings(), filterLevel); 72 verifySettings(dump.getGlobalSettings(), filterLevel); 75 private static void verifySettings(Message settings, final int filterLevel) throws Exception { 76 verifySettings(getSettingProtos(settings), filterLevel); 83 if (filterLevel == PRIVACY_AUTO) { 150 private static void verifySettings(Map<SettingProto, Destination> settings, final int filterLevel) throws Exception { 164 if (filterLevel < PRIVACY_LOCAL) { 167 String err = "Setting '" + setting.getName() + "' with LOCAL privacy didn't strip data for filter level '" + privacyToString(filterLevel) + "'" [all...] |
JobSchedulerIncidentTest.java | 41 static void verifyJobSchedulerServiceDumpProto(JobSchedulerServiceDumpProto dump, final int filterLevel) throws Exception { 49 testJobStatusShortInfoProto(rj.getInfo(), filterLevel); 54 testStateControllerProto(c, filterLevel); 65 testJobPackageHistoryProto(dump.getHistory(), filterLevel); 70 testJobStatusShortInfoProto(pj.getInfo(), filterLevel); 80 testJobStatusShortInfoProto(ajRj.getInfo(), filterLevel); 145 private static void testJobPackageHistoryProto(JobPackageHistoryProto jph, int filterLevel) throws Exception { 167 private static void testJobStatusShortInfoProto(JobStatusShortInfoProto jssi, final int filterLevel) throws Exception { 257 private static void testStateControllerProto(StateControllerProto sc, int filterLevel) throws Exception { 262 testJobStatusShortInfoProto(tj.getInfo(), filterLevel); [all...] |
DiskStatsProtoTest.java | 41 static void verifyDiskStatsServiceDumpProto(DiskStatsServiceDumpProto dump, final int filterLevel, ITestDevice device) throws Exception { 48 if (filterLevel == PRIVACY_AUTO) {
|
PackageIncidentTest.java | 96 static void verifyPackageServiceDumpProto(PackageServiceDumpProto dump, final int filterLevel) throws Exception { 116 if (filterLevel == PRIVACY_AUTO) {
|
BatteryIncidentTest.java | 41 static void verifyBatteryServiceDumpProto(BatteryServiceDumpProto dump, final int filterLevel) {
|
FingerprintIncidentTest.java | 44 static void verifyFingerprintServiceDumpProto(FingerprintServiceDumpProto dump, int filterLevel) {
|
NetstatsIncidentTest.java | 397 static void verifyNetworkStatsServiceDumpProto(NetworkStatsServiceDumpProto dump, final int filterLevel) throws Exception { 398 if (filterLevel == PRIVACY_AUTO) { 400 verifyNetworkInterfaceProto(nip, filterLevel); 403 verifyNetworkInterfaceProto(nip, filterLevel); 408 private static void verifyNetworkInterfaceProto(NetworkInterfaceProto nip, final int filterLevel) throws Exception { 410 if (filterLevel == PRIVACY_AUTO) {
|
PowerIncidentTest.java | 40 static void verifyPowerManagerServiceDumpProto(PowerManagerServiceDumpProto dump, int filterLevel) {
|
BatteryStatsIncidentTest.java | 63 static void verifyBatteryStatsServiceDumpProto(BatteryStatsServiceDumpProto dump, final int filterLevel) throws Exception { 77 testUidProto(u, filterLevel); 324 private static void testUidProto(UidProto u, final int filterLevel) throws Exception {
|
MemInfoIncidentTest.java | 34 static void verifyMemInfoDumpProto(MemInfoDumpProto dump, final int filterLevel) throws Exception {
|