Linear bytes scale, time ticks on first week day.

Move bytes to linear instead of logarithmic scale.  Also render time
ticks on first week day based on locale.  Also enable testing of
specific IMSI through setprop.

Bug: 5452612, 5829693
Change-Id: I13200cf58a39bfe0ac343e1f83165e899867641b
This commit is contained in:
Jeff Sharkey
2012-02-03 19:27:07 -08:00
parent 47e1c0bd47
commit f3871fb2b2
2 changed files with 48 additions and 17 deletions

View File

@@ -151,7 +151,9 @@ public class DataUsageSummary extends Fragment {
// TODO: remove this testing code
private static final boolean TEST_ANIM = false;
private static final boolean TEST_RADIOS = false;
private static final String TEST_RADIOS_PROP = "test.radios";
private static final String TEST_SUBSCRIBER_PROP = "test.subscriberid";
private static final String TAB_3G = "3g";
private static final String TAB_4G = "4g";
@@ -1217,7 +1219,8 @@ public class DataUsageSummary extends Fragment {
private static String getActiveSubscriberId(Context context) {
final TelephonyManager telephony = (TelephonyManager) context.getSystemService(
Context.TELEPHONY_SERVICE);
return telephony.getSubscriberId();
final String actualSubscriberId = telephony.getSubscriberId();
return SystemProperties.get(TEST_SUBSCRIBER_PROP, actualSubscriberId);
}
private DataUsageChartListener mChartListener = new DataUsageChartListener() {