Home
last modified time | relevance | path

Searched refs:newState (Results 1 – 25 of 32) sorted by relevance

12

/cts/hostsidetests/backup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/
DKeyValueBackupAgent.java41 ParcelFileDescriptor newState) throws IOException { in onBackup() argument
44 super.onBackup(oldState, data, newState); in onBackup()
48 public void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState) in onRestore() argument
52 super.onRestore(data, appVersionCode, newState); in onRestore()
/cts/tools/vm-tests-tf/build/src/util/build/
DBuildCTSHostSources.java156 HostState newState = new HostState(fileName); in openCTSHostFileFor() local
158 newState.append(getWarningMessage()); in openCTSHostFileFor()
159 newState.append("package " + modPackage + ";\n"); in openCTSHostFileFor()
160 newState.append("import java.io.IOException;\n" + in openCTSHostFileFor()
168 newState.append("public class " + sourceName + " extends DeviceTestCase implements " + in openCTSHostFileFor()
171 newState.append("\n" + in openCTSHostFileFor()
178 return newState; in openCTSHostFileFor()
/cts/tests/app/src/android/app/backup/cts/
DBackupAgentTest.java39 ParcelFileDescriptor newState) throws IOException { in onBackup() argument
44 ParcelFileDescriptor newState) throws IOException { in onRestore() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBluetoothToggleActivity.java119 int newState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1); in onReceive() local
120 Log.i(TAG, "Previous state: " + previousState + " New state: " + newState); in onReceive()
122 if (BluetoothAdapter.STATE_OFF == newState in onReceive()
128 if (BluetoothAdapter.STATE_ON == newState in onReceive()
DBtAdapterUtils.java70 int newState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1); in onReceive() local
71 Log.d(TAG, "Previous state: " + previousState + " New state: " + newState); in onReceive()
73 if (newState == BluetoothAdapter.STATE_ON) { in onReceive()
81 } else if (newState == BluetoothAdapter.STATE_OFF) { in onReceive()
DBleConnectionPriorityServerService.java171 public void onConnectionStateChange(BluetoothDevice device, int status, int newState) {
173 Log.d(TAG, "onConnectionStateChange: newState=" + newState);
176 if (newState == BluetoothProfile.STATE_CONNECTED) {
DBleCocClientService.java375 public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {
377 Log.d(TAG, "onConnectionStateChange: status=" + status + ", newState=" + newState);
380 if (newState == BluetoothProfile.STATE_CONNECTED) {
381 mBleState = newState;
410 mBleState = newState;
416 showMessage("Failed to connect: " + status + " , newState = " + newState);
DBleCocServerService.java440 public void onConnectionStateChange(BluetoothDevice device, int status, int newState) {
442 Log.d(TAG, "onConnectionStateChange: newState=" + newState);
446 if (newState == BluetoothProfile.STATE_CONNECTED) {
553 private void processChatStateChange(int newState) { in processChatStateChange() argument
556 Log.d(TAG, "processChatStateChange: newState=" + newState); in processChatStateChange()
558 switch (newState) { in processChatStateChange()
DBleConnectionPriorityClientService.java196 public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {
199 if (newState == BluetoothProfile.STATE_CONNECTED) {
224 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) {
DBleEncryptedClientService.java301 public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {
302 … if (DEBUG) Log.d(TAG, "onConnectionStateChange: status = " + status + ", newState = " + newState);
304 if (newState == BluetoothProfile.STATE_CONNECTED) {
312 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) {
DBleEncryptedServerService.java303 public void onConnectionStateChange(BluetoothDevice device, int status, int newState) {
305 Log.d(TAG, "onConnectionStateChange: newState=" + newState);
308 if (newState == BluetoothProfile.STATE_CONNECTED) {
DBleClientService.java1093 public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {
1094 super.onConnectionStateChange(gatt, status, newState);
1097 "onConnectionStateChange: status= " + status + ", newState= " + newState);
1100 if (newState == BluetoothProfile.STATE_CONNECTED) {
1101 mBleState = newState;
1126 mBleState = newState;
1132 showMessage("Failed to connect: " + status + " , newState = " + newState);
/cts/hostsidetests/backup/FullBackupOnly/src/
DFullBackupOnlyBackupAgent.java51 ParcelFileDescriptor newState) throws IOException { in onBackup() argument
65 public void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState) in onRestore() argument
96 FileOutputStream outstream = new FileOutputStream(newState.getFileDescriptor()); in onRestore()
/cts/tests/backup/app/src/android/backup/app/
DLoggingFullBackupAgent.java47 ParcelFileDescriptor newState) throws IOException { in onBackup() argument
51 public void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState) in onRestore() argument
DFullBackupBackupAgent.java43 ParcelFileDescriptor newState) throws IOException { in onBackup() argument
49 ParcelFileDescriptor newState) throws IOException { in onRestore() argument
DKeyValueBackupAgent.java44 ParcelFileDescriptor newState) throws IOException { in onBackup() argument
63 ParcelFileDescriptor newState) throws IOException { in onRestore() argument
/cts/hostsidetests/multidevices/bluetooth/snippet/
DBluetoothGattMultiDevicesClient.java57 BluetoothGatt device, int status, int newState) {
58 Log.i(TAG, "onConnectionStateChange: newState=" + newState);
59 if (newState == BluetoothProfile.STATE_CONNECTED
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DTestActivity.java124 private void setSoftInputState(int newState) { in setSoftInputState() argument
129 | newState; in setSoftInputState()
/cts/tests/tests/car/src/android/car/cts/
DCarProjectionManagerTest.java109 int newState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, STATE_INVALID); in onReceive() local
111 Log.d(TAG, "Bluetooth adapter state changed: " + newState); in onReceive()
120 if (mDesiredState == newState) { in onReceive()
122 } else if (newState == BluetoothAdapter.STATE_OFF) { in onReceive()
DCarBluetoothTest.java91 int newState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1); in onReceive() local
93 Log.d(TAG, "Bluetooth adapter state changed: " + newState); in onReceive()
102 if (mDesiredState == newState) { in onReceive()
104 } else if (newState == BluetoothAdapter.STATE_OFF) { in onReceive()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/area/
DExtensionRearDisplayTest.java178 int newState = determineNewState(mCurrentDeviceState.getIdentifier(), in testRearDisplayStatusListeners() local
180 if (newState != INVALID_DEVICE_STATE) { in testRearDisplayStatusListeners()
181 requestedStates.add(newState); in testRearDisplayStatusListeners()
182 DeviceStateRequest request = DeviceStateRequest.newBuilder(newState).build(); in testRearDisplayStatusListeners()
186 waitAndAssert(() -> mCurrentDeviceState.getIdentifier() == newState); in testRearDisplayStatusListeners()
DExtensionRearDisplayPresentationTest.java201 int newState = determineNewState(mCurrentDeviceState.getIdentifier(), in testRearDisplayPresentationStatusListeners() local
203 if (newState != INVALID_DEVICE_STATE) { in testRearDisplayPresentationStatusListeners()
204 requestedStates.add(newState); in testRearDisplayPresentationStatusListeners()
205 DeviceStateRequest request = DeviceStateRequest.newBuilder(newState).build(); in testRearDisplayPresentationStatusListeners()
209 waitAndAssert(() -> mCurrentDeviceState.getIdentifier() == newState); in testRearDisplayPresentationStatusListeners()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechConnectionTest.java186 int newState = enabled ? COMPONENT_ENABLED_STATE_ENABLED : COMPONENT_ENABLED_STATE_DISABLED; in setServiceEnabledState() local
192 mPackageManager.setComponentEnabledSetting(componentName, newState, DONT_KILL_APP); in setServiceEnabledState()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DTestActivity.java226 private void setSoftInputState(int newState) { in setSoftInputState() argument
231 | newState; in setSoftInputState()
/cts/tests/tests/wifi/src/android/net/wifi/mockwifi/cts/
DMockWifiTest.java150 int newState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE,
153 if (newState == WifiManager.WIFI_STATE_ENABLED) {
157 } else if (newState == WifiManager.WIFI_STATE_DISABLED) {

12