1a1b0464cb43903ed540f4c43fd423b16e398c04 |
|
12-Jan-2018 |
Bookatz <bookatz@google.com> |
Statsd and frameworks reference proto enums For frameworks constants that don't have intrinsic meaning (i.e. their actual value and order don't matter), so that it is unlikely that their values will be changed: This cl introduces proto enums representing some constants found in the Android codebase, and connects the two. By using the Proto enum as the source-of-truth, it means that Java and proto can be kept in sync. Otherwise, when the Java frameworks code changes, it silently breaks the protos from working properly, since the enums are wrong. By having the Java code reference the proto enums, it ensures that everything is in sync. The values of the constants are unchanged. But future changes to these constants will need to be done in the proto file, which the Java file merely references. The protos are necessary for incidentd and statsd and, in the future, possibly dumpsys. In this way, the logging mechanism is much less likely to get broken when new constants are added, and we can be ensured that the logging accurately reflects the underlying codebase. Bug: 69478930 Test: cts-tradefed run cts-dev -m CtsStatsdHostTestCases Test: cts-tradefed run cts-dev -m CtsIncidentHostTestCases Change-Id: If79032c34b2799db1e3e70cb47b1312fd72092b9
/frameworks/base/telephony/java/android/telephony/DataConnectionRealTimeInfo.java
|
ec1d60015386f12f70aaadaac2030bd7f40dd749 |
|
26-Jan-2016 |
Nathan Harold <nharold@google.com> |
Make DcRtInfo Power State Constants Final Bug: 26779884 Change-Id: Ia035b67fd682adb6542d6569d7634678f68a1e30
/frameworks/base/telephony/java/android/telephony/DataConnectionRealTimeInfo.java
|
2ffa11e4b71c545e34533ef827bdc1a07fbe8246 |
|
22-Apr-2014 |
Dianne Hackborn <hackbod@google.com> |
Start collecting mobile radio activity from the radio. Hook in to the new radio API to find out when the radio is active and use that to track its state in batter stats. We also still have the data being tracked from the kernel's emulation, and continue to use that if we don't get data from the radio. Currently this monitoring is turned off until some issues in the radio can be fixed that are providing bad data. Also add a new API to get estimated drain and charge times. Change-Id: Ifc4900fabb8f848f9cda361dce698664ea75f175
/frameworks/base/telephony/java/android/telephony/DataConnectionRealTimeInfo.java
|
070e061a289d771e62b58379eaed153fd285b04f |
|
16-Apr-2014 |
Wink Saville <wink@google.com> |
Add LISTEN_DATA_CONNECTIPON_REAL_TIME_INFO as listen event Also added DataConnectionRealTimeInfo structure which passed as a parameter to onDataConnectionRealTimeInfoChanged. Change-Id: Iadcbf9765af57c125bcdf74e3fc652ed6c8f7d42
/frameworks/base/telephony/java/android/telephony/DataConnectionRealTimeInfo.java
|