/tools/loganalysis/tests/src/com/android/loganalysis/rule/ |
D | WifiStatsRuleTest.java | 62 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 …]
|
D | InterruptRuleTest.java | 66 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 …]
|
D | LocationUsageRuleTest.java | 67 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 …]
|
D | WakelockRuleTest.java | 70 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 …]
|
D | ProcessUsageRuleTest.java | 72 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/ |
D | WifiStatsRule.java | 78 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()
|
D | InterruptRule.java | 63 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()
|
D | WakelockRule.java | 64 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()
|
D | LocationUsageRule.java | 78 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/ |
D | LogAnalyzer.java | 229 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/ |
D | README.md | 85 load time such that it can be part of the API analysis. 213 in a targeted way. For example, running the analysis on the current version of
|
/tools/repohooks/tools/ |
D | pylintrc | 225 # and thus existing member attributes cannot be deduced by static analysis. It
|