Home
last modified time | relevance | path

Searched refs:mDevice (Results 1 – 25 of 213) sorted by relevance

123456789

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/
DLeAudioStateMachine.java71 private final BluetoothDevice mDevice; field in LeAudioStateMachine
79 mDevice = device; in LeAudioStateMachine()
109 log("doQuit for device " + mDevice); in doQuit()
114 log("cleanup for device " + mDevice); in cleanup()
124 + mDevice in enter()
135 mService.deviceDisconnected(mDevice, false); in enter()
144 + mDevice in exit()
154 + mDevice in processMessage()
160 log("Connecting to " + mDevice); in processMessage()
161 if (!mNativeInterface.connectLeAudio(mDevice)) { in processMessage()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachine.java74 private final BluetoothDevice mDevice; field in HearingAidStateMachine
82 mDevice = device; in HearingAidStateMachine()
112 log("doQuit for device " + mDevice); in doQuit()
117 log("cleanup for device " + mDevice); in cleanup()
127 + mDevice in enter()
144 + mDevice in exit()
154 + mDevice in processMessage()
160 log("Connecting to " + mDevice); in processMessage()
161 if (!mNativeInterface.connectHearingAid(mDevice)) { in processMessage()
162 Log.e(TAG, "Disconnected: error connecting to " + mDevice); in processMessage()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hap/
DHapClientStateMachine.java73 private final BluetoothDevice mDevice; field in HapClientStateMachine
81 mDevice = device; in HapClientStateMachine()
143 log("doQuit for device " + mDevice); in doQuit()
148 log("cleanup for device " + mDevice); in cleanup()
156 return mDevice; in getDevice()
167 + mDevice in broadcastConnectionState()
173 mService.connectionStateChanged(mDevice, prevState, newState); in broadcastConnectionState()
177 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in broadcastConnectionState()
185 ProfileService.println(sb, "mDevice: " + mDevice); in dump()
214 + mDevice in enter()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/vc/
DVolumeControlStateMachine.java61 private final BluetoothDevice mDevice; field in VolumeControlStateMachine
70 mDevice = device; in VolumeControlStateMachine()
100 log("doQuit for device " + mDevice); in doQuit()
105 log("cleanup for device " + mDevice); in cleanup()
115 + mDevice in enter()
131 + mDevice in exit()
141 + mDevice in processMessage()
147 log("Connecting to " + mDevice); in processMessage()
148 if (!mNativeInterface.connectVolumeControl(mDevice)) { in processMessage()
149 Log.e(TAG, "Disconnected: error connecting to " + mDevice); in processMessage()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/csip/
DCsipSetCoordinatorStateMachine.java61 private final BluetoothDevice mDevice; field in CsipSetCoordinatorStateMachine
69 mDevice = device; in CsipSetCoordinatorStateMachine()
100 log("doQuit for device " + mDevice); in doQuit()
106 log("cleanup for device " + mDevice); in cleanup()
116 + mDevice in enter()
131 + mDevice in exit()
141 + mDevice in processMessage()
147 log("Connecting to " + mDevice); in processMessage()
148 if (!mNativeInterface.connect(mDevice)) { in processMessage()
149 Log.e(TAG, "Disconnected: error connecting to " + mDevice); in processMessage()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java81 private final BluetoothDevice mDevice; field in A2dpStateMachine
96 mDevice = device; in A2dpStateMachine()
127 log("doQuit for device " + mDevice); in doQuit()
130 log("doQuit: stopped playing " + mDevice); in doQuit()
138 log("cleanup for device " + mDevice); in cleanup()
149 + mDevice in enter()
162 Log.i(TAG, "Disconnected: stopped playing: " + mDevice); in enter()
177 + mDevice in exit()
189 + mDevice in processMessage()
195 Log.i(TAG, "Connecting to " + mDevice); in processMessage()
[all …]
/packages/apps/Traceur/uitests/src/com/android/traceur/uitest/
DTraceurAppTests.java57 private UiDevice mDevice; field in TraceurAppTests
62 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
65 if (!mDevice.isScreenOn()) { in setUp()
66 mDevice.wakeUp(); in setUp()
71 mDevice.pressMenu(); in setUp()
72 mDevice.pressHome(); in setUp()
74 mDevice.setOrientationNatural(); in setUp()
79 mDevice.waitForIdle(); in setUp()
87 assertTrue(mDevice.wait(Until.hasObject(By.pkg(TRACEUR_PACKAGE).depth(0)), in setUp()
109 mDevice.unfreezeRotation(); in tearDown()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/
DBatteryServiceTest.java57 private BluetoothDevice mDevice; field in BatteryServiceTest
83 mDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp()
116 when(mDatabaseManager.getProfileConnectionPolicy(mDevice, BluetoothProfile.BATTERY)) in testGetSetPolicy()
121 mService.getConnectionPolicy(mDevice)); in testGetSetPolicy()
123 when(mDatabaseManager.getProfileConnectionPolicy(mDevice, BluetoothProfile.BATTERY)) in testGetSetPolicy()
128 mService.getConnectionPolicy(mDevice)); in testGetSetPolicy()
130 when(mDatabaseManager.getProfileConnectionPolicy(mDevice, BluetoothProfile.BATTERY)) in testGetSetPolicy()
135 mService.getConnectionPolicy(mDevice)); in testGetSetPolicy()
142 when(mDatabaseManager.getProfileConnectionPolicy(mDevice, BluetoothProfile.BATTERY)) in testGetPolicyAfterStopped()
147 mService.getConnectionPolicy(mDevice)); in testGetPolicyAfterStopped()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlServiceTest.java77 private BluetoothDevice mDevice; field in VolumeControlServiceTest
154 mDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp()
157 mDeviceQueueMap.put(mDevice, new LinkedBlockingQueue<>()); in setUp()
223 connectDevice(mDevice); in testStopVolumeControlService()
235 when(mDatabaseManager.getProfileConnectionPolicy(mDevice, BluetoothProfile.VOLUME_CONTROL)) in testGetSetPolicy()
240 mService.getConnectionPolicy(mDevice)); in testGetSetPolicy()
243 when(mDatabaseManager.getProfileConnectionPolicy(mDevice, BluetoothProfile.VOLUME_CONTROL)) in testGetSetPolicy()
248 mService.getConnectionPolicy(mDevice)); in testGetSetPolicy()
251 when(mDatabaseManager.getProfileConnectionPolicy(mDevice, BluetoothProfile.VOLUME_CONTROL)) in testGetSetPolicy()
256 mService.getConnectionPolicy(mDevice)); in testGetSetPolicy()
[all …]
/packages/modules/AdServices/adservices/apk/tests/notification/src/com/android/adservices/ui/notifications/
DNotificationActivityGAV2UiAutomatorTest.java70 NotificationActivityTestUtil.startActivity(/* isEuActivity= */ true, mDevice); in moreButtonTest()
71 NotificationActivityTestUtil.clickMoreToBottom(mDevice); in moreButtonTest()
75 mDevice, in moreButtonTest()
80 mDevice, in moreButtonTest()
87 NotificationActivityTestUtil.startActivity(/* isEuActivity= */ true, mDevice); in euAcceptFlowTest()
88 NotificationActivityTestUtil.clickMoreToBottom(mDevice); in euAcceptFlowTest()
91 ApkTestUtil.getElement(mDevice, R.string.notificationUI_left_control_button_text); in euAcceptFlowTest()
94 ApkTestUtil.getElement(mDevice, R.string.notificationUI_right_control_button_text); in euAcceptFlowTest()
98 mDevice.wait( in euAcceptFlowTest()
103 ApkTestUtil.getElement(mDevice, R.string.notificationUI_header_ga_title_eu_v2); in euAcceptFlowTest()
[all …]
DNotificationActivityGAV2UxSelectorUiAutomatorTest.java73 NotificationActivityTestUtil.startActivity(/* isEuActivity= */ true, mDevice); in euAcceptFlowTest()
74 NotificationActivityTestUtil.clickMoreToBottom(mDevice); in euAcceptFlowTest()
78 mDevice, in euAcceptFlowTest()
83 mDevice, in euAcceptFlowTest()
88 mDevice.wait( in euAcceptFlowTest()
97 ApkTestUtil.getElement(mDevice, R.string.notificationUI_header_ga_title_eu_v2); in euAcceptFlowTest()
103 mDevice, R.string.notificationUI_confirmation_left_control_button_text); in euAcceptFlowTest()
107 mDevice, R.string.notificationUI_confirmation_right_control_button_text); in euAcceptFlowTest()
110 NotificationActivityTestUtil.clickMoreToBottom(mDevice); in euAcceptFlowTest()
114 mDevice, R.string.notificationUI_left_control_button_text_eu); in euAcceptFlowTest()
[all …]
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/
DLiveChannelsTestController.java55 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/apps/Settings/tests/uitests/src/com/android/settings/ui/
DMoreWirelessSettingsTest2.java126 private UiDevice mDevice; field in MoreWirelessSettingsTest2
132 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
134 mDevice.setOrientationNatural(); in setUp()
150 mDevice.pressBack(); in tearDown()
152 mDevice.pressHome(); in tearDown()
160 UiObject2 configureWiFiHeading = mDevice.wait(Until.findObject in testWifiMenuLoadConfigure()
180 assertFalse(mDevice.wait(Until.findObject( in testAddNetworkMenu_Default()
182 assertTrue(mDevice.wait(Until.findObject( in testAddNetworkMenu_Default()
186 assertEquals("Enter the SSID", mDevice.wait(Until.findObject(By in testAddNetworkMenu_Default()
192 assertEquals("None", mDevice.wait(Until.findObject(By in testAddNetworkMenu_Default()
[all …]
DNotificationSettingsTests.java48 private UiDevice mDevice; field in NotificationSettingsTests
55 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
59 mDevice.setOrientationNatural(); in setUp()
65 mDevice.pressHome(); in setUp()
72 mDevice.pressBack(); in tearDown()
73 mDevice.pressHome(); // finish settings activity in tearDown()
74 mDevice.waitForIdle(TIMEOUT * 2); // give UI time to finish animating in tearDown()
80 UiObject2 configureNotifications = mDevice.wait( in testNotificationsSettingsListForCalculator()
83 mDevice.wait(Until.findObject(By.text("Blink light")), TIMEOUT); in testNotificationsSettingsListForCalculator()
84 UiObject2 appNotifications = mDevice.wait( in testNotificationsSettingsListForCalculator()
[all …]
DStorageWizardTest.java54 private UiDevice mDevice; field in StorageWizardTest
61 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
62 mDevice.executeShellCommand("setprop sys.debug.storage_slow 1"); in setUp()
63 mDevice.executeShellCommand("sm set-virtual-disk true"); in setUp()
66 mDevice.executeShellCommand("sm partition " + mDisk + " public"); in setUp()
73 mDevice.pressBack(); in tearDown()
74 mDevice.pressBack(); in tearDown()
75 mDevice.pressHome(); in tearDown()
76 mDevice.waitForIdle(TIMEOUT); in tearDown()
78 mDevice.executeShellCommand("setprop sys.debug.storage_slow 0"); in tearDown()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/
DHapClientTest.java97 private BluetoothDevice mDevice; field in HapClientTest
136 mDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp()
137 when(mNativeInterface.getDevice(getByteAddress(mDevice))).thenReturn(mDevice); in setUp()
175 doReturn(Arrays.asList(mDevice, mDevice2)) in setUp()
178 doReturn(groups2).when(mCsipService).getGroupUuidMapByDevice(mDevice); in setUp()
184 doReturn(Arrays.asList(mDevice)).when(mCsipService).getGroupDevicesOrdered(0x01); in setUp()
242 when(mDatabaseManager.getProfileConnectionPolicy(mDevice, BluetoothProfile.HAP_CLIENT)) in testGetSetPolicy()
247 mService.getConnectionPolicy(mDevice)); in testGetSetPolicy()
249 when(mDatabaseManager.getProfileConnectionPolicy(mDevice, BluetoothProfile.HAP_CLIENT)) in testGetSetPolicy()
254 mService.getConnectionPolicy(mDevice)); in testGetSetPolicy()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bas/
DBatteryStateMachine.java76 final BluetoothDevice mDevice; field in BatteryStateMachine
80 mDevice = device; in BatteryStateMachine()
105 log("doQuit for device " + mDevice); in doQuit()
111 log("cleanup for device " + mDevice); in cleanup()
120 return mDevice; in getDevice()
161 ProfileService.println(sb, "mDevice: " + mDevice); in dump()
200 + mDevice in dispatchConnectionStateChanged()
232 mDevice.connectGatt( in connectGatt()
252 service.handleBatteryChanged(mDevice, batteryLevel); in updateBatteryLevel()
260 service.handleBatteryChanged(mDevice, BATTERY_LEVEL_UNKNOWN); in resetBatteryLevel()
[all …]
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/
DWakelockAnomalyTest.java48 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 …]
DBluetoothAnomalyTest.java48 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/Settings/tests/Enable16KbTests/test_16kb_app/src/com/android/settings/development/test/
DEnable16KbDeviceTest.java57 private UiDevice mDevice; field in Enable16KbDeviceTest
63 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
66 mDevice.setOrientationNatural(); in setUp()
71 mDevice.executeShellCommand("input keyevent KEYCODE_WAKEUP"); in setUp()
72 mDevice.executeShellCommand("wm dismiss-keyguard"); in setUp()
93 mDevice.wait(Until.findObject(By.text(EXT4_CONFIRMATION)), TIMEOUT).click(); in enable16k_switchToExt4()
108 mDevice.wait(Until.findObject(By.text(OKAY)), TIMEOUT).click(); in enable16k_switchTo16Kb()
122 mDevice.wait(Until.findObject(By.text(OKAY)), TIMEOUT).click(); in enable16k_switchTo4Kb()
126 mDevice.waitForWindowUpdate(null, TIMEOUT); in clickOnObject()
128 mDevice.wait( in clickOnObject()
[all …]
/packages/apps/TV/tests/jank/src/com/android/tv/tests/jank/
DProgramGuideJankTest.java51 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/Contacts/tests/src/com/android/contacts/activities/
DSimImportActivityTest.java99 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/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java125 private final BluetoothDevice mDevice; field in HeadsetStateMachine
197 mDevice = requireNonNull(device); in HeadsetStateMachine()
271 ProfileService.println(sb, " mCurrentDevice: " + mDevice); in dump()
332 stateLogD("audio state changed: " + mDevice + ": " + mPrevState + " -> " + this); in broadcastStateTransitions()
333 broadcastAudioState(mDevice, mPrevState.getAudioStateInt(), getAudioStateInt()); in broadcastStateTransitions()
337 "connection state changed: " + mDevice + ": " + mPrevState + " -> " + this); in broadcastStateTransitions()
339 mDevice, mPrevState.getConnectionStateInt(), getConnectionStateInt()); in broadcastStateTransitions()
449 + mDevice); in enforceValidConnectionStateTransition()
454 log(getName() + ": currentDevice=" + mDevice + ", msg=" + msg); in stateLogD()
458 logw(getName() + ": currentDevice=" + mDevice + ", msg=" + msg); in stateLogW()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachine.java55 protected final BluetoothDevice mDevice; field in A2dpSinkStateMachine
73 mDevice = device; in A2dpSinkStateMachine()
74 mDeviceAddress = Utils.getByteAddress(mDevice); in A2dpSinkStateMachine()
89 Log.d(TAG, "[" + mDevice + "] State machine created"); in A2dpSinkStateMachine()
112 return mDevice; in getDevice()
137 sb, "mDevice: " + mDevice + "(" + Utils.getName(mDevice) + ") " + this.toString()); in dump()
145 + mDevice in unhandledMessage()
155 Log.d(TAG, "[" + mDevice + "] Enter Disconnected"); in enter()
169 Log.d(TAG, "[" + mDevice + "] Connect"); in processMessage()
185 if (mService.getConnectionPolicy(mDevice) in processStackEvent()
[all …]
/packages/modules/AdServices/adservices/apk/tests/settings/src/com/android/adservices/ui/settings/
DBlockedTopicsSettingsUiAutomatorTest.java73 ApkTestUtil.launchSettingView(mDevice, LAUNCHER_LAUNCH_TIMEOUT); in topicBlockUnblockResetTest()
76 BlockedTopicsSettingsTestUtil.enterGaTopicsConsentView(mDevice); in topicBlockUnblockResetTest()
82 UiObject2 consentSwitch = ApkTestUtil.getConsentSwitch(mDevice); in topicBlockUnblockResetTest()
90 mDevice.pressBack(); in topicBlockUnblockResetTest()
96 BlockedTopicsSettingsTestUtil.enterGaTopicsConsentView(mDevice); in topicBlockUnblockResetTest()
100 ApkTestUtil.getElement(mDevice, R.string.settingsUI_block_topic_title, 0); in topicBlockUnblockResetTest()
101 BlockedTopicsSettingsTestUtil.blockATopicWithDialog(mDevice, blockTopicButton); in topicBlockUnblockResetTest()
107 ApkTestUtil.getElement(mDevice, R.string.settingsUI_topics_view_no_topics_ga_text); in topicBlockUnblockResetTest()
111 ApkTestUtil.scrollToAndClick(mDevice, R.string.settingsUI_view_blocked_topics_title); in topicBlockUnblockResetTest()
114 BlockedTopicsSettingsTestUtil.unblockATopicWithDialog(mDevice); in topicBlockUnblockResetTest()
[all …]

123456789