Home
last modified time | relevance | path

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

12345

/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachine.java89 private final BluetoothDevice mDevice; field in HearingAidStateMachine
94 mDevice = device; in HearingAidStateMachine()
121 log("doQuit for device " + mDevice); in doQuit()
126 log("cleanup for device " + mDevice); in cleanup()
133 Log.i(TAG, "Enter Disconnected(" + mDevice + "): " + messageWhatToString( in enter()
147 log("Exit Disconnected(" + mDevice + "): " + messageWhatToString( in exit()
154 log("Disconnected process message(" + mDevice + "): " + messageWhatToString( in processMessage()
159 log("Connecting to " + mDevice); in processMessage()
160 if (!mNativeInterface.connectHearingAid(mDevice)) { in processMessage()
161 Log.e(TAG, "Disconnected: error connecting to " + mDevice); in processMessage()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java94 private final BluetoothDevice mDevice; field in A2dpStateMachine
102 mDevice = device; in A2dpStateMachine()
130 log("doQuit for device " + mDevice); in doQuit()
133 log("doQuit: stopped playing " + mDevice); in doQuit()
142 log("cleanup for device " + mDevice); in cleanup()
150 Log.i(TAG, "Enter Disconnected(" + mDevice + "): " + (currentMessage == null ? "null" in enter()
160 Log.i(TAG, "Disconnected: stopped playing: " + mDevice); in enter()
171 log("Exit Disconnected(" + mDevice + "): " + (currentMessage == null ? "null" in exit()
178 log("Disconnected process message(" + mDevice + "): " in processMessage()
183 Log.i(TAG, "Connecting to " + mDevice); in processMessage()
[all …]
/packages/apps/Traceur/uitests/src/com/android/settings/ui/
DTraceurAppTests.java45 private UiDevice mDevice; field in TraceurAppTests
49 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
52 if (!mDevice.isScreenOn()) { in setUp()
53 mDevice.wakeUp(); in setUp()
58 mDevice.pressMenu(); in setUp()
59 mDevice.pressHome(); in setUp()
61 mDevice.setOrientationNatural(); in setUp()
66 mDevice.waitForIdle(); in setUp()
74 mDevice.wait(Until.hasObject(By.pkg(TRACEUR_PACKAGE).depth(0)), TIMEOUT); in setUp()
79 mDevice.unfreezeRotation(); in tearDown()
[all …]
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DMoreWirelessSettingsTest2.java122 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 …]
DNotificationSettingsTests.java44 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 …]
DAppsSettingsRetainFilterTests.java40 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 …]
DAppsSettingsTests.java40 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 …]
DLocationSettingsTests.java36 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 …]
DStorageWizardTest.java52 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 …]
DSoundSettingsTest.java38 private UiDevice mDevice; field in SoundSettingsTest
101 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
102 mDevice.setOrientationNatural(); in setUp()
109 mDevice.pressBack(); in tearDown()
110 mDevice.pressHome(); in tearDown()
111 mDevice.waitForIdle(); in tearDown()
112 mDevice.unfreezeRotation(); in tearDown()
203 String ringtone = ringtoneSounds.get(mDevice.getProductName()).toString(); in testPhoneRingtone()
204 String ringtoneSettingValue = ringtoneCodes.get(mDevice.getProductName()).toString(); in testPhoneRingtone()
230 String notificationRingtone = notificationSounds.get(mDevice.getProductName()).toString(); in testNotificationRingtone()
[all …]
DDataUsageSettingsTests.java32 private UiDevice mDevice; field in DataUsageSettingsTests
37 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
39 mDevice.setOrientationNatural(); in setUp()
48 mDevice.pressBack(); in tearDown()
49 mDevice.pressHome(); in tearDown()
57 mDevice.wait(Until.findObject(By.text("Usage")), in testElementsOnDataUsageScreen()
60 mDevice.wait(Until.findObject(By.res(SETTINGS_PACKAGE, in testElementsOnDataUsageScreen()
63 mDevice.wait(Until.findObject(By.text("Wi-Fi data usage")), in testElementsOnDataUsageScreen()
66 mDevice.wait(Until.findObject(By.text("Network restrictions")), in testElementsOnDataUsageScreen()
73 mDevice.wait(Until in launchDataUsageSettings()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java115 private final BluetoothDevice mDevice; field in HeadsetStateMachine
172 mDevice = Objects.requireNonNull(device, "device cannot be null"); in HeadsetStateMachine()
222 ProfileService.println(sb, " mCurrentDevice: " + mDevice); in dump()
282 stateLogD("audio state changed: " + mDevice + ": " + mPrevState + " -> " + this); in broadcastStateTransitions()
283 broadcastAudioState(mDevice, mPrevState.getAudioStateInt(), getAudioStateInt()); in broadcastStateTransitions()
287 "connection state changed: " + mDevice + ": " + mPrevState + " -> " + this); in broadcastStateTransitions()
288 broadcastConnectionState(mDevice, mPrevState.getConnectionStateInt(), in broadcastStateTransitions()
371 + " for device " + mDevice); in enforceValidConnectionStateTransition()
376 log(getName() + ": currentDevice=" + mDevice + ", msg=" + msg); in stateLogD()
380 logw(getName() + ": currentDevice=" + mDevice + ", msg=" + msg); in stateLogW()
[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/Contacts/tests/src/com/android/contacts/activities/
DSimImportActivityTest.java97 private UiDevice mDevice; field in SimImportActivityTest
109 mDevice = UiDevice.getInstance(mInstrumentation); in setUp()
144 mDevice.waitForIdle(); in shouldDisplaySimContacts()
146 assertTrue(mDevice.wait(Until.hasObject(By.text("Sim One")), TIMEOUT)); in shouldDisplaySimContacts()
148 assertTrue(mDevice.hasObject(By.text("Sim One"))); in shouldDisplaySimContacts()
149 assertTrue(mDevice.hasObject(By.text("Sim Two"))); in shouldDisplaySimContacts()
150 assertTrue(mDevice.hasObject(By.text("5550103"))); in shouldDisplaySimContacts()
160 mDevice.waitForIdle(); in shouldHaveEmptyState()
162 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("No contacts")), TIMEOUT)); in shouldHaveEmptyState()
173 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("No contacts")), TIMEOUT)); in smokeRotateInEmptyState()
[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/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/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java92 final BluetoothDevice mDevice; field in BluetoothPeripheralHandover
128 mDevice = device; in BluetoothPeripheralHandover()
223 if (mInput.getConnectedDevices().contains(mDevice)) { in nextStepInit()
224 Log.i(TAG, "ACTION_DISCONNECT addr=" + mDevice + " name=" + mName); in nextStepInit()
227 Log.i(TAG, "ACTION_CONNECT addr=" + mDevice + " name=" + mName); in nextStepInit()
231 if (mA2dp.getConnectedDevices().contains(mDevice) || in nextStepInit()
232 mHeadset.getConnectedDevices().contains(mDevice)) { in nextStepInit()
233 Log.i(TAG, "ACTION_DISCONNECT addr=" + mDevice + " name=" + mName); in nextStepInit()
237 if (mHeadset.getPriority(mDevice) == BluetoothProfile.PRIORITY_OFF) { in nextStepInit()
240 if (mA2dp.getPriority(mDevice) == BluetoothProfile.PRIORITY_OFF) { in nextStepInit()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothPairingController.java57 private BluetoothDevice mDevice; field in BluetoothPairingController
76 mDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in BluetoothPairingController()
81 } else if (mDevice == null) { in BluetoothPairingController()
87 mDeviceName = mBluetoothManager.getCachedDeviceManager().getName(mDevice); in BluetoothPairingController()
104 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_ALLOWED); in onDialogPositiveClick()
106 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED); in onDialogPositiveClick()
118 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED); in onDialogNegativeClick()
172 switch (mDevice.getPhonebookAccessPermission()) { in getContactSharingState()
178 if (mDevice.getBluetoothClass().getDeviceClass() in getContactSharingState()
191 final int permission = mDevice.getPhonebookAccessPermission(); in setContactSharingState()
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingController.java57 private BluetoothDevice mDevice; field in BluetoothPairingController
76 mDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in BluetoothPairingController()
81 } else if (mDevice == null) { in BluetoothPairingController()
87 mDeviceName = mBluetoothManager.getCachedDeviceManager().getName(mDevice); in BluetoothPairingController()
104 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_ALLOWED); in onDialogPositiveClick()
106 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED); in onDialogPositiveClick()
118 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED); in onDialogNegativeClick()
172 switch (mDevice.getPhonebookAccessPermission()) { in getContactSharingState()
178 if (mDevice.getBluetoothClass().getDeviceClass() in getContactSharingState()
191 final int permission = mDevice.getPhonebookAccessPermission(); in setContactSharingState()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothAccessoryFragment.java81 private BluetoothDevice mDevice; field in BluetoothAccessoryFragment
142 mDevice = device; in onCreate()
149 if (mDevice == null) { in onCreate()
159 if (mDevice != null && in onStart()
160 (mDevice.getType() == BluetoothDevice.DEVICE_TYPE_LE || in onStart()
161 mDevice.getType() == BluetoothDevice.DEVICE_TYPE_DUAL)) { in onStart()
163 mDeviceGatt = mDevice.connectGatt(getActivity(), true, new GattBatteryCallbacks()); in onStart()
168 mBroadcastReceiver = new UnpairReceiver(this, mDevice); in onStart()
170 if (mDevice != null && mDevice.getBondState() == BluetoothDevice.BOND_NONE) { in onStart()
208 mUnpairPref.getExtras(), mDevice, mDeviceName, mDeviceImgId); in onCreatePreferences() local
[all …]
DBluetoothPairingDialog.java71 private BluetoothDevice mDevice; field in BluetoothPairingDialog
96 if (device == null || device.equals(mDevice)) {
122 mDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onCreate()
126 Log.d(TAG, "Requested pairing Type = " + mType + " , Device = " + mDevice); in onCreate()
275 mDevice.cancelPairingUserInput(); in cancelPairing()
280 .replace(android.R.id.content, EntryDialogFragment.newInstance(mDevice, mType)) in createUserEntryDialog()
291 ConfirmationDialogFragment.newInstance(mDevice, mPairingKey, mType); in createConfirmationDialog()
306 mDevice.setPin(pinBytes); in onPair()
313 mDevice.setPasskey(passkey); in onPair()
322 mDevice.setPairingConfirmation(true); in onPair()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingController.java56 private BluetoothDevice mDevice; field in BluetoothPairingController
73 mDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in BluetoothPairingController()
78 } else if (mDevice == null) { in BluetoothPairingController()
84 mDeviceName = mBluetoothManager.getCachedDeviceManager().getName(mDevice); in BluetoothPairingController()
93 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_ALLOWED); in onCheckedChanged()
95 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED); in onCheckedChanged()
163 switch (mDevice.getPhonebookAccessPermission()) { in getContactSharingState()
169 if (mDevice.getBluetoothClass().getDeviceClass() in getContactSharingState()
270 mDevice.setPairingConfirmation(true); in notifyDialogDisplayed()
273 mDevice.setPin(pinBytes); in notifyDialogDisplayed()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsProfilesControllerTest.java194 profile.setPreferred(mDevice, deviceIsPreferred); in addFakeProfile()
218 mContext.getString(mConnectableProfiles.get(i).getNameResource(mDevice)); in verifyProfileSwitchTitles()
268 assertThat(mConnectableProfiles.get(0).isPreferred(mDevice)).isFalse(); in disableThenReenableOneProfile()
276 assertThat(mConnectableProfiles.get(0).isPreferred(mDevice)).isTrue(); in disableThenReenableOneProfile()
293 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_ALLOWED); in pbapProfileStartsEnabled()
295 when(psp.getNameResource(mDevice)).thenReturn(R.string.bluetooth_profile_pbap); in pbapProfileStartsEnabled()
309 assertThat(mDevice.getPhonebookAccessPermission()) in pbapProfileStartsEnabled()
316 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED); in pbapProfileStartsDisabled()
318 when(psp.getNameResource(mDevice)).thenReturn(R.string.bluetooth_profile_pbap); in pbapProfileStartsDisabled()
332 assertThat(mDevice.getPhonebookAccessPermission()) in pbapProfileStartsDisabled()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/password/
DChooseLockGenericTest.java72 private UiDevice mDevice; field in ChooseLockGenericTest
85 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
104 mDevice.waitForIdle(); in testConfirmLockPasswordShown_deviceWithPassword()
123 mDevice.waitForIdle(); in testConfirmLockPasswordShown_deviceWithPassword_phishingAttack()
156 mDevice.waitForIdle(); in setPassword()
164 mDevice.waitForIdle(); in setPassword()
181 mDevice.waitForIdle(); in setPassword()
184 mDevice.pressBack(); in setPassword()
198 mDevice.waitForIdle(); in clearPassword()
205 mDevice.pressBack(); in clearPassword()
[all …]

12345