OSDN Git Service

Prevent DivideByZero error in BatteryStatsImpl
authorAdam Lesinski <adamlesinski@google.com>
Tue, 8 Dec 2015 20:06:55 +0000 (12:06 -0800)
committerAdam Lesinski <adamlesinski@google.com>
Thu, 10 Dec 2015 00:48:24 +0000 (00:48 +0000)
commitba88e68fe47b66f1fc5d10c15f04f20fe662399e
tree34b07bf2d99d9758841cfd91650f346d8b01a291
parent180dd72a9b36ca6f74e5ad255347d815a0c8729a
Prevent DivideByZero error in BatteryStatsImpl

It was assumed that when a UID had either rx or tx bytes/packets that it would
have the other as well.

Bug:25706750
Change-Id: Iefac59a6bd02876aed9a0bac218d187b81807a95
core/java/com/android/internal/os/BatteryStatsImpl.java