1{ 2 "methods": { 3 "addOnSubscriptionsChangedListener(android.telephony.SubscriptionManager.OnSubscriptionsChangedListener)": { 4 "isImplementation": true, 5 "modifiers": [ 6 "protected" 7 ], 8 "params": [ 9 "listener" 10 ], 11 "returnType": "void", 12 "exceptions": [], 13 "minSdk": 22, 14 "name": "addOnSubscriptionsChangedListener(android.telephony.SubscriptionManager.OnSubscriptionsChangedListener)", 15 "documentation": "Adds a listener to a local list of listeners. Will be triggered by {@link\n#setActiveSubscriptionInfoList} when the local list of {@link SubscriptionInfo} is updated.\n" 16 }, 17 "clearNetworkRoamingStatus()": { 18 "isImplementation": false, 19 "modifiers": [ 20 "public" 21 ], 22 "params": [], 23 "returnType": "void", 24 "exceptions": [], 25 "name": "clearNetworkRoamingStatus()", 26 "documentation": "Clears the local cache of roaming subscription Ids used by {@link #isNetworkRoaming}. " 27 }, 28 "dispatchOnSubscriptionsChanged()": { 29 "isImplementation": false, 30 "modifiers": [ 31 "private" 32 ], 33 "params": [], 34 "returnType": "void", 35 "exceptions": [], 36 "name": "dispatchOnSubscriptionsChanged()", 37 "documentation": "Notifies {@link OnSubscriptionsChangedListener} listeners that the list of {@link\nSubscriptionInfo} has been updated.\n" 38 }, 39 "getActiveSubscriptionIdList()": { 40 "isImplementation": true, 41 "modifiers": [ 42 "protected" 43 ], 44 "params": [], 45 "returnType": "int[]", 46 "exceptions": [], 47 "minSdk": 22, 48 "name": "getActiveSubscriptionIdList()", 49 "documentation": "Returns subscription Ids that were set via {@link #setActiveSubscriptionInfoList}. " 50 }, 51 "getActiveSubscriptionInfo(int)": { 52 "isImplementation": true, 53 "modifiers": [ 54 "protected" 55 ], 56 "params": [ 57 "subId" 58 ], 59 "returnType": "android.telephony.SubscriptionInfo", 60 "exceptions": [], 61 "minSdk": 22, 62 "name": "getActiveSubscriptionInfo(int)", 63 "documentation": "Returns subscription that were set via {@link #setActiveSubscriptionInfoList} if it can find\none with the specified id or null if none found.\n" 64 }, 65 "getActiveSubscriptionInfoCount()": { 66 "isImplementation": true, 67 "modifiers": [ 68 "protected" 69 ], 70 "params": [], 71 "returnType": "int", 72 "exceptions": [], 73 "minSdk": 22, 74 "name": "getActiveSubscriptionInfoCount()", 75 "documentation": "Returns the size of the list of {@link SubscriptionInfo} that were set via {@link\n#setActiveSubscriptionInfoList}. If no list was set, returns 0.\n" 76 }, 77 "getActiveSubscriptionInfoForSimSlotIndex(int)": { 78 "isImplementation": true, 79 "modifiers": [ 80 "protected" 81 ], 82 "params": [ 83 "slotIndex" 84 ], 85 "returnType": "android.telephony.SubscriptionInfo", 86 "exceptions": [], 87 "minSdk": 24, 88 "name": "getActiveSubscriptionInfoForSimSlotIndex(int)", 89 "documentation": "Returns subscription that were set via {@link #setActiveSubscriptionInfoList} if it can find\none with the specified slot index or null if none found.\n" 90 }, 91 "getActiveSubscriptionInfoList()": { 92 "isImplementation": true, 93 "modifiers": [ 94 "protected" 95 ], 96 "params": [], 97 "returnType": "java.util.List\u003candroid.telephony.SubscriptionInfo\u003e", 98 "exceptions": [], 99 "minSdk": 22, 100 "name": "getActiveSubscriptionInfoList()", 101 "documentation": "Returns the active list of {@link SubscriptionInfo} that were set via {@link\n#setActiveSubscriptionInfoList}.\n" 102 }, 103 "getDefaultDataSubscriptionId()": { 104 "isImplementation": true, 105 "modifiers": [ 106 "protected", 107 "static" 108 ], 109 "params": [], 110 "returnType": "int", 111 "exceptions": [], 112 "minSdk": 24, 113 "name": "getDefaultDataSubscriptionId()", 114 "documentation": "Returns value set with {@link #setDefaultDataSubscriptionId(int)}. " 115 }, 116 "getDefaultSmsSubscriptionId()": { 117 "isImplementation": true, 118 "modifiers": [ 119 "protected", 120 "static" 121 ], 122 "params": [], 123 "returnType": "int", 124 "exceptions": [], 125 "minSdk": 24, 126 "name": "getDefaultSmsSubscriptionId()", 127 "documentation": "Returns value set with {@link #setDefaultSmsSubscriptionId(int)}. " 128 }, 129 "getDefaultSubscriptionId()": { 130 "isImplementation": true, 131 "modifiers": [ 132 "protected", 133 "static" 134 ], 135 "params": [], 136 "returnType": "int", 137 "exceptions": [], 138 "minSdk": 24, 139 "name": "getDefaultSubscriptionId()", 140 "documentation": "Returns value set with {@link #setDefaultSubscriptionId(int)}. " 141 }, 142 "getDefaultVoiceSubscriptionId()": { 143 "isImplementation": true, 144 "modifiers": [ 145 "protected", 146 "static" 147 ], 148 "params": [], 149 "returnType": "int", 150 "exceptions": [], 151 "minSdk": 24, 152 "name": "getDefaultVoiceSubscriptionId()", 153 "documentation": "Returns value set with {@link #setDefaultVoiceSubscriptionId(int)}. " 154 }, 155 "isNetworkRoaming(int)": { 156 "isImplementation": true, 157 "modifiers": [ 158 "protected" 159 ], 160 "params": [ 161 "simSubscriptionId" 162 ], 163 "returnType": "boolean", 164 "exceptions": [], 165 "minSdk": 22, 166 "name": "isNetworkRoaming(int)", 167 "documentation": "Uses the local cache of roaming sim subscription Ids managed by {@link\n#setNetworkRoamingStatus} to return subscription Ids marked as roaming. Otherwise subscription\nIds will be considered as non-roaming if they are not in the cache.\n" 168 }, 169 "removeOnSubscriptionsChangedListener(android.telephony.SubscriptionManager.OnSubscriptionsChangedListener)": { 170 "isImplementation": true, 171 "modifiers": [ 172 "protected" 173 ], 174 "params": [ 175 "listener" 176 ], 177 "returnType": "void", 178 "exceptions": [], 179 "minSdk": 22, 180 "name": "removeOnSubscriptionsChangedListener(android.telephony.SubscriptionManager.OnSubscriptionsChangedListener)", 181 "documentation": "Removes a listener from a local list of listeners. Will be triggered by {@link\n#setActiveSubscriptionInfoList} when the local list of {@link SubscriptionInfo} is updated.\n" 182 }, 183 "reset()": { 184 "isImplementation": false, 185 "modifiers": [ 186 "public", 187 "static" 188 ], 189 "params": [], 190 "returnType": "void", 191 "exceptions": [], 192 "name": "reset()" 193 }, 194 "setActiveSubscriptionInfoList(java.util.List\u003candroid.telephony.SubscriptionInfo\u003e)": { 195 "isImplementation": false, 196 "modifiers": [ 197 "public" 198 ], 199 "params": [ 200 "list" 201 ], 202 "returnType": "void", 203 "exceptions": [], 204 "name": "setActiveSubscriptionInfoList(java.util.List\u003candroid.telephony.SubscriptionInfo\u003e)", 205 "documentation": "Sets the active list of {@link SubscriptionInfo}. This call internally triggers {@link\nOnSubscriptionsChangedListener#onSubscriptionsChanged()} to all the listeners.\n@param list - The subscription info list, can be null.\n" 206 }, 207 "setActiveSubscriptionInfos(android.telephony.SubscriptionInfo...)": { 208 "isImplementation": false, 209 "modifiers": [ 210 "public" 211 ], 212 "params": [ 213 "infos" 214 ], 215 "returnType": "void", 216 "exceptions": [], 217 "name": "setActiveSubscriptionInfos(android.telephony.SubscriptionInfo...)", 218 "documentation": "Sets the active list of {@link SubscriptionInfo}. This call internally triggers {@link\nOnSubscriptionsChangedListener#onSubscriptionsChanged()} to all the listeners.\n" 219 }, 220 "setDefaultDataSubscriptionId(int)": { 221 "isImplementation": false, 222 "modifiers": [ 223 "public", 224 "static" 225 ], 226 "params": [ 227 "defaultDataSubscriptionId" 228 ], 229 "returnType": "void", 230 "exceptions": [], 231 "name": "setDefaultDataSubscriptionId(int)" 232 }, 233 "setDefaultSmsSubscriptionId(int)": { 234 "isImplementation": false, 235 "modifiers": [ 236 "public", 237 "static" 238 ], 239 "params": [ 240 "defaultSmsSubscriptionId" 241 ], 242 "returnType": "void", 243 "exceptions": [], 244 "name": "setDefaultSmsSubscriptionId(int)" 245 }, 246 "setDefaultSubscriptionId(int)": { 247 "isImplementation": false, 248 "modifiers": [ 249 "public", 250 "static" 251 ], 252 "params": [ 253 "defaultSubscriptionId" 254 ], 255 "returnType": "void", 256 "exceptions": [], 257 "name": "setDefaultSubscriptionId(int)", 258 "documentation": "Sets the value that will be returned by {@link #getDefaultSubscriptionId()}. " 259 }, 260 "setDefaultVoiceSubscriptionId(int)": { 261 "isImplementation": false, 262 "modifiers": [ 263 "public", 264 "static" 265 ], 266 "params": [ 267 "defaultVoiceSubscriptionId" 268 ], 269 "returnType": "void", 270 "exceptions": [], 271 "name": "setDefaultVoiceSubscriptionId(int)" 272 }, 273 "setNetworkRoamingStatus(int,boolean)": { 274 "isImplementation": false, 275 "modifiers": [ 276 "public" 277 ], 278 "params": [ 279 "simSubscriptionId", 280 "isNetworkRoaming" 281 ], 282 "returnType": "void", 283 "exceptions": [], 284 "name": "setNetworkRoamingStatus(int,boolean)", 285 "documentation": "If isNetworkRoaming is set, it will mark the provided sim subscriptionId as roaming in a local\ncache. If isNetworkRoaming is unset it will remove the subscriptionId from the local cache. The\nlocal cache is used to provide roaming status returned by {@link #isNetworkRoaming}.\n" 286 } 287 }, 288 "imports": [ 289 "android.os.Build.VERSION_CODES.LOLLIPOP_MR1", 290 "android.os.Build.VERSION_CODES.N", 291 "android.telephony.SubscriptionInfo", 292 "android.telephony.SubscriptionManager", 293 "android.telephony.SubscriptionManager.OnSubscriptionsChangedListener", 294 "java.util.ArrayList", 295 "java.util.Arrays", 296 "java.util.Collections", 297 "java.util.HashSet", 298 "java.util.List", 299 "java.util.Set", 300 "org.robolectric.annotation.HiddenApi", 301 "org.robolectric.annotation.Implementation", 302 "org.robolectric.annotation.Implements", 303 "org.robolectric.annotation.Resetter", 304 "org.robolectric.util.ReflectionHelpers", 305 "org.robolectric.shadows.ShadowSubscriptionManager.SubscriptionInfoBuilder" 306 ], 307 "name": "org.robolectric.shadows.ShadowSubscriptionManager" 308}