Home
last modified time | relevance | path

Searched refs:analysis (Results 1 – 11 of 11) sorted by relevance

/tools/loganalysis/javatests/com/android/loganalysis/rule/
DWifiStatsRuleTest.java62 JSONObject analysis = wifiStatsRule.getAnalysis(); in testWifiDisconnectAnalysis() local
63 assertNotNull(analysis); in testWifiDisconnectAnalysis()
64 assertTrue(analysis.has("WIFI_STATS")); in testWifiDisconnectAnalysis()
65 assertEquals(analysis.getString("WIFI_STATS"), in testWifiDisconnectAnalysis()
79 JSONObject analysis = wifiStatsRule.getAnalysis(); in testWifiScanAnalysis() local
80 assertNotNull(analysis); in testWifiScanAnalysis()
81 assertTrue(analysis.has("WIFI_STATS")); in testWifiScanAnalysis()
82 assertEquals(analysis.getString("WIFI_STATS"), in testWifiScanAnalysis()
96 JSONObject analysis = wifiStatsRule.getAnalysis(); in testWifiAssociationAnalysis() local
97 assertNotNull(analysis); in testWifiAssociationAnalysis()
[all …]
DInterruptRuleTest.java66 JSONObject analysis = interruptRule.getAnalysis(); in testInterruptAnalysis() local
67 assertNotNull(analysis); in testInterruptAnalysis()
68 assertTrue(analysis.has("INTERRUPT_ANALYSIS")); in testInterruptAnalysis()
69 assertEquals(analysis.getString("INTERRUPT_ANALYSIS"), in testInterruptAnalysis()
85 JSONObject analysis = interruptRule.getAnalysis(); in testNoSignificantInterruptAnalysis() local
86 assertNotNull(analysis); in testNoSignificantInterruptAnalysis()
87 assertTrue(analysis.has("INTERRUPT_ANALYSIS")); in testNoSignificantInterruptAnalysis()
88 assertEquals(analysis.getString("INTERRUPT_ANALYSIS"), in testNoSignificantInterruptAnalysis()
95 JSONObject analysis = interruptRule.getAnalysis(); in testMissingInterruptAnalysis() local
96 assertNotNull(analysis); in testMissingInterruptAnalysis()
[all …]
DLocationUsageRuleTest.java67 JSONObject analysis = locationUsageRule.getAnalysis(); in testLocationUsageAnalysis() local
68 assertNotNull(analysis); in testLocationUsageAnalysis()
69 assertTrue(analysis.has("LOCATION_USAGE_ANALYSIS")); in testLocationUsageAnalysis()
70 assertEquals(analysis.getString("LOCATION_USAGE_ANALYSIS"), in testLocationUsageAnalysis()
84 JSONObject analysis = locationUsageRule.getAnalysis(); in testNoSignificantLocationUsageAnalysis() local
85 assertNotNull(analysis); in testNoSignificantLocationUsageAnalysis()
86 assertTrue(analysis.has("LOCATION_USAGE_ANALYSIS")); in testNoSignificantLocationUsageAnalysis()
87 assertEquals(analysis.getString("LOCATION_USAGE_ANALYSIS"), in testNoSignificantLocationUsageAnalysis()
94 JSONObject analysis = locationUsageRule.getAnalysis(); in testNoLocationUsageAnalysis() local
95 assertNotNull(analysis); in testNoLocationUsageAnalysis()
[all …]
DWakelockRuleTest.java70 JSONObject analysis = wakelockRule.getAnalysis(); in testWakelockAnalysis() local
71 assertNotNull(analysis); in testWakelockAnalysis()
72 assertTrue(analysis.has("WAKELOCK_ANALYSIS")); in testWakelockAnalysis()
73 assertEquals(analysis.getString("WAKELOCK_ANALYSIS"), in testWakelockAnalysis()
92 JSONObject analysis = wakelockRule.getAnalysis(); in testNoSignificantWakelockAnalysis() local
93 assertNotNull(analysis); in testNoSignificantWakelockAnalysis()
94 assertTrue(analysis.has("WAKELOCK_ANALYSIS")); in testNoSignificantWakelockAnalysis()
95 assertEquals(analysis.getString("WAKELOCK_ANALYSIS"), in testNoSignificantWakelockAnalysis()
102 JSONObject analysis = wakelockRule.getAnalysis(); in testNoWakelockAnalysis() local
103 assertNotNull(analysis); in testNoWakelockAnalysis()
[all …]
DProcessUsageRuleTest.java72 JSONObject analysis = usage.getAnalysis(); in testAlarmAnalysis() local
73 assertNotNull(analysis); in testAlarmAnalysis()
74 assertTrue(analysis.has("ALARM_USAGE_ANALYSIS")); in testAlarmAnalysis()
75 assertEquals(analysis.getString("ALARM_USAGE_ANALYSIS"), in testAlarmAnalysis()
77 assertTrue(analysis.has("SENSOR_USAGE_ANALYSIS")); in testAlarmAnalysis()
78 assertEquals(analysis.getString("SENSOR_USAGE_ANALYSIS"), in testAlarmAnalysis()
101 JSONObject analysis = usage.getAnalysis(); in testSensorAnalysis() local
102 assertNotNull(analysis); in testSensorAnalysis()
103 assertTrue(analysis.has("SENSOR_USAGE_ANALYSIS")); in testSensorAnalysis()
104 assertEquals(analysis.getString("SENSOR_USAGE_ANALYSIS"), in testSensorAnalysis()
[all …]
/tools/loganalysis/src/com/android/loganalysis/rule/
DWifiStatsRule.java78 StringBuilder analysis = new StringBuilder(); in getAnalysis() local
80 analysis.append("No apps requested for frequent wifi scans. "); in getAnalysis()
82 analysis.append(String.format("Wifi scans happened every %d seconds. ", in getAnalysis()
86 analysis.append("No frequent wifi disconnects were observed. "); in getAnalysis()
88 analysis.append(String.format("Wifi got disconnected %d times. ", in getAnalysis()
92 analysis.append("No frequent wifi associations were observed. "); in getAnalysis()
94 analysis.append(String.format("Wifi got associated with AP %d times. ", in getAnalysis()
98 wifiStatsAnalysis.put(WIFI_STATS, analysis.toString().trim()); in getAnalysis()
DInterruptRule.java63 StringBuilder analysis = new StringBuilder(); in getAnalysis() local
65 analysis.append(String.format( in getAnalysis()
71 analysis.append(String.format("Frequent interrupts from %s (%s). ", in getAnalysis()
75 analysis.append(String.format("Frequent interrupts from %s. ", in getAnalysis()
81 interruptAnalysis.put(INTERRUPT_ANALYSIS, analysis.toString().trim()); in getAnalysis()
DWakelockRule.java64 StringBuilder analysis = new StringBuilder(); in getAnalysis() local
66 analysis.append("No wakelocks were held for more than 10% of time on battery."); in getAnalysis()
69 analysis.append(String.format("%s %s is held for %s. ", wakelocks.getName(), in getAnalysis()
75 wakelockAnalysis.put(WAKELOCK_ANALYSIS, analysis.toString().trim()); in getAnalysis()
DLocationUsageRule.java78 StringBuilder analysis = new StringBuilder(); in getAnalysis() local
80 analysis.append("No apps requested for frequent location updates. "); in getAnalysis()
83 analysis.append(String.format("Package %s is requesting for location " in getAnalysis()
89 locationAnalysis.put(LOCATION_USAGE_ANALYSIS, analysis.toString().trim()); in getAnalysis()
/tools/loganalysis/src/com/android/loganalysis/
DLogAnalyzer.java229 private void printBugreportAnalysis(JSONArray analysis) { in printBugreportAnalysis() argument
230 if (analysis != null && analysis.length() > 0) { in printBugreportAnalysis()
231 System.out.println(analysis.toString()); in printBugreportAnalysis()
/tools/metalava/
DREADME.md86 load time such that it can be part of the API analysis.
214 in a targeted way. For example, running the analysis on the current version of