OSDN Git Service

improve mism support for phonestatelistner
authorchen xu <fionaxu@google.com>
Sun, 17 Mar 2019 07:50:56 +0000 (00:50 -0700)
committerchen xu <fionaxu@google.com>
Wed, 20 Mar 2019 16:39:06 +0000 (09:39 -0700)
commit2506ceb71e1535af49fd3495f8eae0bbdfe36c5b
treec5dd22f1e16623ef307cc8ee40e52fb5caa01248
parent74867d16614f1ab5b71fe425f791b93aeaf16fe8
improve mism support for phonestatelistner

1. throw exception if reuse the same listner for different sub
2. subId should come from TM instance not phonestateListener.
3. refactor settings to apply phonestatelistner with TM instances

Bug: 117555407
Test: Manual
Change-Id: I1af07798d7982575cccc27462af179182c033409
(cherry picked from commit 0ebc9b67e96d0c4a625837ce7a32dbea4afa44ab)
Merged-in: I1af07798d7982575cccc27462af179182c033409
services/core/java/com/android/server/TelephonyRegistry.java
telephony/java/android/telephony/TelephonyManager.java