Home
last modified time | relevance | path

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

123456

/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachine.java93 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/apps/Bluetooth/src/com/android/bluetooth/le_audio/
DLeAudioStateMachine.java89 private final BluetoothDevice mDevice; field in LeAudioStateMachine
94 mDevice = device; in LeAudioStateMachine()
120 log("doQuit for device " + mDevice); in doQuit()
125 log("cleanup for device " + mDevice); in cleanup()
132 Log.i(TAG, "Enter Disconnected(" + mDevice + "): " + messageWhatToString( in enter()
146 log("Exit Disconnected(" + mDevice + "): " + messageWhatToString( in exit()
153 log("Disconnected process message(" + mDevice + "): " + messageWhatToString( in processMessage()
159 log("Connecting to " + mDevice + " group " + groupId); in processMessage()
160 if (!mNativeInterface.connectLeAudio(mDevice)) { in processMessage()
161 Log.e(TAG, "Disconnected: error connecting to " + mDevice); in processMessage()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java98 private final BluetoothDevice mDevice; field in A2dpStateMachine
106 mDevice = device; in A2dpStateMachine()
134 log("doQuit for device " + mDevice); in doQuit()
137 log("doQuit: stopped playing " + mDevice); in doQuit()
146 log("cleanup for device " + mDevice); in cleanup()
154 Log.i(TAG, "Enter Disconnected(" + mDevice + "): " + (currentMessage == null ? "null" in enter()
164 Log.i(TAG, "Disconnected: stopped playing: " + mDevice); in enter()
175 log("Exit Disconnected(" + mDevice + "): " + (currentMessage == null ? "null" in exit()
182 log("Disconnected process message(" + mDevice + "): " in processMessage()
187 Log.i(TAG, "Connecting to " + mDevice); in processMessage()
[all …]
/packages/apps/Traceur/uitests/src/com/android/traceur/uitest/
DTraceurAppTests.java49 private UiDevice mDevice; field in TraceurAppTests
53 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
56 if (!mDevice.isScreenOn()) { in setUp()
57 mDevice.wakeUp(); in setUp()
62 mDevice.pressMenu(); in setUp()
63 mDevice.pressHome(); in setUp()
65 mDevice.setOrientationNatural(); in setUp()
70 mDevice.waitForIdle(); in setUp()
78 mDevice.wait(Until.hasObject(By.pkg(TRACEUR_PACKAGE).depth(0)), TIMEOUT); in setUp()
83 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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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/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/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java122 private final BluetoothDevice mDevice; field in HeadsetStateMachine
180 mDevice = Objects.requireNonNull(device, "device cannot be null"); in HeadsetStateMachine()
230 ProfileService.println(sb, " mCurrentDevice: " + mDevice); in dump()
291 stateLogD("audio state changed: " + mDevice + ": " + mPrevState + " -> " + this); in broadcastStateTransitions()
292 broadcastAudioState(mDevice, mPrevState.getAudioStateInt(), getAudioStateInt()); in broadcastStateTransitions()
296 "connection state changed: " + mDevice + ": " + mPrevState + " -> " + this); in broadcastStateTransitions()
297 broadcastConnectionState(mDevice, mPrevState.getConnectionStateInt(), in broadcastStateTransitions()
381 + " for device " + mDevice); in enforceValidConnectionStateTransition()
386 log(getName() + ": currentDevice=" + mDevice + ", msg=" + msg); in stateLogD()
390 logw(getName() + ": currentDevice=" + mDevice + ", msg=" + msg); in stateLogW()
[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/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.getConnectionPolicy(mDevice) == in nextStepInit()
241 if (mA2dp.getConnectionPolicy(mDevice) == in nextStepInit()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothAccessoryFragment.java79 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.getType() == BluetoothDevice.DEVICE_TYPE_LE || in onStart()
159 mDevice.getType() == BluetoothDevice.DEVICE_TYPE_DUAL)) { in onStart()
161 mDeviceGatt = mDevice.connectGatt(getActivity(), true, new GattBatteryCallbacks()); in onStart()
166 mBroadcastReceiver = new UnpairReceiver(this, mDevice); in onStart()
168 if (mDevice != null && mDevice.getBondState() == BluetoothDevice.BOND_NONE) { in onStart()
206 mUnpairPref.getExtras(), mDevice, mDeviceName, mDeviceImgId); in onCreatePreferences() local
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingController.java57 private BluetoothDevice mDevice; field in BluetoothPairingController
77 mDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in BluetoothPairingController()
82 } else if (mDevice == null) { in BluetoothPairingController()
90 mDeviceName = mBluetoothManager.getCachedDeviceManager().getName(mDevice); in BluetoothPairingController()
107 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_ALLOWED); in onDialogPositiveClick()
109 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED); in onDialogPositiveClick()
121 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED); in onDialogNegativeClick()
175 switch (mDevice.getPhonebookAccessPermission()) { in getContactSharingState()
181 if (mDevice.getBluetoothClass().getDeviceClass() in getContactSharingState()
194 final int permission = mDevice.getPhonebookAccessPermission(); in setContactSharingState()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothDeviceProfilesPreferenceControllerTest.java64 private BluetoothDevice mDevice; field in BluetoothDeviceProfilesPreferenceControllerTest
72 mDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice("00:11:22:33:AA:BB"); in setUp()
73 when(mCachedDevice.getDevice()).thenReturn(mDevice); in setUp()
99 when(profile1.getNameResource(mDevice)).thenReturn(R.string.bt_profile_name); in refreshUi_addsNewProfiles()
107 when(profile2.getNameResource(mDevice)).thenReturn(R.string.bt_profile_name); in refreshUi_addsNewProfiles()
121 when(profile1.getNameResource(mDevice)).thenReturn(R.string.bt_profile_name); in refreshUi_removesRemovedProfiles()
123 when(profile2.getNameResource(mDevice)).thenReturn(R.string.bt_profile_name); in refreshUi_removesRemovedProfiles()
144 when(profile.getNameResource(mDevice)).thenReturn(R.string.bt_profile_name); in refreshUi_profiles_showsPreference()
164 when(profile.getNameResource(mDevice)).thenReturn(R.string.bt_profile_name); in profileChecked_setsProfilePreferred()
173 verify(profile).setEnabled(mDevice, true); in profileChecked_setsProfilePreferred()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpCoverArtManager.java93 private final BluetoothDevice mDevice; field in AvrcpCoverArtManager.AvrcpBipSession
98 mDevice = device; in AvrcpBipSession()
402 final BluetoothDevice mDevice; field in AvrcpCoverArtManager.BipClientCallback
405 mDevice = device; in BipClientCallback()
410 debug(mDevice.getAddress() + ": " + oldState + " -> " + newState); in onConnectionStateChanged()
413 clearHandleUuids(mDevice); in onConnectionStateChanged()
417 mService.getCurrentMetadataIfNoCoverArt(mDevice); in onConnectionStateChanged()
419 AvrcpBipClient client = getClient(mDevice); in onConnectionStateChanged()
421 disconnect(mDevice); in onConnectionStateChanged()
424 connect(mDevice, client.getL2capPsm()); in onConnectionStateChanged()
[all …]
/packages/modules/NetworkStack/tests/hostdriven/host/src/com/android/networkstack/hosttests/
DNetworkStackHostTests.kt48 private val mDevice by lazy { getDevice() } in <lambda>() constant
54 assertNotNull(mDevice) in setUp()
56 mDisableRootOnTeardown = !mDevice.isAdbRoot() && mDevice.enableAdbRoot() in setUp()
62 mDevice.disableAdbRoot() in tearDown()
70 val error = mDevice.installPackage( in testInstallAndRollback()
91 if (mDevice.isAdbRoot()) { in applyUpdateAndCheckNetworkStackRegistered()
95 val amResult = mDevice.executeShellV2Command(cmd) in applyUpdateAndCheckNetworkStackRegistered()
102 mDevice.reboot() in applyUpdateAndCheckNetworkStackRegistered()
108 return waitForDumpsys(mDevice, "package $mPackageName", "lastUpdateTime=") in getLastUpdateTime()
129 return mDevice.getProcessPid(mPackageName) in getNetworkStackPid()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunTunerHal.java44 private HdHomeRunDevice mDevice; field in HdHomeRunTunerHal
63 SoftPreconditions.checkState(mDevice == null); in openFirstAvailable()
65 mDevice = mTunerManager.acquireDevice(mContext); in openFirstAvailable()
66 if (mDevice != null) { in openFirstAvailable()
71 return mDevice != null; in openFirstAvailable()
80 return mDevice != null; in isDeviceOpen()
90 return mDevice == null ? 0 : mDevice.getDeviceId(); in getDeviceId()
96 if (mDevice != null) { in close()
97 mTunerManager.releaseDevice(mDevice); in close()
98 mDevice = null; in close()
[all …]

123456