/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/ |
D | HearingAidStateMachine.java | 93 private final BluetoothDevice mDevice; field in HearingAidStateMachine 98 mDevice = device; in HearingAidStateMachine() 125 log("doQuit for device " + mDevice); in doQuit() 130 log("cleanup for device " + mDevice); in cleanup() 137 Log.i(TAG, "Enter Disconnected(" + mDevice + "): " + messageWhatToString( in enter() 152 log("Exit Disconnected(" + mDevice + "): " + messageWhatToString( in exit() 159 log("Disconnected process message(" + mDevice + "): " + messageWhatToString( in processMessage() 164 log("Connecting to " + mDevice); in processMessage() 165 if (!mNativeInterface.connectHearingAid(mDevice)) { in processMessage() 166 Log.e(TAG, "Disconnected: error connecting to " + mDevice); in processMessage() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hap/ |
D | HapClientStateMachine.java | 93 private final BluetoothDevice mDevice; field in HapClientStateMachine 98 mDevice = device; in HapClientStateMachine() 157 log("doQuit for device " + mDevice); in doQuit() 162 log("cleanup for device " + mDevice); in cleanup() 170 return mDevice; in getDevice() 179 log("Connection state " + mDevice + ": " + profileStateToString(prevState) in broadcastConnectionState() 185 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in broadcastConnectionState() 192 ProfileService.println(sb, "mDevice: " + mDevice); in dump() 220 Log.i(TAG, "Enter Disconnected(" + mDevice + "): " + messageWhatToString( in enter() 235 log("Exit Disconnected(" + mDevice + "): " + messageWhatToString( in exit() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/ |
D | LeAudioStateMachine.java | 93 private final BluetoothDevice mDevice; field in LeAudioStateMachine 98 mDevice = device; in LeAudioStateMachine() 124 log("doQuit for device " + mDevice); in doQuit() 129 log("cleanup for device " + mDevice); in cleanup() 136 Log.i(TAG, "Enter Disconnected(" + mDevice + "): " + messageWhatToString( in enter() 151 log("Exit Disconnected(" + mDevice + "): " + messageWhatToString( in exit() 158 log("Disconnected process message(" + mDevice + "): " + messageWhatToString( in processMessage() 163 log("Connecting to " + mDevice); in processMessage() 164 if (!mNativeInterface.connectLeAudio(mDevice)) { in processMessage() 165 Log.e(TAG, "Disconnected: error connecting to " + mDevice); in processMessage() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/vc/ |
D | VolumeControlStateMachine.java | 65 private final BluetoothDevice mDevice; field in VolumeControlStateMachine 71 mDevice = device; in VolumeControlStateMachine() 98 log("doQuit for device " + mDevice); in doQuit() 103 log("cleanup for device " + mDevice); in cleanup() 110 Log.i(TAG, "Enter Disconnected(" + mDevice + "): " + messageWhatToString( in enter() 124 log("Exit Disconnected(" + mDevice + "): " + messageWhatToString( in exit() 131 log("Disconnected process message(" + mDevice + "): " + messageWhatToString( in processMessage() 136 log("Connecting to " + mDevice); in processMessage() 137 if (!mNativeInterface.connectVolumeControl(mDevice)) { in processMessage() 138 Log.e(TAG, "Disconnected: error connecting to " + mDevice); in processMessage() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/csip/ |
D | CsipSetCoordinatorStateMachine.java | 64 private final BluetoothDevice mDevice; field in CsipSetCoordinatorStateMachine 69 mDevice = device; in CsipSetCoordinatorStateMachine() 100 log("doQuit for device " + mDevice); in doQuit() 108 log("cleanup for device " + mDevice); in cleanup() 116 "Enter Disconnected(" + mDevice in enter() 128 log("Exit Disconnected(" + mDevice in exit() 135 log("Disconnected process message(" + mDevice in processMessage() 140 log("Connecting to " + mDevice); in processMessage() 141 if (!mNativeInterface.connect(mDevice)) { in processMessage() 142 Log.e(TAG, "Disconnected: error connecting to " + mDevice); in processMessage() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/ |
D | A2dpStateMachine.java | 103 private final BluetoothDevice mDevice; field in A2dpStateMachine 111 mDevice = device; in A2dpStateMachine() 139 log("doQuit for device " + mDevice); in doQuit() 142 log("doQuit: stopped playing " + mDevice); in doQuit() 151 log("cleanup for device " + mDevice); in cleanup() 159 Log.i(TAG, "Enter Disconnected(" + mDevice + "): " + (currentMessage == null ? "null" in enter() 169 Log.i(TAG, "Disconnected: stopped playing: " + mDevice); in enter() 180 log("Exit Disconnected(" + mDevice + "): " + (currentMessage == null ? "null" in exit() 187 log("Disconnected process message(" + mDevice + "): " in processMessage() 192 Log.i(TAG, "Connecting to " + mDevice); in processMessage() [all …]
|
/packages/apps/Traceur/uitests/src/com/android/traceur/uitest/ |
D | TraceurAppTests.java | 55 private UiDevice mDevice; field in TraceurAppTests 59 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() 62 if (!mDevice.isScreenOn()) { in setUp() 63 mDevice.wakeUp(); in setUp() 68 mDevice.pressMenu(); in setUp() 69 mDevice.pressHome(); in setUp() 71 mDevice.setOrientationNatural(); in setUp() 76 mDevice.waitForIdle(); in setUp() 84 assertTrue(mDevice.wait(Until.hasObject(By.pkg(TRACEUR_PACKAGE).depth(0)), in setUp() 93 mDevice.unfreezeRotation(); in tearDown() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/ |
D | VolumeControlServiceTest.java | 77 private BluetoothDevice mDevice; field in VolumeControlServiceTest 144 mDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp() 147 mDeviceQueueMap.put(mDevice, new LinkedBlockingQueue<>()); in setUp() 228 connectDevice(mDevice); in testStopVolumeControlService() 251 .getProfileConnectionPolicy(mDevice, BluetoothProfile.VOLUME_CONTROL)) in testGetSetPolicy() 255 mService.getConnectionPolicy(mDevice)); in testGetSetPolicy() 259 .getProfileConnectionPolicy(mDevice, BluetoothProfile.VOLUME_CONTROL)) in testGetSetPolicy() 263 mService.getConnectionPolicy(mDevice)); in testGetSetPolicy() 267 .getProfileConnectionPolicy(mDevice, BluetoothProfile.VOLUME_CONTROL)) in testGetSetPolicy() 271 mService.getConnectionPolicy(mDevice)); in testGetSetPolicy() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/ |
D | HapClientTest.java | 92 private BluetoothDevice mDevice; field in HapClientTest 158 mDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp() 159 when(mNativeInterface.getDevice(getByteAddress(mDevice))).thenReturn(mDevice); in setUp() 192 doReturn(Arrays.asList(mDevice, mDevice2)).when(mCsipService) in setUp() 194 doReturn(groups2).when(mCsipService).getGroupUuidMapByDevice(mDevice); in setUp() 200 doReturn(Arrays.asList(mDevice)).when(mCsipService).getGroupDevicesOrdered(0x01); in setUp() 209 mIntentQueue.put(mDevice, new LinkedBlockingQueue<>()); in setUp() 287 .getProfileConnectionPolicy(mDevice, BluetoothProfile.HAP_CLIENT)) in testGetSetPolicy() 291 mService.getConnectionPolicy(mDevice)); in testGetSetPolicy() 294 .getProfileConnectionPolicy(mDevice, BluetoothProfile.HAP_CLIENT)) in testGetSetPolicy() [all …]
|
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
D | MoreWirelessSettingsTest2.java | 122 private UiDevice mDevice; field in MoreWirelessSettingsTest2 128 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 130 mDevice.setOrientationNatural(); in setUp() 146 mDevice.pressBack(); in tearDown() 148 mDevice.pressHome(); in tearDown() 156 UiObject2 configureWiFiHeading = mDevice.wait(Until.findObject in testWifiMenuLoadConfigure() 176 assertFalse(mDevice.wait(Until.findObject( in testAddNetworkMenu_Default() 178 assertTrue(mDevice.wait(Until.findObject( in testAddNetworkMenu_Default() 182 assertEquals("Enter the SSID", mDevice.wait(Until.findObject(By in testAddNetworkMenu_Default() 188 assertEquals("None", mDevice.wait(Until.findObject(By in testAddNetworkMenu_Default() [all …]
|
D | AppsSettingsRetainFilterTests.java | 40 private UiDevice mDevice; field in AppsSettingsRetainFilterTests 45 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() 49 mDevice.setOrientationNatural(); in setUp() 54 mDevice.pressHome(); in setUp() 55 mDevice.waitForIdle(TIMEOUT); in setUp() 62 UiObject2 calculator = mDevice.wait( in testDisablingSystemAppAndRotateDevice() 66 mDevice.waitForIdle(TIMEOUT); in testDisablingSystemAppAndRotateDevice() 68 UiObject2 disableButton = mDevice.wait( in testDisablingSystemAppAndRotateDevice() 72 mDevice.waitForIdle(TIMEOUT); in testDisablingSystemAppAndRotateDevice() 75 UiObject2 dialogDisableButton = mDevice.wait( in testDisablingSystemAppAndRotateDevice() [all …]
|
D | NotificationSettingsTests.java | 44 private UiDevice mDevice; field in NotificationSettingsTests 51 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 55 mDevice.setOrientationNatural(); in setUp() 61 mDevice.pressHome(); in setUp() 68 mDevice.pressBack(); in tearDown() 69 mDevice.pressHome(); // finish settings activity in tearDown() 70 mDevice.waitForIdle(TIMEOUT * 2); // give UI time to finish animating in tearDown() 76 UiObject2 configureNotifications = mDevice.wait( in testNotificationsSettingsListForCalculator() 79 mDevice.wait(Until.findObject(By.text("Blink light")), TIMEOUT); in testNotificationsSettingsListForCalculator() 80 UiObject2 appNotifications = mDevice.wait( in testNotificationsSettingsListForCalculator() [all …]
|
D | AppsSettingsTests.java | 40 private UiDevice mDevice; field in AppsSettingsTests 58 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 61 mDevice.setOrientationNatural(); in setUp() 67 mDevice.pressHome(); in setUp() 71 mDevice.wait( in setUp() 78 mDevice.pressBack(); in tearDown() 79 mDevice.pressHome(); // finish settings activity in tearDown() 80 mDevice.waitForIdle(TIMEOUT * 2); // give UI time to finish animating in tearDown() 86 UiObject2 calculator = mDevice.wait( in testAppSettingsListForCalculator() 91 mDevice.wait( in testAppSettingsListForCalculator() [all …]
|
D | StorageWizardTest.java | 52 private UiDevice mDevice; field in StorageWizardTest 59 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() 60 mDevice.executeShellCommand("setprop sys.debug.storage_slow 1"); in setUp() 61 mDevice.executeShellCommand("sm set-virtual-disk true"); in setUp() 64 mDevice.executeShellCommand("sm partition " + mDisk + " public"); in setUp() 71 mDevice.pressBack(); in tearDown() 72 mDevice.pressBack(); in tearDown() 73 mDevice.pressHome(); in tearDown() 74 mDevice.waitForIdle(TIMEOUT); in tearDown() 76 mDevice.executeShellCommand("setprop sys.debug.storage_slow 0"); in tearDown() [all …]
|
D | LocationSettingsTests.java | 36 private UiDevice mDevice; field in LocationSettingsTests 41 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 43 mDevice.setOrientationNatural(); in setUp() 51 mDevice.pressBack(); in tearDown() 52 mDevice.pressHome(); in tearDown() 65 UiObject2 settingsPanel = mDevice.wait(Until.findObject in testLoadingLocationSettings() 70 locationTitle = mDevice.wait(Until.findObject(By.text("Location")), TIMEOUT); in testLoadingLocationSettings() 80 mDevice.wait(Until.findObject(By.text("Location services")), TIMEOUT)); in testLoadingLocationSettings() 129 mDevice.wait(Until.findObject(By.text(element)), TIMEOUT)); in testLocationSettingsElements() 139 mDevice.wait(Until.findObject(By.desc("Help & feedback")), TIMEOUT)); in testLocationSettingsOverflowMenuElements() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/ |
D | BatteryServiceTest.java | 62 private BluetoothDevice mDevice; field in BatteryServiceTest 94 mDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp() 134 .getProfileConnectionPolicy(mDevice, BluetoothProfile.BATTERY)) in testGetSetPolicy() 138 mService.getConnectionPolicy(mDevice)); in testGetSetPolicy() 141 .getProfileConnectionPolicy(mDevice, BluetoothProfile.BATTERY)) in testGetSetPolicy() 145 mService.getConnectionPolicy(mDevice)); in testGetSetPolicy() 148 .getProfileConnectionPolicy(mDevice, BluetoothProfile.BATTERY)) in testGetSetPolicy() 152 mService.getConnectionPolicy(mDevice)); in testGetSetPolicy() 162 .getProfileConnectionPolicy(mDevice, BluetoothProfile.BATTERY)) in testGetPolicyAfterStopped() 166 mService.getConnectionPolicy(mDevice)); in testGetPolicyAfterStopped() [all …]
|
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/ |
D | LiveChannelsTestController.java | 55 private UiDevice mDevice; field in LiveChannelsTestController 95 mDevice = UiDevice.getInstance(mInstrumentation); in before() 97 menuHelper = new MenuHelper(mDevice, mTargetResources); in before() 98 sidePanelHelper = new SidePanelHelper(mDevice, mTargetResources); in before() 99 liveChannelsHelper = new LiveChannelsUiDeviceHelper(mDevice, mTargetResources, context); in before() 112 if (mDevice.hasObject(Constants.SIDE_PANEL) in after() 113 || mDevice.hasObject(Constants.MENU) in after() 114 || mDevice.hasObject(Constants.PROGRAM_GUIDE)) { in after() 115 mDevice.pressBack(); in after() 118 mDevice.pressBack(); in after() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bas/ |
D | BatteryStateMachine.java | 79 final BluetoothDevice mDevice; field in BatteryStateMachine 83 mDevice = device; in BatteryStateMachine() 110 log("doQuit for device " + mDevice); in doQuit() 118 log("cleanup for device " + mDevice); in cleanup() 127 return mDevice; in getDevice() 170 ProfileService.println(sb, "mDevice: " + mDevice); in dump() 207 log("Connection state " + mDevice + ": " + profileStateToString(fromState) in dispatchConnectionStateChanged() 235 mBluetoothGatt = mDevice.connectGatt(service, /*autoConnect=*/false, in connectGatt() 260 log(TAG, "Enter (" + mDevice + "): " + messageWhatToString( in enter() 277 log(TAG, "Exit (" + mDevice + "): " + messageWhatToString( in exit() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachine.java | 121 private final BluetoothDevice mDevice; field in HeadsetStateMachine 190 mDevice = Objects.requireNonNull(device, "device cannot be null"); in HeadsetStateMachine() 256 ProfileService.println(sb, " mCurrentDevice: " + mDevice); in dump() 319 stateLogD("audio state changed: " + mDevice + ": " + mPrevState + " -> " + this); in broadcastStateTransitions() 320 broadcastAudioState(mDevice, mPrevState.getAudioStateInt(), getAudioStateInt()); in broadcastStateTransitions() 324 "connection state changed: " + mDevice + ": " + mPrevState + " -> " + this); in broadcastStateTransitions() 325 broadcastConnectionState(mDevice, mPrevState.getConnectionStateInt(), in broadcastStateTransitions() 408 + " for device " + mDevice); in enforceValidConnectionStateTransition() 413 log(getName() + ": currentDevice=" + mDevice + ", msg=" + msg); in stateLogD() 417 logw(getName() + ": currentDevice=" + mDevice + ", msg=" + msg); in stateLogW() [all …]
|
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/ |
D | WakelockAnomalyTest.java | 48 private UiDevice mDevice; field in WakelockAnomalyTest 54 mDevice = UiDevice.getInstance(instrumentation); in setUp() 59 TestUtils.startAnomalyApp(context, mDevice); in setUp() 71 TestUtils.setEditTextWithValue(mDevice, RES_WAKELOCK_EDITTEXT, durationMs); in testWakelockAnomaly_longTimeWhileRunning_report() 74 TestUtils.clickButton(mDevice, RES_WAKELOCK_BUTTON); in testWakelockAnomaly_longTimeWhileRunning_report() 77 mDevice.pressHome(); in testWakelockAnomaly_longTimeWhileRunning_report() 79 TestUtils.wait(mDevice, durationMs - TIME_OUT); in testWakelockAnomaly_longTimeWhileRunning_report() 85 mDevice.wait(Until.findObject(By.text("AnomalyTester draining battery")), in testWakelockAnomaly_longTimeWhileRunning_report() 93 TestUtils.setEditTextWithValue(mDevice, RES_WAKELOCK_EDITTEXT, durationMs); in testWakelockAnomaly_shortTime_notReport() 96 TestUtils.clickButton(mDevice, RES_WAKELOCK_BUTTON); in testWakelockAnomaly_shortTime_notReport() [all …]
|
D | BluetoothAnomalyTest.java | 48 private UiDevice mDevice; field in BluetoothAnomalyTest 54 mDevice = UiDevice.getInstance(instrumentation); in setUp() 59 TestUtils.startAnomalyApp(context, mDevice); in setUp() 71 TestUtils.setEditTextWithValue(mDevice, RES_BT_EDITTEXT, durationMs); in testBluetoothAnomaly_longScanningTime_reportAnomaly() 74 TestUtils.clickButton(mDevice, RES_BT_BUTTON); in testBluetoothAnomaly_longScanningTime_reportAnomaly() 77 mDevice.pressHome(); in testBluetoothAnomaly_longScanningTime_reportAnomaly() 78 TestUtils.wait(mDevice, durationMs); in testBluetoothAnomaly_longScanningTime_reportAnomaly() 84 mDevice.wait(Until.findObject(By.text("AnomalyTester draining battery")), in testBluetoothAnomaly_longScanningTime_reportAnomaly() 92 TestUtils.setEditTextWithValue(mDevice, RES_BT_EDITTEXT, durationMs); in testBluetoothAnomaly_shortScanningTime_notReport() 95 TestUtils.clickButton(mDevice, RES_BT_BUTTON); in testBluetoothAnomaly_shortScanningTime_notReport() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
D | SimImportActivityTest.java | 99 private UiDevice mDevice; field in SimImportActivityTest 111 mDevice = UiDevice.getInstance(mInstrumentation); in setUp() 146 mDevice.waitForIdle(); in shouldDisplaySimContacts() 148 assertTrue(mDevice.wait(Until.hasObject(By.text("Sim One")), TIMEOUT)); in shouldDisplaySimContacts() 150 assertTrue(mDevice.hasObject(By.text("Sim One"))); in shouldDisplaySimContacts() 151 assertTrue(mDevice.hasObject(By.text("Sim Two"))); in shouldDisplaySimContacts() 152 assertTrue(mDevice.hasObject(By.text("5550103"))); in shouldDisplaySimContacts() 162 mDevice.waitForIdle(); in shouldHaveEmptyState() 164 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("No contacts")), TIMEOUT)); in shouldHaveEmptyState() 175 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("No contacts")), TIMEOUT)); in smokeRotateInEmptyState() [all …]
|
/packages/apps/TV/tests/jank/src/com/android/tv/tests/jank/ |
D | ProgramGuideJankTest.java | 51 mMenuHelper = new MenuHelper(mDevice, mTargetResources); in setUp() 52 Utils.pressKeysForChannelNumber(STARTING_CHANNEL, mDevice); in setUp() 76 mDevice.pressDPadDown(); in testScrollDown() 90 mDevice.pressDPadRight(); in testScrollRight() 98 mDevice.waitForIdle(); in selectProgramGuideMenuItem() 105 mDevice.pressDPadCenter(); in warmProgramGuide() 106 assertWaitForCondition(mDevice, Until.hasObject(Constants.PROGRAM_GUIDE)); in warmProgramGuide() 107 mDevice.pressBack(); in warmProgramGuide() 112 mDevice.pressBack(); in clearProgramGuide() 113 assertWaitForCondition(mDevice, Until.gone(Constants.PROGRAM_GUIDE)); in clearProgramGuide() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothAccessoryFragment.java | 79 private BluetoothDevice mDevice; field in BluetoothAccessoryFragment 140 mDevice = device; in onCreate() 147 if (mDevice == null) { in onCreate() 157 if (mDevice != null && in onStart() 158 mDevice.isConnected() && in onStart() 159 (mDevice.getType() == BluetoothDevice.DEVICE_TYPE_LE || in onStart() 160 mDevice.getType() == BluetoothDevice.DEVICE_TYPE_DUAL)) { in onStart() 162 mDeviceGatt = mDevice.connectGatt(getActivity(), true, new GattBatteryCallbacks()); in onStart() 167 mBroadcastReceiver = new UnpairReceiver(this, mDevice); in onStart() 169 if (mDevice != null && mDevice.getBondState() == BluetoothDevice.BOND_NONE) { in onStart() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | BluetoothPeripheralHandover.java | 93 final BluetoothDevice mDevice; field in BluetoothPeripheralHandover 129 mDevice = device; in BluetoothPeripheralHandover() 224 if (mInput.getConnectedDevices().contains(mDevice)) { in nextStepInit() 225 Log.i(TAG, "ACTION_DISCONNECT addr=" + mDevice + " name=" + mName); in nextStepInit() 228 Log.i(TAG, "ACTION_CONNECT addr=" + mDevice + " name=" + mName); in nextStepInit() 232 if (mA2dp.getConnectedDevices().contains(mDevice) || in nextStepInit() 233 mHeadset.getConnectedDevices().contains(mDevice)) { in nextStepInit() 234 Log.i(TAG, "ACTION_DISCONNECT addr=" + mDevice + " name=" + mName); in nextStepInit() 238 if (mHeadset.getConnectionPolicy(mDevice) == in nextStepInit() 242 if (mA2dp.getConnectionPolicy(mDevice) == in nextStepInit() [all …]
|