Home
last modified time | relevance | path

Searched refs:serviceState (Results 1 – 5 of 5) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowBackupManager.java44 private static BackupManagerServiceState serviceState = new BackupManagerServiceState(); field in ShadowBackupManager
48 serviceState = new BackupManagerServiceState(); in reset()
62 serviceState.backupEnabled = isEnabled; in setBackupEnabled()
69 return serviceState.backupEnabled; in isBackupEnabled()
86 Long token = serviceState.restoredPackages.get(packageName); in getPackageRestoreToken()
92 serviceState.restoreData.put(restoreToken, packages); in addAvailableRestoreSets()
112 Set<Long> restoreTokens = serviceState.restoreData.keySet(); in getAvailableRestoreSets()
148 List<String> restorePackages = new ArrayList<>(serviceState.restoreData.get(token)); in restorePackages()
156 serviceState.restoredPackages.put(restorePackages.get(index), token); in restorePackages()
159 serviceState.lastRestoreToken = token; in restorePackages()
[all …]
DShadowTelephonyManager.java80 private ServiceState serviceState; field in ShadowTelephonyManager
585 return serviceState;
589 public void setServiceState(ServiceState serviceState) {
590 this.serviceState = serviceState;
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DTelephonyEvents.java216 ServiceStateEvent(ServiceState serviceState, int subscriptionId) { in ServiceStateEvent() argument
217 mServiceState = serviceState; in ServiceStateEvent()
220 serviceState.getState()); in ServiceStateEvent()
223 serviceState.isEmergencyOnly()) { in ServiceStateEvent()
237 JSONObject serviceState = in toJSON() local
240 serviceState.put( in toJSON()
244 return serviceState; in toJSON()
DTelephonyStateListeners.java246 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
249 serviceState, subscriptionId)); in onServiceStateChanged()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowTelephonyManagerTest.java332 ServiceState serviceState = new ServiceState(); in shouldSetServiceState() local
333 serviceState.setState(ServiceState.STATE_OUT_OF_SERVICE); in shouldSetServiceState()
335 shadowTelephonyManager.setServiceState(serviceState); in shouldSetServiceState()
337 assertEquals(serviceState, telephonyManager.getServiceState()); in shouldSetServiceState()