/cts/hostsidetests/backup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/ |
D | KeyValueBackupAgent.java | 41 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/ |
D | BuildCTSHostSources.java | 156 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/ |
D | BackupAgentTest.java | 39 ParcelFileDescriptor newState) throws IOException { in onBackup() argument 44 ParcelFileDescriptor newState) throws IOException { in onRestore() argument
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BluetoothToggleActivity.java | 119 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()
|
D | BtAdapterUtils.java | 70 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()
|
D | BleConnectionPriorityServerService.java | 171 public void onConnectionStateChange(BluetoothDevice device, int status, int newState) { 173 Log.d(TAG, "onConnectionStateChange: newState=" + newState); 176 if (newState == BluetoothProfile.STATE_CONNECTED) {
|
D | BleCocClientService.java | 375 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);
|
D | BleCocServerService.java | 440 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()
|
D | BleConnectionPriorityClientService.java | 196 public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) { 199 if (newState == BluetoothProfile.STATE_CONNECTED) { 224 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) {
|
D | BleEncryptedClientService.java | 301 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) {
|
D | BleEncryptedServerService.java | 303 public void onConnectionStateChange(BluetoothDevice device, int status, int newState) { 305 Log.d(TAG, "onConnectionStateChange: newState=" + newState); 308 if (newState == BluetoothProfile.STATE_CONNECTED) {
|
D | BleClientService.java | 1093 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/ |
D | FullBackupOnlyBackupAgent.java | 51 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/ |
D | LoggingFullBackupAgent.java | 47 ParcelFileDescriptor newState) throws IOException { in onBackup() argument 51 public void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState) in onRestore() argument
|
D | FullBackupBackupAgent.java | 43 ParcelFileDescriptor newState) throws IOException { in onBackup() argument 49 ParcelFileDescriptor newState) throws IOException { in onRestore() argument
|
D | KeyValueBackupAgent.java | 44 ParcelFileDescriptor newState) throws IOException { in onBackup() argument 63 ParcelFileDescriptor newState) throws IOException { in onRestore() argument
|
/cts/hostsidetests/multidevices/bluetooth/snippet/ |
D | BluetoothGattMultiDevicesClient.java | 57 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/ |
D | TestActivity.java | 124 private void setSoftInputState(int newState) { in setSoftInputState() argument 129 | newState; in setSoftInputState()
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarProjectionManagerTest.java | 109 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()
|
D | CarBluetoothTest.java | 91 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/ |
D | ExtensionRearDisplayTest.java | 178 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()
|
D | ExtensionRearDisplayPresentationTest.java | 201 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/ |
D | TextToSpeechConnectionTest.java | 186 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/ |
D | TestActivity.java | 226 private void setSoftInputState(int newState) { in setSoftInputState() argument 231 | newState; in setSoftInputState()
|
/cts/tests/tests/wifi/src/android/net/wifi/mockwifi/cts/ |
D | MockWifiTest.java | 150 int newState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, 153 if (newState == WifiManager.WIFI_STATE_ENABLED) { 157 } else if (newState == WifiManager.WIFI_STATE_DISABLED) {
|