| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package android.app; |
| 18 |
|
| 19 |
import android.content.ComponentName; |
| 20 |
import android.content.Context; |
| 21 |
import android.content.Intent; |
| 22 |
import android.content.pm.ApplicationInfo; |
| 23 |
import android.content.pm.PackageManager; |
| 24 |
import android.content.pm.ResolveInfo; |
| 25 |
import android.os.Binder; |
| 26 |
import android.os.Parcel; |
| 27 |
import android.os.Parcelable; |
| 28 |
import android.os.SystemProperties; |
| 29 |
import android.provider.Settings; |
| 30 |
import android.util.Printer; |
| 31 |
import android.util.Slog; |
| 32 |
|
| 33 |
import com.android.internal.util.FastPrintWriter; |
| 34 |
|
| 35 |
import java.io.PrintWriter; |
| 36 |
import java.io.StringWriter; |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
public class ApplicationErrorReport implements Parcelable { |
| 57 |
|
| 58 |
static final String SYSTEM_APPS_ERROR_RECEIVER_PROPERTY = "ro.error.receiver.system.apps"; |
| 59 |
|
| 60 |
|
| 61 |
static final String DEFAULT_ERROR_RECEIVER_PROPERTY = "ro.error.receiver.default"; |
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
public static final int TYPE_NONE = 0; |
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
public static final int TYPE_CRASH = 1; |
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
public static final int TYPE_ANR = 2; |
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
public static final int TYPE_BATTERY = 3; |
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
public static final int TYPE_RUNNING_SERVICE = 5; |
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
public int type; |
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
public String packageName; |
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
public String installerPackageName; |
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
public String processName; |
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
public long time; |
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
public boolean systemApp; |
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
public CrashInfo crashInfo; |
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
public AnrInfo anrInfo; |
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
public BatteryInfo batteryInfo; |
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
public RunningServiceInfo runningServiceInfo; |
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
public ApplicationErrorReport() { |
| 151 |
} |
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
ApplicationErrorReport(Parcel in) { |
| 158 |
readFromParcel(in); |
| 159 |
} |
| 160 |
|
| 161 |
public static ComponentName getErrorReportReceiver(Context context, |
| 162 |
String packageName, int appFlags) { |
| 163 |
|
| 164 |
int enabled = Settings.Global.getInt(context.getContentResolver(), |
| 165 |
Settings.Global.SEND_ACTION_APP_ERROR, 0); |
| 166 |
if (enabled == 0) { |
| 167 |
return null; |
| 168 |
} |
| 169 |
|
| 170 |
PackageManager pm = context.getPackageManager(); |
| 171 |
|
| 172 |
|
| 173 |
String candidate = null; |
| 174 |
ComponentName result = null; |
| 175 |
|
| 176 |
try { |
| 177 |
candidate = pm.getInstallerPackageName(packageName); |
| 178 |
} catch (IllegalArgumentException e) { |
| 179 |
|
| 180 |
} |
| 181 |
|
| 182 |
if (candidate != null) { |
| 183 |
result = getErrorReportReceiver(pm, packageName, candidate); |
| 184 |
if (result != null) { |
| 185 |
return result; |
| 186 |
} |
| 187 |
} |
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
if ((appFlags&ApplicationInfo.FLAG_SYSTEM) != 0) { |
| 192 |
candidate = SystemProperties.get(SYSTEM_APPS_ERROR_RECEIVER_PROPERTY); |
| 193 |
result = getErrorReportReceiver(pm, packageName, candidate); |
| 194 |
if (result != null) { |
| 195 |
return result; |
| 196 |
} |
| 197 |
} |
| 198 |
|
| 199 |
|
| 200 |
candidate = SystemProperties.get(DEFAULT_ERROR_RECEIVER_PROPERTY); |
| 201 |
return getErrorReportReceiver(pm, packageName, candidate); |
| 202 |
} |
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
|
| 212 |
|
| 213 |
static ComponentName getErrorReportReceiver(PackageManager pm, String errorPackage, |
| 214 |
String receiverPackage) { |
| 215 |
if (receiverPackage == null || receiverPackage.length() == 0) { |
| 216 |
return null; |
| 217 |
} |
| 218 |
|
| 219 |
|
| 220 |
if (receiverPackage.equals(errorPackage)) { |
| 221 |
return null; |
| 222 |
} |
| 223 |
|
| 224 |
Intent intent = new Intent(Intent.ACTION_APP_ERROR); |
| 225 |
intent.setPackage(receiverPackage); |
| 226 |
ResolveInfo info = pm.resolveActivity(intent, 0); |
| 227 |
if (info == null || info.activityInfo == null) { |
| 228 |
return null; |
| 229 |
} |
| 230 |
return new ComponentName(receiverPackage, info.activityInfo.name); |
| 231 |
} |
| 232 |
|
| 233 |
public void writeToParcel(Parcel dest, int flags) { |
| 234 |
dest.writeInt(type); |
| 235 |
dest.writeString(packageName); |
| 236 |
dest.writeString(installerPackageName); |
| 237 |
dest.writeString(processName); |
| 238 |
dest.writeLong(time); |
| 239 |
dest.writeInt(systemApp ? 1 : 0); |
| 240 |
dest.writeInt(crashInfo != null ? 1 : 0); |
| 241 |
|
| 242 |
switch (type) { |
| 243 |
case TYPE_CRASH: |
| 244 |
if (crashInfo != null) { |
| 245 |
crashInfo.writeToParcel(dest, flags); |
| 246 |
} |
| 247 |
break; |
| 248 |
case TYPE_ANR: |
| 249 |
anrInfo.writeToParcel(dest, flags); |
| 250 |
break; |
| 251 |
case TYPE_BATTERY: |
| 252 |
batteryInfo.writeToParcel(dest, flags); |
| 253 |
break; |
| 254 |
case TYPE_RUNNING_SERVICE: |
| 255 |
runningServiceInfo.writeToParcel(dest, flags); |
| 256 |
break; |
| 257 |
} |
| 258 |
} |
| 259 |
|
| 260 |
public void readFromParcel(Parcel in) { |
| 261 |
type = in.readInt(); |
| 262 |
packageName = in.readString(); |
| 263 |
installerPackageName = in.readString(); |
| 264 |
processName = in.readString(); |
| 265 |
time = in.readLong(); |
| 266 |
systemApp = in.readInt() == 1; |
| 267 |
boolean hasCrashInfo = in.readInt() == 1; |
| 268 |
|
| 269 |
switch (type) { |
| 270 |
case TYPE_CRASH: |
| 271 |
crashInfo = hasCrashInfo ? new CrashInfo(in) : null; |
| 272 |
anrInfo = null; |
| 273 |
batteryInfo = null; |
| 274 |
runningServiceInfo = null; |
| 275 |
break; |
| 276 |
case TYPE_ANR: |
| 277 |
anrInfo = new AnrInfo(in); |
| 278 |
crashInfo = null; |
| 279 |
batteryInfo = null; |
| 280 |
runningServiceInfo = null; |
| 281 |
break; |
| 282 |
case TYPE_BATTERY: |
| 283 |
batteryInfo = new BatteryInfo(in); |
| 284 |
anrInfo = null; |
| 285 |
crashInfo = null; |
| 286 |
runningServiceInfo = null; |
| 287 |
break; |
| 288 |
case TYPE_RUNNING_SERVICE: |
| 289 |
batteryInfo = null; |
| 290 |
anrInfo = null; |
| 291 |
crashInfo = null; |
| 292 |
runningServiceInfo = new RunningServiceInfo(in); |
| 293 |
break; |
| 294 |
} |
| 295 |
} |
| 296 |
|
| 297 |
|
| 298 |
|
| 299 |
|
| 300 |
public static class CrashInfo { |
| 301 |
|
| 302 |
|
| 303 |
|
| 304 |
public String exceptionClassName; |
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
public String exceptionMessage; |
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
|
| 314 |
public String throwFileName; |
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
|
| 319 |
public String throwClassName; |
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
public String throwMethodName; |
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
public int throwLineNumber; |
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
public String stackTrace; |
| 335 |
|
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
|
| 340 |
public String crashTag; |
| 341 |
|
| 342 |
|
| 343 |
|
| 344 |
|
| 345 |
public CrashInfo() { |
| 346 |
} |
| 347 |
|
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
public CrashInfo(Throwable tr) { |
| 352 |
StringWriter sw = new StringWriter(); |
| 353 |
PrintWriter pw = new FastPrintWriter(sw, false, 256); |
| 354 |
tr.printStackTrace(pw); |
| 355 |
pw.flush(); |
| 356 |
stackTrace = sanitizeString(sw.toString()); |
| 357 |
exceptionMessage = tr.getMessage(); |
| 358 |
|
| 359 |
|
| 360 |
Throwable rootTr = tr; |
| 361 |
while (tr.getCause() != null) { |
| 362 |
tr = tr.getCause(); |
| 363 |
if (tr.getStackTrace() != null && tr.getStackTrace().length > 0) { |
| 364 |
rootTr = tr; |
| 365 |
} |
| 366 |
String msg = tr.getMessage(); |
| 367 |
if (msg != null && msg.length() > 0) { |
| 368 |
exceptionMessage = msg; |
| 369 |
} |
| 370 |
} |
| 371 |
|
| 372 |
exceptionClassName = rootTr.getClass().getName(); |
| 373 |
if (rootTr.getStackTrace().length > 0) { |
| 374 |
StackTraceElement trace = rootTr.getStackTrace()[0]; |
| 375 |
throwFileName = trace.getFileName(); |
| 376 |
throwClassName = trace.getClassName(); |
| 377 |
throwMethodName = trace.getMethodName(); |
| 378 |
throwLineNumber = trace.getLineNumber(); |
| 379 |
} else { |
| 380 |
throwFileName = "unknown"; |
| 381 |
throwClassName = "unknown"; |
| 382 |
throwMethodName = "unknown"; |
| 383 |
throwLineNumber = 0; |
| 384 |
} |
| 385 |
|
| 386 |
exceptionMessage = sanitizeString(exceptionMessage); |
| 387 |
} |
| 388 |
|
| 389 |
|
| 390 |
public void appendStackTrace(String tr) { |
| 391 |
stackTrace = sanitizeString(stackTrace + tr); |
| 392 |
} |
| 393 |
|
| 394 |
|
| 395 |
|
| 396 |
|
| 397 |
private String sanitizeString(String s) { |
| 398 |
int prefixLength = 10 * 1024; |
| 399 |
int suffixLength = 10 * 1024; |
| 400 |
int acceptableLength = prefixLength + suffixLength; |
| 401 |
|
| 402 |
if (s != null && s.length() > acceptableLength) { |
| 403 |
String replacement = |
| 404 |
"\n[TRUNCATED " + (s.length() - acceptableLength) + " CHARS]\n"; |
| 405 |
|
| 406 |
StringBuilder sb = new StringBuilder(acceptableLength + replacement.length()); |
| 407 |
sb.append(s.substring(0, prefixLength)); |
| 408 |
sb.append(replacement); |
| 409 |
sb.append(s.substring(s.length() - suffixLength)); |
| 410 |
return sb.toString(); |
| 411 |
} |
| 412 |
return s; |
| 413 |
} |
| 414 |
|
| 415 |
|
| 416 |
|
| 417 |
|
| 418 |
public CrashInfo(Parcel in) { |
| 419 |
exceptionClassName = in.readString(); |
| 420 |
exceptionMessage = in.readString(); |
| 421 |
throwFileName = in.readString(); |
| 422 |
throwClassName = in.readString(); |
| 423 |
throwMethodName = in.readString(); |
| 424 |
throwLineNumber = in.readInt(); |
| 425 |
stackTrace = in.readString(); |
| 426 |
crashTag = in.readString(); |
| 427 |
} |
| 428 |
|
| 429 |
|
| 430 |
|
| 431 |
|
| 432 |
public void writeToParcel(Parcel dest, int flags) { |
| 433 |
int start = dest.dataPosition(); |
| 434 |
dest.writeString(exceptionClassName); |
| 435 |
dest.writeString(exceptionMessage); |
| 436 |
dest.writeString(throwFileName); |
| 437 |
dest.writeString(throwClassName); |
| 438 |
dest.writeString(throwMethodName); |
| 439 |
dest.writeInt(throwLineNumber); |
| 440 |
dest.writeString(stackTrace); |
| 441 |
dest.writeString(crashTag); |
| 442 |
int total = dest.dataPosition()-start; |
| 443 |
if (Binder.CHECK_PARCEL_SIZE && total > 20*1024) { |
| 444 |
Slog.d("Error", "ERR: exClass=" + exceptionClassName); |
| 445 |
Slog.d("Error", "ERR: exMsg=" + exceptionMessage); |
| 446 |
Slog.d("Error", "ERR: file=" + throwFileName); |
| 447 |
Slog.d("Error", "ERR: class=" + throwClassName); |
| 448 |
Slog.d("Error", "ERR: method=" + throwMethodName + " line=" + throwLineNumber); |
| 449 |
Slog.d("Error", "ERR: stack=" + stackTrace); |
| 450 |
Slog.d("Error", "ERR: TOTAL BYTES WRITTEN: " + (dest.dataPosition()-start)); |
| 451 |
} |
| 452 |
} |
| 453 |
|
| 454 |
|
| 455 |
|
| 456 |
|
| 457 |
public void dump(Printer pw, String prefix) { |
| 458 |
pw.println(prefix + "exceptionClassName: " + exceptionClassName); |
| 459 |
pw.println(prefix + "exceptionMessage: " + exceptionMessage); |
| 460 |
pw.println(prefix + "throwFileName: " + throwFileName); |
| 461 |
pw.println(prefix + "throwClassName: " + throwClassName); |
| 462 |
pw.println(prefix + "throwMethodName: " + throwMethodName); |
| 463 |
pw.println(prefix + "throwLineNumber: " + throwLineNumber); |
| 464 |
pw.println(prefix + "stackTrace: " + stackTrace); |
| 465 |
} |
| 466 |
} |
| 467 |
|
| 468 |
|
| 469 |
|
| 470 |
|
| 471 |
|
| 472 |
|
| 473 |
public static class ParcelableCrashInfo extends CrashInfo implements Parcelable { |
| 474 |
|
| 475 |
|
| 476 |
|
| 477 |
public ParcelableCrashInfo() { |
| 478 |
} |
| 479 |
|
| 480 |
|
| 481 |
|
| 482 |
|
| 483 |
public ParcelableCrashInfo(Throwable tr) { |
| 484 |
super(tr); |
| 485 |
} |
| 486 |
|
| 487 |
public ParcelableCrashInfo(Parcel in) { |
| 488 |
super(in); |
| 489 |
} |
| 490 |
|
| 491 |
public int describeContents() { |
| 492 |
return 0; |
| 493 |
} |
| 494 |
|
| 495 |
public static final @android.annotation.NonNull Parcelable.Creator<ParcelableCrashInfo> CREATOR = |
| 496 |
new Parcelable.Creator<ParcelableCrashInfo>() { |
| 497 |
@Override |
| 498 |
public ParcelableCrashInfo createFromParcel(Parcel in) { |
| 499 |
return new ParcelableCrashInfo(in); |
| 500 |
} |
| 501 |
|
| 502 |
@Override |
| 503 |
public ParcelableCrashInfo[] newArray(int size) { |
| 504 |
return new ParcelableCrashInfo[size]; |
| 505 |
} |
| 506 |
}; |
| 507 |
} |
| 508 |
|
| 509 |
|
| 510 |
|
| 511 |
|
| 512 |
public static class AnrInfo { |
| 513 |
|
| 514 |
|
| 515 |
|
| 516 |
public String activity; |
| 517 |
|
| 518 |
|
| 519 |
|
| 520 |
|
| 521 |
public String cause; |
| 522 |
|
| 523 |
|
| 524 |
|
| 525 |
|
| 526 |
public String info; |
| 527 |
|
| 528 |
|
| 529 |
|
| 530 |
|
| 531 |
public AnrInfo() { |
| 532 |
} |
| 533 |
|
| 534 |
|
| 535 |
|
| 536 |
|
| 537 |
public AnrInfo(Parcel in) { |
| 538 |
activity = in.readString(); |
| 539 |
cause = in.readString(); |
| 540 |
info = in.readString(); |
| 541 |
} |
| 542 |
|
| 543 |
|
| 544 |
|
| 545 |
|
| 546 |
public void writeToParcel(Parcel dest, int flags) { |
| 547 |
dest.writeString(activity); |
| 548 |
dest.writeString(cause); |
| 549 |
dest.writeString(info); |
| 550 |
} |
| 551 |
|
| 552 |
|
| 553 |
|
| 554 |
|
| 555 |
public void dump(Printer pw, String prefix) { |
| 556 |
pw.println(prefix + "activity: " + activity); |
| 557 |
pw.println(prefix + "cause: " + cause); |
| 558 |
pw.println(prefix + "info: " + info); |
| 559 |
} |
| 560 |
} |
| 561 |
|
| 562 |
|
| 563 |
|
| 564 |
|
| 565 |
public static class BatteryInfo { |
| 566 |
|
| 567 |
|
| 568 |
|
| 569 |
public int usagePercent; |
| 570 |
|
| 571 |
|
| 572 |
|
| 573 |
|
| 574 |
|
| 575 |
public long durationMicros; |
| 576 |
|
| 577 |
|
| 578 |
|
| 579 |
|
| 580 |
public String usageDetails; |
| 581 |
|
| 582 |
|
| 583 |
|
| 584 |
|
| 585 |
public String checkinDetails; |
| 586 |
|
| 587 |
|
| 588 |
|
| 589 |
|
| 590 |
public BatteryInfo() { |
| 591 |
} |
| 592 |
|
| 593 |
|
| 594 |
|
| 595 |
|
| 596 |
public BatteryInfo(Parcel in) { |
| 597 |
usagePercent = in.readInt(); |
| 598 |
durationMicros = in.readLong(); |
| 599 |
usageDetails = in.readString(); |
| 600 |
checkinDetails = in.readString(); |
| 601 |
} |
| 602 |
|
| 603 |
|
| 604 |
|
| 605 |
|
| 606 |
public void writeToParcel(Parcel dest, int flags) { |
| 607 |
dest.writeInt(usagePercent); |
| 608 |
dest.writeLong(durationMicros); |
| 609 |
dest.writeString(usageDetails); |
| 610 |
dest.writeString(checkinDetails); |
| 611 |
} |
| 612 |
|
| 613 |
|
| 614 |
|
| 615 |
|
| 616 |
public void dump(Printer pw, String prefix) { |
| 617 |
pw.println(prefix + "usagePercent: " + usagePercent); |
| 618 |
pw.println(prefix + "durationMicros: " + durationMicros); |
| 619 |
pw.println(prefix + "usageDetails: " + usageDetails); |
| 620 |
pw.println(prefix + "checkinDetails: " + checkinDetails); |
| 621 |
} |
| 622 |
} |
| 623 |
|
| 624 |
|
| 625 |
|
| 626 |
|
| 627 |
public static class RunningServiceInfo { |
| 628 |
|
| 629 |
|
| 630 |
|
| 631 |
public long durationMillis; |
| 632 |
|
| 633 |
|
| 634 |
|
| 635 |
|
| 636 |
public String serviceDetails; |
| 637 |
|
| 638 |
|
| 639 |
|
| 640 |
|
| 641 |
public RunningServiceInfo() { |
| 642 |
} |
| 643 |
|
| 644 |
|
| 645 |
|
| 646 |
|
| 647 |
public RunningServiceInfo(Parcel in) { |
| 648 |
durationMillis = in.readLong(); |
| 649 |
serviceDetails = in.readString(); |
| 650 |
} |
| 651 |
|
| 652 |
|
| 653 |
|
| 654 |
|
| 655 |
public void writeToParcel(Parcel dest, int flags) { |
| 656 |
dest.writeLong(durationMillis); |
| 657 |
dest.writeString(serviceDetails); |
| 658 |
} |
| 659 |
|
| 660 |
|
| 661 |
|
| 662 |
|
| 663 |
public void dump(Printer pw, String prefix) { |
| 664 |
pw.println(prefix + "durationMillis: " + durationMillis); |
| 665 |
pw.println(prefix + "serviceDetails: " + serviceDetails); |
| 666 |
} |
| 667 |
} |
| 668 |
|
| 669 |
public static final @android.annotation.NonNull Parcelable.Creator<ApplicationErrorReport> CREATOR |
| 670 |
= new Parcelable.Creator<ApplicationErrorReport>() { |
| 671 |
public ApplicationErrorReport createFromParcel(Parcel source) { |
| 672 |
return new ApplicationErrorReport(source); |
| 673 |
} |
| 674 |
|
| 675 |
public ApplicationErrorReport[] newArray(int size) { |
| 676 |
return new ApplicationErrorReport[size]; |
| 677 |
} |
| 678 |
}; |
| 679 |
|
| 680 |
public int describeContents() { |
| 681 |
return 0; |
| 682 |
} |
| 683 |
|
| 684 |
|
| 685 |
|
| 686 |
|
| 687 |
public void dump(Printer pw, String prefix) { |
| 688 |
pw.println(prefix + "type: " + type); |
| 689 |
pw.println(prefix + "packageName: " + packageName); |
| 690 |
pw.println(prefix + "installerPackageName: " + installerPackageName); |
| 691 |
pw.println(prefix + "processName: " + processName); |
| 692 |
pw.println(prefix + "time: " + time); |
| 693 |
pw.println(prefix + "systemApp: " + systemApp); |
| 694 |
|
| 695 |
switch (type) { |
| 696 |
case TYPE_CRASH: |
| 697 |
crashInfo.dump(pw, prefix); |
| 698 |
break; |
| 699 |
case TYPE_ANR: |
| 700 |
anrInfo.dump(pw, prefix); |
| 701 |
break; |
| 702 |
case TYPE_BATTERY: |
| 703 |
batteryInfo.dump(pw, prefix); |
| 704 |
break; |
| 705 |
case TYPE_RUNNING_SERVICE: |
| 706 |
runningServiceInfo.dump(pw, prefix); |
| 707 |
break; |
| 708 |
} |
| 709 |
} |
| 710 |
} |