summaryrefslogtreecommitdiff
path: root/tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java
diff options
context:
space:
mode:
authorjunyulai <junyulai@google.com>2020-08-18 18:50:13 +0800
committerjunyulai <junyulai@google.com>2020-08-25 18:03:38 +0800
commit781bce9c7f76970345a219881ed6e09d02bdbeb9 (patch)
tree5dad6c036b1a87040cf54bb1c12da2237898927d /tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java
parent5063505fab8d1eb986cf59851289a387114e49cc (diff)
Skip RAT type listener registration if IMSI is not available
Currently, if SIM is inserted but IMSI is not available, such as SIM PIN locked state. Information of such SIM will still be available but IMSI is not. Which makes NetworkStatsSubscriptionMonitor failed to store IMSI locally for later RAT type query. Hence, NETWORK_TYPE_UNKNOWN is always returned for such SIM. Skip the registration until the IMSI is available. This is safe since there will be another onSubscriptionsChanged event when that happens. Test: enable SIM PIN and manually test Test: atest NetworkStatsSubscriptionsMonitorTest#testSubscriberIdUnavailable Test: ./out/host/linux-x86/bin/statsd_testdrive 10082 Bug: 160941101 Merged-In: I408379b3c432d9e62e0837d6b4f6551cc7838e29 Change-Id: I408379b3c432d9e62e0837d6b4f6551cc7838e29 (cherry-picked from ag/12400327)
Diffstat (limited to 'tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java')
0 files changed, 0 insertions, 0 deletions