読者です 読者をやめる 読者になる 読者になる

のねのBlog

パソコンやソフト開発で起きた問題など書きます。よろしくお願いします。

BatteryStatsService

system_process E/BatteryStatsService: no controller energy info supplied

Cross Reference: /frameworks/base/services/core/java/com/android/server/am/BatteryStatsService.java

   1390     /**
   1391      * Helper method to extract the Parcelable controller info from a
   1392      * SynchronousResultReceiver.
   1393      */
   1394     private static <T extends Parcelable> T awaitControllerInfo(
   1395             @Nullable SynchronousResultReceiver receiver) throws TimeoutException {
   1396         if (receiver == null) {
   1397             return null;
   1398         }
   1399 
   1400         final SynchronousResultReceiver.Result result =
   1401                 receiver.awaitResult(EXTERNAL_STATS_SYNC_TIMEOUT_MILLIS);
   1402         if (result.bundle != null) {
   1403             // This is the final destination for the Bundle.
   1404             result.bundle.setDefusable(true);
   1405 
   1406             final T data = result.bundle.getParcelable(BatteryStats.RESULT_RECEIVER_CONTROLLER_KEY);
   1407             if (data != null) {
   1408                 return data;
   1409             }
   1410         }
   1411         Slog.e(TAG, "no controller energy info supplied"); <==========
   1412         return null;
   1413     }