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>
Tue, 19 Mar 2019 21:55:06 +0000 (14:55 -0700)
commit0ebc9b67e96d0c4a625837ce7a32dbea4afa44ab
tree24dd01aa317b5e6db697fe717f4b8fa62b3bc9c0
parentb3e900902aa5e55ae27beb587223be9af9f7890a
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
services/core/java/com/android/server/TelephonyRegistry.java
telephony/java/android/telephony/TelephonyManager.java