/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/ |
D | PlayControlsRowViewTest.java | 47 mDevice.pressDPadUp(); in setUp() 60 mDevice.pressBack(); in testFocusedViewInNormalCase() 70 mDevice.pressKeyCode(KeyEvent.KEYCODE_MEDIA_FAST_FORWARD); in testFocusedViewWithDisabledActionForward() 73 mDevice.pressBack(); in testFocusedViewWithDisabledActionForward() 76 mDevice.pressKeyCode(KeyEvent.KEYCODE_MEDIA_NEXT); in testFocusedViewWithDisabledActionForward() 79 mDevice.pressBack(); in testFocusedViewWithDisabledActionForward() 89 mDevice.pressKeyCode(KeyEvent.KEYCODE_MEDIA_PREVIOUS); in testFocusedViewWithDisabledActionBackward() 92 mDevice.pressBack(); in testFocusedViewWithDisabledActionBackward() 95 mDevice.pressKeyCode(KeyEvent.KEYCODE_MEDIA_REWIND); in testFocusedViewWithDisabledActionBackward() 98 mDevice.pressBack(); in testFocusedViewWithDisabledActionBackward() [all …]
|
D | LiveChannelsAppTest.java | 53 assertWaitForCondition(mDevice, Until.hasObject(byChannelSourcesSidePanel)); in testSettingsCancel() 54 mDevice.pressBack(); in testSettingsCancel() 55 assertWaitForCondition(mDevice, Until.gone(byChannelSourcesSidePanel)); in testSettingsCancel() 56 assertHas(mDevice, Constants.MENU, false); in testSettingsCancel() 63 assertWaitForCondition(mDevice, Until.hasObject(byClosedCaptionSidePanel)); in testClosedCaptionsCancel() 64 mDevice.pressBack(); in testClosedCaptionsCancel() 65 assertWaitForCondition(mDevice, Until.gone(byClosedCaptionSidePanel)); in testClosedCaptionsCancel() 66 assertHas(mDevice, Constants.MENU, false); in testClosedCaptionsCancel() 79 assertWaitForCondition(mDevice, Until.hasObject(byDisplayModeSidePanel)); in testDisplayModeCancel() 80 mDevice.pressBack(); in testDisplayModeCancel() [all …]
|
D | ParentalControlsTest.java | 54 assertWaitForCondition(mDevice, Until.hasObject(bySidePanel)); in testRatingDependentSelect() 56 mDevice.pressDPadCenter(); in testRatingDependentSelect() 59 assertWaitForCondition(mDevice, Until.hasObject(bySidePanel)); in testRatingDependentSelect() 69 mDevice.pressDPadCenter(); in testRatingDependentSelect() 73 mDevice.pressDPadCenter(); in testRatingDependentSelect() 76 mDevice.pressDPadCenter(); in testRatingDependentSelect() 78 mDevice.pressBack(); in testRatingDependentSelect() 79 mDevice.pressBack(); in testRatingDependentSelect() 109 mDevice.pressDPadCenter(); in prepareParentalControl() 112 assertWaitForCondition(mDevice, Until.hasObject(bySidePanel)); in prepareParentalControl() [all …]
|
D | LiveChannelsTestCase.java | 43 protected UiDevice mDevice; field in LiveChannelsTestCase 55 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 57 mMenuHelper = new MenuHelper(mDevice, mTargetResources); in setUp() 58 mSidePanelHelper = new SidePanelHelper(mDevice, mTargetResources); in setUp() 59 mLiveChannelsHelper = new LiveChannelsUiDeviceHelper(mDevice, mTargetResources, context); in setUp() 72 if (mDevice.hasObject(Constants.SIDE_PANEL) || mDevice.hasObject(Constants.MENU) || mDevice in tearDown() 74 mDevice.pressBack(); in tearDown() 86 UiDeviceUtils.pressKeys(mDevice, channel.number); in pressKeysForChannel() 87 assertWaitForCondition(mDevice, Until.hasObject(Constants.KEYPAD_CHANNEL_SWITCH)); in pressKeysForChannel() 88 mDevice.pressDPadCenter(); in pressKeysForChannel()
|
D | ChannelSourcesTest.java | 46 assertWaitForCondition(mDevice, Until.hasObject(mBySettingsSidePanel)); in testSetup_cancel() 49 mDevice.pressDPadCenter(); in testSetup_cancel() 51 assertWaitForCondition(mDevice, in testSetup_cancel() 53 mDevice.pressBack(); in testSetup_cancel() 60 assertWaitForCondition(mDevice, Until.hasObject(mBySettingsSidePanel)); in testSetupTwice_cancel() 63 mDevice.pressDPadCenter(); in testSetupTwice_cancel() 64 mDevice.pressDPadCenter(); in testSetupTwice_cancel() 66 assertWaitForCondition(mDevice, in testSetupTwice_cancel() 68 mDevice.pressBack(); in testSetupTwice_cancel()
|
D | ChannelBannerViewTest.java | 41 mDevice.pressDPadCenter(); in testChannelBannerAppearDisappear() 42 assertWaitForCondition(mDevice, Until.hasObject(Constants.CHANNEL_BANNER)); in testChannelBannerAppearDisappear() 43 assertWaitForCondition(mDevice, Until.gone(Constants.CHANNEL_BANNER), mShowDurationMillis); in testChannelBannerAppearDisappear() 47 mDevice.pressDPadDown(); in testChannelBannerShownWhenTune() 48 assertWaitForCondition(mDevice, Until.hasObject(Constants.CHANNEL_BANNER)); in testChannelBannerShownWhenTune() 49 mDevice.pressDPadUp(); in testChannelBannerShownWhenTune() 50 assertWaitForCondition(mDevice, Until.hasObject(Constants.CHANNEL_BANNER)); in testChannelBannerShownWhenTune()
|
D | TimeoutTest.java | 38 mDevice.pressMenu(); in testMenu() 40 assertWaitForCondition(mDevice, Until.hasObject(Constants.MENU)); in testMenu() 41 assertWaitForCondition(mDevice, Until.gone(Constants.MENU), in testMenu() 48 assertWaitForCondition(mDevice, in testProgramGuide() 50 assertWaitForCondition(mDevice, Until.gone(Constants.PROGRAM_GUIDE), in testProgramGuide() 52 assertHas(mDevice, Constants.MENU, false); in testProgramGuide()
|
D | ProgramGuideTest.java | 36 assertWaitForCondition(mDevice, in testCancel() 38 mDevice.pressBack(); in testCancel() 39 assertWaitForCondition(mDevice, Until.gone(Constants.PROGRAM_GUIDE)); in testCancel() 40 assertHas(mDevice, Constants.MENU, false); in testCancel()
|
/packages/apps/TV/tests/jank/src/com/android/tv/tests/jank/ |
D | ProgramGuideJankTest.java | 61 protected UiDevice mDevice; field in ProgramGuideJankTest 70 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 72 mMenuHelper = new MenuHelper(mDevice, mTargetResources); in setUp() 73 mLiveChannelsHelper = new LiveChannelsUiDeviceHelper(mDevice, mTargetResources, in setUp() 100 mDevice.pressDPadDown(); in testScrollDown() 112 mDevice.pressDPadRight(); in testScrollRight() 118 UiDeviceUtils.pressKeys(mDevice, channel); in pressKeysForChannelNumber() 119 mDevice.pressDPadCenter(); in pressKeysForChannelNumber() 126 mDevice.waitForIdle(); in selectProgramGuideMenuItem() 132 mDevice.pressDPadCenter(); in warmProgramGuide() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | BluetoothPeripheralHandover.java | 83 final BluetoothDevice mDevice; field in BluetoothPeripheralHandover 113 mDevice = device; in BluetoothPeripheralHandover() 195 if (mInput.getConnectedDevices().contains(mDevice)) { in nextStepInit() 196 Log.i(TAG, "ACTION_DISCONNECT addr=" + mDevice + " name=" + mName); in nextStepInit() 199 Log.i(TAG, "ACTION_CONNECT addr=" + mDevice + " name=" + mName); in nextStepInit() 203 if (mA2dp.getConnectedDevices().contains(mDevice) || in nextStepInit() 204 mHeadset.getConnectedDevices().contains(mDevice)) { in nextStepInit() 205 Log.i(TAG, "ACTION_DISCONNECT addr=" + mDevice + " name=" + mName); in nextStepInit() 208 Log.i(TAG, "ACTION_CONNECT addr=" + mDevice + " name=" + mName); in nextStepInit() 224 if (mInput.getConnectionState(mDevice) in nextStepDisconnect() [all …]
|
D | ConfirmConnectActivity.java | 30 BluetoothDevice mDevice; field in ConfirmConnectActivity 38 mDevice = launchIntent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onCreate() 39 if (mDevice == null) finish(); in onCreate() 41 String deviceName = mDevice.getName() != null ? mDevice.getName() : ""; in onCreate() 49 allowIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in onCreate() 59 denyIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in onCreate() 75 denyIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in onStop()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothPairingDialog.java | 64 private BluetoothDevice mDevice; field in BluetoothPairingDialog 89 if (device == null || device.equals(mDevice)) { 118 mDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onCreate() 175 mCachedDeviceManager.getName(mDevice)); in createUserEntryDialog() 195 mCachedDeviceManager.getName(mDevice))); in createPinEntryView() 199 if (mDevice.getPhonebookAccessPermission() == BluetoothDevice.ACCESS_ALLOWED) { in createPinEntryView() 201 } else if (mDevice.getPhonebookAccessPermission() == BluetoothDevice.ACCESS_REJECTED){ in createPinEntryView() 204 if (mDevice.getBluetoothClass().getDeviceClass() in createPinEntryView() 207 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_ALLOWED); in createPinEntryView() 210 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED); in createPinEntryView() [all …]
|
D | BluetoothPermissionRequest.java | 51 BluetoothDevice mDevice; field in BluetoothPermissionRequest 70 mDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onReceive() 105 connectionAccessIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in onReceive() 109 String deviceAddress = mDevice != null ? mDevice.getAddress() : null; in onReceive() 110 String deviceName = mDevice != null ? mDevice.getName() : null; in onReceive() 134 deleteIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in onReceive() 138 String deviceAlias = mDevice != null ? mDevice.getAliasName() : null; in onReceive() 226 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice); in checkUserChoice() 229 bluetoothManager.getProfileManager(), mDevice); in checkUserChoice() 291 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in sendReplyIntentToReceiver()
|
D | DockService.java | 117 private BluetoothDevice mDevice; field in DockService 376 + mServiceHandler.hasMessages(MSG_TYPE_UNDOCKED_PERMANENT, mDevice)); in msgTypeDocked() 386 if (!device.equals(mDevice)) { in msgTypeDocked() 387 if (mDevice != null) { in msgTypeDocked() 389 handleUndocked(mDevice); in msgTypeDocked() 392 mDevice = device; in msgTypeDocked() 495 mDevice = device; in createDialog() 587 if (mDevice != null) { 589 DockService.this, mDevice.getAddress(), isChecked); 617 if (mDevice != null) { [all …]
|
D | BluetoothPermissionActivity.java | 53 private BluetoothDevice mDevice; field in BluetoothPermissionActivity 67 if (mDevice.equals(device)) dismissDialog(); 90 mDevice = i.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onCreate() 154 String mRemoteName = mDevice != null ? mDevice.getAliasName() : null; in createRemoteName() 214 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice); in onNegative() 218 mDevice); in onNegative() 239 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in sendReplyIntentToReceiver()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | PbapPCEClient.java | 66 private BluetoothDevice mDevice; field in PbapPCEClient 90 if (mDevice == null) { in getConnectionState() 115 return mDevice; in getDevice() 157 onConnectionStateChanged(mDevice, BluetoothProfile.STATE_CONNECTING, in onPbapClientConnected() 162 onConnectionStateChanged(mDevice, BluetoothProfile.STATE_CONNECTING, in onPbapClientConnected() 196 if (mDevice == null) { in handleMessage() 201 if (!mDevice.equals(device)) { in handleMessage() 225 } else if (mDevice != null && !mDevice.equals(device)) { in handleConnect() 230 "existing = " + mDevice + " new = " + device); in handleConnect() 232 } else if (device.equals(mDevice)) { in handleConnect() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothPairingDialog.java | 68 private BluetoothDevice mDevice; field in BluetoothPairingDialog 92 if (device == null || device.equals(mDevice)) { 111 mDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onCreate() 115 Log.d(TAG, "Requested pairing Type = " + mType + " , Device = " + mDevice); in onCreate() 262 mDevice.cancelPairingUserInput(); in cancelPairing() 267 .replace(android.R.id.content, EntryDialogFragment.newInstance(mDevice, mType)) in createUserEntryDialog() 278 ConfirmationDialogFragment.newInstance(mDevice, mPairingKey, mType); in createConfirmationDialog() 293 mDevice.setPin(pinBytes); in onPair() 299 mDevice.setPasskey(passkey); in onPair() 307 mDevice.setPairingConfirmation(true); in onPair() [all …]
|
D | BluetoothAccessoryFragment.java | 65 private BluetoothDevice mDevice; field in BluetoothAccessoryFragment 81 if (mDevice.equals(device)) { 137 mDevice = device; in onCreate() 143 if (mDevice == null) { in onCreate() 153 if (mDevice != null && in onStart() 154 (mDevice.getType() == BluetoothDevice.DEVICE_TYPE_LE || in onStart() 155 mDevice.getType() == BluetoothDevice.DEVICE_TYPE_DUAL)) { in onStart() 157 mDeviceGatt = mDevice.connectGatt(getActivity(), true, new GattBatteryCallbacks()); in onStart() 163 if (mDevice != null && mDevice.getBondState() == BluetoothDevice.BOND_NONE) { in onStart() 221 if (mDevice != null) { in unpairDevice() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/ |
D | HfpClientConnection.java | 33 private final BluetoothDevice mDevice; field in HfpClientConnection 44 mDevice = device; in HfpClientConnection() 49 mClientHasEcc = HfpClientConnectionService.hasHfpClientEcc(mHeadsetProfile, mDevice); in HfpClientConnection() 62 mClientHasEcc = HfpClientConnectionService.hasHfpClientEcc(mHeadsetProfile, mDevice); in onHfpConnected() 85 mHeadsetProfile.enterPrivateMode(mDevice, mCurrentCall.getId()); in enterPrivateMode() 133 mHeadsetProfile.dial(mDevice, number); in finishInitializing() 158 mHeadsetProfile.sendDTMF(mDevice, (byte) c); in onPlayDtmfTone() 167 mHeadsetProfile.terminateCall(mDevice, mClientHasEcc ? mCurrentCall.getId() : 0); in onDisconnect() 185 mHeadsetProfile.holdCall(mDevice); in onHold() 197 mHeadsetProfile.acceptCall(mDevice, BluetoothHeadsetClient.CALL_ACCEPT_HOLD); in onUnhold() [all …]
|
D | HfpClientConference.java | 34 private BluetoothDevice mDevice; field in HfpClientConference 40 mDevice = device; in HfpClientConference() 52 mHeadsetProfile.terminateCall(mDevice, 0); in onDisconnect() 72 mHeadsetProfile.holdCall(mDevice); in onHold() 83 mHeadsetProfile.acceptCall(mDevice, BluetoothHeadsetClient.CALL_ACCEPT_HOLD); in onUnhold() 90 mHeadsetProfile.sendDTMF(mDevice, (byte) c); in onPlayDtmfTone() 102 mHeadsetProfile.acceptCall(mDevice, BluetoothHeadsetClient.CALL_ACCEPT_NONE); in onConnectionAdded()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ |
D | QuickAddWidgetTest.java | 25 private UiDevice mDevice; field in QuickAddWidgetTest 32 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 41 mDevice.wait(Until.hasObject(By.pkg(mTargetPackage).depth(0)), 3000); in setUp() 46 mDevice.pressMenu(); // Enter overview mode. in testAddWidgetQuickly() 47 mDevice.wait(Until.findObject(By.text("Widgets")), 3000).click(); in testAddWidgetQuickly() 61 UiObject2 widgetsList = mDevice.wait(Until.findObject(By.res(mTargetPackage, in getWidgetByName() 73 List<UiObject2> visibleWidgets = mDevice.wait(Until.findObjects(By.clazz( in getVisibleWidgetByName() 84 return mDevice.wait(Until.hasObject(By.res(mTargetPackage, "hotseat")), 3000); in isOnHomescreen()
|
D | RotationPreferenceTest.java | 17 private UiDevice mDevice; field in RotationPreferenceTest 28 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 48 mDevice.setOrientationRight(); in testRotation_disabled() 62 mDevice.setOrientationRight(); in testRotation_enabled() 75 mDevice.findObject(new UiSelector().packageName(mTargetPackage)).waitForExists(6000); 83 UiObject hotseat = mDevice.findObject(
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | MtpDeviceIndexRunnable.java | 69 private final MtpDevice mDevice; field in MtpDeviceIndexRunnable 87 mDevice = index.getDevice(); in MtpDeviceIndexRunnable() 134 if (!mIndex.setIndexingResults(mDevice, mIndexGeneration, in indexDevice() 158 for (int storageId : mDevice.getStorageIds()) { in addAllObjects() 159 if (!mIndex.isAtGeneration(mDevice, mIndexGeneration)) { in addAllObjects() 165 if (!mIndex.isAtGeneration(mDevice, mIndexGeneration)) { in addAllObjects() 169 for (int objectHandle : mDevice.getObjectHandles(storageId, 0, dirHandle)) { in addAllObjects() 170 MtpObjectInfo mtpObjectInfo = mDevice.getObjectInfo(objectHandle); in addAllObjects()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ |
D | IngestService.java | 69 private MtpDevice mDevice; field in IngestService 117 if (mDevice == device) { in setDevice() 124 mDevice = device; in setDevice() 125 mIndex.setDevice(mDevice); in setDevice() 126 if (mDevice != null) { in setDevice() 127 MtpDeviceInfo deviceInfo = mDevice.getDeviceInfo(); in setDevice() 180 if (mDevice != null) { in setClientActivity() 195 ImportTask task = new ImportTask(mDevice, importHandles, mDevicePrettyName, this); in importSelectedItems() 206 if (mDevice == null) { in deviceAdded() 213 if (device == mDevice) { in deviceRemoved()
|
/packages/services/Car/vehicle_network_service/ |
D | VehicleNetworkService.cpp | 327 mDevice->unsubscribe(mDevice, property); in binderDied() 373 r = mDevice->init(mDevice, eventCallback, errorCallback); in onFirstRef() 379 vehicle_prop_config_t const* configs = mDevice->list_properties(mDevice, &numConfigs); in onFirstRef() 396 mDevice->release(mDevice); in release() 527 r = mDevice->get(mDevice, data); in getProperty() 552 mDevice->release_memory_from_get(mDevice, value); in releaseMemoryFromGet() 592 status_t r = mDevice->set(mDevice, &data); in setProperty() 685 r = mDevice->subscribe(mDevice, prop, sampleRate, newZones); in subscribe() 724 mDevice->unsubscribe(mDevice, prop); in unsubscribe() 1076 (hw_device_t**)&mDevice); in loadHal() [all …]
|