Skip to content
Snippets Groups Projects
Commit 5bf6d894 authored by Netta Peterbursky's avatar Netta Peterbursky Committed by android-build-merger
Browse files

Add app versions to Bugreport parser (for event history view in stability dashboard).

am: 75a8a418

Change-Id: I640e5c24bade6b403e38eed52608d9dca38ec32e
parents e5a511d2 75a8a418
No related branches found
No related tags found
No related merge requests found
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.loganalysis.item;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/** An {@link IItem} used to store an app's version code and name. */
public class AppVersionItem extends GenericItem {
/** Constants for JSON output */
public static final String VERSION_CODE = "VERSION_CODE";
public static final String VERSION_NAME = "VERSION_NAME";
private static final Set<String> ATTRIBUTES =
new HashSet<String>(Arrays.asList(VERSION_CODE, VERSION_NAME));
/**
* The constructor for {@link AppVersionItem}
*
* @param versionCode the version code
* @param versionName the version name
*/
public AppVersionItem(int versionCode, String versionName) {
super(ATTRIBUTES);
setAttribute(VERSION_CODE, versionCode);
setAttribute(VERSION_NAME, versionName);
}
public int getVersionCode() {
return (Integer) getAttribute(VERSION_CODE);
}
public String getVersionName() {
return (String) getAttribute(VERSION_NAME);
}
}
...@@ -27,12 +27,15 @@ public class DumpsysItem extends GenericItem { ...@@ -27,12 +27,15 @@ public class DumpsysItem extends GenericItem {
/** Constant for JSON output */ /** Constant for JSON output */
private static final String BATTERY_STATS = "BATTERY_STATS"; private static final String BATTERY_STATS = "BATTERY_STATS";
/** Constant for JSON output */ /** Constant for JSON output */
private static final String PACKAGE_STATS = "PACKAGE_STATS";
/** Constant for JSON output */
private static final String PROC_STATS = "PROC_STATS"; private static final String PROC_STATS = "PROC_STATS";
/** Constant for JSON output */ /** Constant for JSON output */
private static final String WIFI_STATS = "WIFI_STATS"; private static final String WIFI_STATS = "WIFI_STATS";
private static final Set<String> ATTRIBUTES = new HashSet<String>(Arrays.asList( private static final Set<String> ATTRIBUTES =
BATTERY_STATS, PROC_STATS, WIFI_STATS)); new HashSet<String>(
Arrays.asList(BATTERY_STATS, PACKAGE_STATS, PROC_STATS, WIFI_STATS));
/** /**
* The constructor for {@link DumpsysItem}. * The constructor for {@link DumpsysItem}.
...@@ -48,9 +51,12 @@ public class DumpsysItem extends GenericItem { ...@@ -48,9 +51,12 @@ public class DumpsysItem extends GenericItem {
setAttribute(BATTERY_STATS, batteryStats); setAttribute(BATTERY_STATS, batteryStats);
} }
/** /** Set the {@link DumpsysPackageStatsItem} of the bugreport. */
* Set the {@link DumpsysProcStatsItem} of the bugreport. public void setPackageStats(DumpsysPackageStatsItem packageStats) {
*/ setAttribute(PACKAGE_STATS, packageStats);
}
/** Set the {@link DumpsysProcStatsItem} of the bugreport. */
public void setProcStats(DumpsysProcStatsItem procStats) { public void setProcStats(DumpsysProcStatsItem procStats) {
setAttribute(PROC_STATS, procStats); setAttribute(PROC_STATS, procStats);
} }
...@@ -69,9 +75,12 @@ public class DumpsysItem extends GenericItem { ...@@ -69,9 +75,12 @@ public class DumpsysItem extends GenericItem {
return (DumpsysBatteryStatsItem) getAttribute(BATTERY_STATS); return (DumpsysBatteryStatsItem) getAttribute(BATTERY_STATS);
} }
/** /** Get the {@link DumpsysPackageStatsItem} of the bugreport. */
* Get the {@link DumpsysProcStatsItem} of the bugreport. public DumpsysPackageStatsItem getPackageStats() {
*/ return (DumpsysPackageStatsItem) getAttribute(PACKAGE_STATS);
}
/** Get the {@link DumpsysProcStatsItem} of the bugreport. */
public DumpsysProcStatsItem getProcStats() { public DumpsysProcStatsItem getProcStats() {
return (DumpsysProcStatsItem) getAttribute(PROC_STATS); return (DumpsysProcStatsItem) getAttribute(PROC_STATS);
} }
......
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.loganalysis.item;
import org.json.JSONException;
import org.json.JSONObject;
/** An {@link IItem} used to store apps and their version codes and names. */
public class DumpsysPackageStatsItem extends GenericMapItem<AppVersionItem> {
private static final long serialVersionUID = 1L;
/** Constant for JSON output */
public static final String APP_VERSIONS = "APP_VERSIONS";
/** {@inheritDoc} */
@Override
public JSONObject toJson() {
JSONObject object = new JSONObject();
try {
object.put(APP_VERSIONS, super.toJson());
} catch (JSONException e) {
// Ignore
}
return object;
}
}
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.loganalysis.parser;
import com.android.loganalysis.item.AppVersionItem;
import com.android.loganalysis.item.DumpsysPackageStatsItem;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/** A {@link IParser} to parse package stats and create a mapping table of packages and versions */
public class DumpsysPackageStatsParser implements IParser {
/** Matches: Package [com.google.android.googlequicksearchbox] (607929e): */
private static final Pattern PACKAGE_NAME = Pattern.compile("^\\s*Package \\[(.*)\\].*");
/** Matches: versionCode=300734793 minSdk=10000 targetSdk=10000 */
private static final Pattern VERSION_CODE = Pattern.compile("^\\s*versionCode=(\\d+).*");
/** Matches: versionName=6.16.35.26.arm64 */
private static final Pattern VERSION_NAME = Pattern.compile("^\\s*versionName=(.*)$");
/**
* {@inheritDoc}
*
* @return The {@link DumpsysPackageStatsItem}.
*/
@Override
public DumpsysPackageStatsItem parse(List<String> lines) {
DumpsysPackageStatsItem item = new DumpsysPackageStatsItem();
String packageName = null;
String versionCode = null;
String versionName = null;
for (String line : lines) {
Matcher m = PACKAGE_NAME.matcher(line);
if (m.matches()) {
packageName = m.group(1);
versionCode = null;
versionName = null;
continue;
}
m = VERSION_CODE.matcher(line);
if (m.matches()) {
versionCode = m.group(1);
continue;
}
m = VERSION_NAME.matcher(line);
if (m.matches()) {
versionName = m.group(1).trim();
if (packageName != null && versionCode != null) {
item.put(
packageName,
new AppVersionItem(Integer.parseInt(versionCode), versionName));
}
packageName = null;
}
}
return item;
}
}
...@@ -18,6 +18,7 @@ package com.android.loganalysis.parser; ...@@ -18,6 +18,7 @@ package com.android.loganalysis.parser;
import com.android.loganalysis.item.DumpsysBatteryStatsItem; import com.android.loganalysis.item.DumpsysBatteryStatsItem;
import com.android.loganalysis.item.DumpsysItem; import com.android.loganalysis.item.DumpsysItem;
import com.android.loganalysis.item.DumpsysPackageStatsItem;
import com.android.loganalysis.item.DumpsysProcStatsItem; import com.android.loganalysis.item.DumpsysProcStatsItem;
import com.android.loganalysis.item.DumpsysWifiStatsItem; import com.android.loganalysis.item.DumpsysWifiStatsItem;
...@@ -29,11 +30,13 @@ import java.util.List; ...@@ -29,11 +30,13 @@ import java.util.List;
public class DumpsysParser extends AbstractSectionParser { public class DumpsysParser extends AbstractSectionParser {
private static final String BATTERY_STATS_SECTION_REGEX = "^DUMP OF SERVICE batterystats:$"; private static final String BATTERY_STATS_SECTION_REGEX = "^DUMP OF SERVICE batterystats:$";
private static final String PACKAGE_SECTION_REGEX = "^DUMP OF SERVICE package:";
private static final String PROC_STATS_SECTION_REGEX = "^DUMP OF SERVICE procstats:"; private static final String PROC_STATS_SECTION_REGEX = "^DUMP OF SERVICE procstats:";
private static final String WIFI_SECTION_REGEX = "^DUMP OF SERVICE wifi:"; private static final String WIFI_SECTION_REGEX = "^DUMP OF SERVICE wifi:";
private static final String NOOP_SECTION_REGEX = "DUMP OF SERVICE .*"; private static final String NOOP_SECTION_REGEX = "DUMP OF SERVICE .*";
private DumpsysBatteryStatsParser mBatteryStatsParser = new DumpsysBatteryStatsParser(); private DumpsysBatteryStatsParser mBatteryStatsParser = new DumpsysBatteryStatsParser();
private DumpsysPackageStatsParser mPackageStatsParser = new DumpsysPackageStatsParser();
private DumpsysProcStatsParser mProcStatsParser = new DumpsysProcStatsParser(); private DumpsysProcStatsParser mProcStatsParser = new DumpsysProcStatsParser();
private DumpsysWifiStatsParser mWifiStatsParser = new DumpsysWifiStatsParser(); private DumpsysWifiStatsParser mWifiStatsParser = new DumpsysWifiStatsParser();
...@@ -63,6 +66,7 @@ public class DumpsysParser extends AbstractSectionParser { ...@@ -63,6 +66,7 @@ public class DumpsysParser extends AbstractSectionParser {
*/ */
protected void setup() { protected void setup() {
addSectionParser(mBatteryStatsParser, BATTERY_STATS_SECTION_REGEX); addSectionParser(mBatteryStatsParser, BATTERY_STATS_SECTION_REGEX);
addSectionParser(mPackageStatsParser, PACKAGE_SECTION_REGEX);
addSectionParser(mProcStatsParser, PROC_STATS_SECTION_REGEX); addSectionParser(mProcStatsParser, PROC_STATS_SECTION_REGEX);
addSectionParser(mWifiStatsParser, WIFI_SECTION_REGEX); addSectionParser(mWifiStatsParser, WIFI_SECTION_REGEX);
addSectionParser(new NoopParser(), NOOP_SECTION_REGEX); addSectionParser(new NoopParser(), NOOP_SECTION_REGEX);
...@@ -80,6 +84,7 @@ public class DumpsysParser extends AbstractSectionParser { ...@@ -80,6 +84,7 @@ public class DumpsysParser extends AbstractSectionParser {
} }
if (mDumpsys != null) { if (mDumpsys != null) {
mDumpsys.setBatteryInfo((DumpsysBatteryStatsItem) getSection(mBatteryStatsParser)); mDumpsys.setBatteryInfo((DumpsysBatteryStatsItem) getSection(mBatteryStatsParser));
mDumpsys.setPackageStats((DumpsysPackageStatsItem) getSection(mPackageStatsParser));
mDumpsys.setProcStats((DumpsysProcStatsItem) getSection(mProcStatsParser)); mDumpsys.setProcStats((DumpsysProcStatsItem) getSection(mProcStatsParser));
mDumpsys.setWifiStats((DumpsysWifiStatsItem) getSection(mWifiStatsParser)); mDumpsys.setWifiStats((DumpsysWifiStatsItem) getSection(mWifiStatsParser));
} }
......
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.loganalysis.parser;
import com.android.loganalysis.item.DumpsysPackageStatsItem;
import com.android.loganalysis.item.AppVersionItem;
import junit.framework.TestCase;
import java.util.Arrays;
import java.util.List;
/** Unit tests for {@link DumpsysPackageStatsParser} */
public class DumpsysPackageStatsParserTest extends TestCase {
/** Test that normal input is parsed. */
public void testDumpsysPackageStatsParser() {
List<String> inputBlock =
Arrays.asList(
"DUMP OF SERVICE package:",
"Package [com.google.android.calculator] (e075c9d):",
" userId=10071",
" secondaryCpuAbi=null",
" versionCode=73000302 minSdk=10000 targetSdk=10000",
" versionName=7.3 (3821978)",
" splits=[base]",
" Package [com.google.android.googlequicksearchbox] (607929e):",
" userId=10037",
" pkg=Package{af43294 com.google.android.googlequicksearchbox}",
" versionCode=300734793 minSdk=10000 targetSdk=10000",
" versionName=6.16.35.26.arm64",
" apkSigningVersion=2");
final DumpsysPackageStatsItem packagestats =
new DumpsysPackageStatsParser().parse(inputBlock);
assertEquals(2, packagestats.size());
assertNotNull(packagestats.get("com.google.android.calculator"));
final AppVersionItem calculator = packagestats.get("com.google.android.calculator");
assertEquals(73000302, calculator.getVersionCode());
assertEquals("7.3 (3821978)", calculator.getVersionName());
assertNotNull(packagestats.get("com.google.android.googlequicksearchbox"));
final AppVersionItem googlequicksearchbox =
packagestats.get("com.google.android.googlequicksearchbox");
assertEquals(300734793, googlequicksearchbox.getVersionCode());
assertEquals("6.16.35.26.arm64", googlequicksearchbox.getVersionName());
}
}
...@@ -31,99 +31,113 @@ public class DumpsysParserTest extends TestCase { ...@@ -31,99 +31,113 @@ public class DumpsysParserTest extends TestCase {
* Test that normal input is parsed. * Test that normal input is parsed.
*/ */
public void testDumpsysParser() { public void testDumpsysParser() {
List<String> inputBlock = Arrays.asList( List<String> inputBlock =
"DUMP OF SERVICE batterystats:", Arrays.asList(
"Battery History (37% used, 95KB used of 256KB, 166 strings using 15KB):", "DUMP OF SERVICE batterystats:",
" 0 (9) RESET:TIME: 2014-12-09-11-33-29", "Battery History (37% used, 95KB used of 256KB, 166 strings using 15KB):",
" +1s067ms (1) 100 c0500020 -wifi_full_lock -wifi_scan", " 0 (9) RESET:TIME: 2014-12-09-11-33-29",
" +3s297ms (2) 100 80400020 -wake_lock -screen", " +1s067ms (1) 100 c0500020 -wifi_full_lock -wifi_scan",
" +30m02s075ms (1) 100 c0500020 wifi_signal_strength=4 wifi_suppl=completed", " +3s297ms (2) 100 80400020 -wake_lock -screen",
" +30m03s012ms (2) 099 c0500020 temp=306 volt=4217", " +30m02s075ms (1) 100 c0500020 wifi_signal_strength=4 wifi_suppl=completed",
" +33m48s967ms (1) 099 f8400020 +wifi_scan", " +30m03s012ms (2) 099 c0500020 temp=306 volt=4217",
" +33m49s335ms (2) 098 f0400020 temp=324 -wifi_scan", " +33m48s967ms (1) 099 f8400020 +wifi_scan",
"Statistics since last charge:", " +33m49s335ms (2) 098 f0400020 temp=324 -wifi_scan",
" Time on battery: 2h 21m 5s 622ms (12.0%) realtime, 7m 54s 146ms (0.7%) uptime", "Statistics since last charge:",
" Time on battery screen off: 2h 5m 55s 3ms (1%) realtime, 7m 4s 5ms (7%) uptime", " Time on battery: 2h 21m 5s 622ms (12.0%) realtime, 7m 54s 146ms (0.7%) uptime",
" Total run time: 19h 38m 43s 650ms realtime, 17h 25m 32s 175ms uptime", " Time on battery screen off: 2h 5m 55s 3ms (1%) realtime, 7m 4s 5ms (7%) uptime",
" All kernel wake locks:", " Total run time: 19h 38m 43s 650ms realtime, 17h 25m 32s 175ms uptime",
" Kernel Wake lock PowerManagerService.WakeLocks: 1h 3m 50s 5ms (8 times) realtime", " All kernel wake locks:",
" Kernel Wake lock event0-2656 : 3m 49s 268ms (2399 times) realtime", " Kernel Wake lock PowerManagerService.WakeLocks: 1h 3m 50s 5ms (8 times) realtime",
" Kernel Wake lock wlan_wd_wake: 3m 34s 639ms (1751 times) realtime", " Kernel Wake lock event0-2656 : 3m 49s 268ms (2399 times) realtime",
" Kernel Wake lock wlan_rx_wake: 3m 19s 887ms (225 times) realtime", " Kernel Wake lock wlan_wd_wake: 3m 34s 639ms (1751 times) realtime",
" Kernel Wake lock wlan_tx_wake: 2m 19s 887ms (225 times) realtime", " Kernel Wake lock wlan_rx_wake: 3m 19s 887ms (225 times) realtime",
" Kernel Wake lock tx_wake: 1m 19s 887ms (225 times) realtime", " Kernel Wake lock wlan_tx_wake: 2m 19s 887ms (225 times) realtime",
" ", " Kernel Wake lock tx_wake: 1m 19s 887ms (225 times) realtime",
" All partial wake locks:", " ",
" Wake lock u0a7 NlpWakeLock: 8m 13s 203ms (1479 times) realtime", " All partial wake locks:",
" Wake lock u0a7 NlpCollectorWakeLock: 6m 29s 18ms (238 times) realtime", " Wake lock u0a7 NlpWakeLock: 8m 13s 203ms (1479 times) realtime",
" Wake lock u0a7 GCM_CONN_ALARM: 6m 8s 587ms (239 times) realtime", " Wake lock u0a7 NlpCollectorWakeLock: 6m 29s 18ms (238 times) realtime",
" Wake lock 1000 *alarm*: 5m 11s 316ms (1469 times) realtime", " Wake lock u0a7 GCM_CONN_ALARM: 6m 8s 587ms (239 times) realtime",
" Wake lock u10 xxx: 4m 11s 316ms (1469 times) realtime", " Wake lock 1000 *alarm*: 5m 11s 316ms (1469 times) realtime",
" Wake lock u30 cst: 2m 11s 316ms (1469 times) realtime", " Wake lock u10 xxx: 4m 11s 316ms (1469 times) realtime",
" ", " Wake lock u30 cst: 2m 11s 316ms (1469 times) realtime",
" All wakeup reasons:", " ",
" Wakeup reason 200:qcom,smd-rpm:222:fc4: 11m 49s 332ms (0 times) realtime", " All wakeup reasons:",
" Wakeup reason 200:qcom,smd-rpm: 48s 45ms (0 times) realtime", " Wakeup reason 200:qcom,smd-rpm:222:fc4: 11m 49s 332ms (0 times) realtime",
" Wakeup reason 2:qcom,smd-rpm:2:f0.qm,mm:22:fc4mi: 3s 417ms (0 times) realtime", " Wakeup reason 200:qcom,smd-rpm: 48s 45ms (0 times) realtime",
" Wakeup reason 188:qcom,smd-adsp:200:qcom,smd-rpm: 1s 656ms (0 times) realtime", " Wakeup reason 2:qcom,smd-rpm:2:f0.qm,mm:22:fc4mi: 3s 417ms (0 times) realtime",
" Wakeup reason 58:qcom,smsm-modem:2:qcom,smd-rpm: 6m 16s 1ms (5 times) realtime", " Wakeup reason 188:qcom,smd-adsp:200:qcom,smd-rpm: 1s 656ms (0 times) realtime",
" Wakeup reason 57:qcom,smd-modem:200:qcom,smd-rpm: 40s 995ms (0 times) realtime", " Wakeup reason 58:qcom,smsm-modem:2:qcom,smd-rpm: 6m 16s 1ms (5 times) realtime",
" Wakeup reason unknown: 8s 455ms (0 times) realtime", " Wakeup reason 57:qcom,smd-modem:200:qcom,smd-rpm: 40s 995ms (0 times) realtime",
" Wakeup reason 9:bcmsdh_sdmmc:2:qcomd-rpm:240:mso: 8m 5s 9ms (0 times) realtime", " Wakeup reason unknown: 8s 455ms (0 times) realtime",
" ", " Wakeup reason 9:bcmsdh_sdmmc:2:qcomd-rpm:240:mso: 8m 5s 9ms (0 times) realtime",
" 0:", " ",
" User activity: 2 other", " 0:",
" Wake lock SCREEN_FROZEN realtime", " User activity: 2 other",
" Sensor 0: 9s 908ms realtime (1 times)", " Wake lock SCREEN_FROZEN realtime",
" Sensor 1: 9s 997ms realtime (1 times)", " Sensor 0: 9s 908ms realtime (1 times)",
" Foreground for: 2h 21m 5s 622ms", " Sensor 1: 9s 997ms realtime (1 times)",
" Apk android:", " Foreground for: 2h 21m 5s 622ms",
" 24 wakeup alarms", " Apk android:",
" u0a9:", " 24 wakeup alarms",
" Mobile network: 8.1KB received, 1.6KB sent (packets 291 received, 342 sent)", " u0a9:",
" Mobile radio active: 3m 43s 890ms (34.2%) 39x @ 354 mspp", " Mobile network: 8.1KB received, 1.6KB sent (packets 291 received, 342 sent)",
" Sensor 2: 12m 13s 15ms realtime (5 times)", " Mobile radio active: 3m 43s 890ms (34.2%) 39x @ 354 mspp",
" Sensor 32: (not used)", " Sensor 2: 12m 13s 15ms realtime (5 times)",
" Sensor 35: (not used)", " Sensor 32: (not used)",
"DUMP OF SERVICE procstats:", " Sensor 35: (not used)",
"COMMITTED STATS FROM 2015-03-20-02-01-02 (checked in):", "DUMP OF SERVICE package:",
" * com.android.systemui / u0a22 / v22:", "Package [com.google.android.calculator] (e075c9d):",
" TOTAL: 100% (159MB-160MB-161MB/153MB-153MB-154MB over 13)", " userId=10071",
" Persistent: 100% (159MB-160MB-161MB/153MB-153MB-154MB over 13)", " secondaryCpuAbi=null",
" * com.google.process.gapps / u0a9 / v22:", " versionCode=73000302 minSdk=10000 targetSdk=10000",
" TOTAL: 100% (22MB-24MB-25MB/18MB-19MB-20MB over 13)", " versionName=7.3 (3821978)",
" Imp Fg: 100% (22MB-24MB-25MB/18MB-19MB-20MB over 13)", " splits=[base]",
"DUMP OF SERVICE wifi:", "Package [com.google.android.googlequicksearchbox] (607929e):",
"Wi-Fi is enabled", " userId=10037",
"rec[0]: time=10-09 00:25:16.737 processed=DefaultState org=DeviceActiveState " " pkg=Package{af43294 com.google.android.googlequicksearchbox}",
+ "dest=<null> what=155654(0x26006)", " versionCode=300734793 minSdk=10000 targetSdk=10000",
"mScreenOff true", " versionName=6.16.35.26.arm64",
" rec[0]: time=10-08 16:49:55.034 processed=WatchdogEnabledState org=OnlineState " " apkSigningVersion=2",
+ "dest=OnlineWatchState what=135170(0x21002)", "DUMP OF SERVICE procstats:",
"rec[30]: time=10-08 13:06:50.379 processed=DriverStartedState org=ConnectedState " "COMMITTED STATS FROM 2015-03-20-02-01-02 (checked in):",
+ "dest=<null> what=131143(0x20047) (1)CMD_START_SCAN rt=4720806/7884852 10013 51 " " * com.android.systemui / u0a22 / v22:",
+ "ic=0 proc(ms):14 onGoing full started:1444334810368,11 cnt=24 rssi=-127 f=-1 " " TOTAL: 100% (159MB-160MB-161MB/153MB-153MB-154MB over 13)",
+ "sc=0 link=-1 tx=1.5, 1.7, 0.0 rx=8.4 fiv=20000 [on:3266 tx:65 rx:556 " " Persistent: 100% (159MB-160MB-161MB/153MB-153MB-154MB over 13)",
+ "period:1268] from screen [on:266962 period:266959]", " * com.google.process.gapps / u0a9 / v22:",
"rec[357]: time=10-08 13:10:13.199 processed=DriverStartedState org=ConnectedState " " TOTAL: 100% (22MB-24MB-25MB/18MB-19MB-20MB over 13)",
+ "dest=<null> what=131143(0x20047) (-2)CMD_START_SCAN rt=4923625/8087671 10013 " " Imp Fg: 100% (22MB-24MB-25MB/18MB-19MB-20MB over 13)",
+ "175 ic=0 proc(ms):2 onGoing full started:1444335011199,1999 cnt=24 rssi=-127 " "DUMP OF SERVICE wifi:",
+ "f=-1 sc=0 link=-1 tx=8.4, 1.7, 0.0 rx=6.7 fiv=20000 [on:0 tx:0 rx:0 period:990]" "Wi-Fi is enabled",
+ "from screen [on:467747 period:469779]", "rec[0]: time=10-09 00:25:16.737 processed=DefaultState org=DeviceActiveState "
"WifiConfigStore - Log Begin ----", + "dest=<null> what=155654(0x26006)",
"10-08 11:09:14.653 - Event [IFNAME=wlan0 CTRL-EVENT-SCAN-STARTED ]", "mScreenOff true",
"10-08 13:06:29.489 - Event [IFNAME=wlan0 CTRL-EVENT-DISCONNECTED " " rec[0]: time=10-08 16:49:55.034 processed=WatchdogEnabledState org=OnlineState "
+ "bssid=9c:1c:12:c3:d0:72 reason=0]", + "dest=OnlineWatchState what=135170(0x21002)",
"10-08 13:06:22.280 - Event [IFNAME=wlan0 CTRL-EVENT-SCAN-STARTED ]", "rec[30]: time=10-08 13:06:50.379 processed=DriverStartedState org=ConnectedState "
"10-08 13:06:25.363 - Event [IFNAME=wlan0 CTRL-EVENT-SCAN-STARTED ]", + "dest=<null> what=131143(0x20047) (1)CMD_START_SCAN rt=4720806/7884852 10013 51 "
"10-08 13:08:15.018 - Event [IFNAME=wlan0 CTRL-EVENT-DISCONNECTED " + "ic=0 proc(ms):14 onGoing full started:1444334810368,11 cnt=24 rssi=-127 f=-1 "
+ "bssid=9c:1c:12:e8:72:d2 reason=3 locally_generated=1]", + "sc=0 link=-1 tx=1.5, 1.7, 0.0 rx=8.4 fiv=20000 [on:3266 tx:65 rx:556 "
"10-08 13:08:15.324 - wlan0: 442:IFNAME=wlan0 ENABLE_NETWORK 0 -> true"); + "period:1268] from screen [on:266962 period:266959]",
"rec[357]: time=10-08 13:10:13.199 processed=DriverStartedState org=ConnectedState "
+ "dest=<null> what=131143(0x20047) (-2)CMD_START_SCAN rt=4923625/8087671 10013 "
+ "175 ic=0 proc(ms):2 onGoing full started:1444335011199,1999 cnt=24 rssi=-127 "
+ "f=-1 sc=0 link=-1 tx=8.4, 1.7, 0.0 rx=6.7 fiv=20000 [on:0 tx:0 rx:0 period:990]"
+ "from screen [on:467747 period:469779]",
"WifiConfigStore - Log Begin ----",
"10-08 11:09:14.653 - Event [IFNAME=wlan0 CTRL-EVENT-SCAN-STARTED ]",
"10-08 13:06:29.489 - Event [IFNAME=wlan0 CTRL-EVENT-DISCONNECTED "
+ "bssid=9c:1c:12:c3:d0:72 reason=0]",
"10-08 13:06:22.280 - Event [IFNAME=wlan0 CTRL-EVENT-SCAN-STARTED ]",
"10-08 13:06:25.363 - Event [IFNAME=wlan0 CTRL-EVENT-SCAN-STARTED ]",
"10-08 13:08:15.018 - Event [IFNAME=wlan0 CTRL-EVENT-DISCONNECTED "
+ "bssid=9c:1c:12:e8:72:d2 reason=3 locally_generated=1]",
"10-08 13:08:15.324 - wlan0: 442:IFNAME=wlan0 ENABLE_NETWORK 0 -> true");
DumpsysItem dumpsys = new DumpsysParser().parse(inputBlock); DumpsysItem dumpsys = new DumpsysParser().parse(inputBlock);
assertNotNull(dumpsys.getBatteryStats()); assertNotNull(dumpsys.getBatteryStats());
assertNotNull(dumpsys.getPackageStats());
assertNotNull(dumpsys.getProcStats()); assertNotNull(dumpsys.getProcStats());
assertNotNull(dumpsys.getWifiStats()); assertNotNull(dumpsys.getWifiStats());
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment