Searched refs:mDevice (Results 1 - 25 of 84) sorted by relevance

1234

/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
H A DBatterySaverStateMachineTest.java49 private Device mDevice; field in class:BatterySaverStateMachineTest
110 mDevice.getLowPowerModeTriggerLevel());
136 mDevice.putGlobalSetting(key, value);
141 return mDevice.getGlobalSetting(key, defValue);
161 doAnswer((inv) -> mDevice.batterySaverEnabled = inv.getArgument(0))
164 .thenAnswer((inv) -> mDevice.batterySaverEnabled);
171 mDevice = new Device();
175 mDevice.pushBatteryStatus();
176 mDevice.pushGlobalSettings();
182 assertEquals(0, mDevice
[all...]
/frameworks/av/media/libaudiohal/4.0/
H A DDeviceHalHidl.cpp108 : ConversionHelperHidl("Device"), mDevice(device),
113 if (mDevice != 0) {
114 mDevice.clear();
125 if (mDevice == 0) return NO_INIT;
126 return processReturn("initCheck", mDevice->initCheck());
130 if (mDevice == 0) return NO_INIT;
136 if (mDevice == 0) return NO_INIT;
142 if (mDevice == 0) return NO_INIT;
156 if (mDevice == 0) return NO_INIT;
162 if (mDevice
[all...]
/frameworks/av/media/libaudiohal/2.0/
H A DDeviceHalHidl.cpp102 : ConversionHelperHidl("Device"), mDevice(device),
107 if (mDevice != 0) {
108 mDevice.clear();
119 if (mDevice == 0) return NO_INIT;
120 return processReturn("initCheck", mDevice->initCheck());
124 if (mDevice == 0) return NO_INIT;
130 if (mDevice == 0) return NO_INIT;
136 if (mDevice == 0) return NO_INIT;
150 if (mDevice == 0) return NO_INIT;
156 if (mDevice
[all...]
/frameworks/base/packages/Shell/tests/src/com/android/shell/
H A DUiBot.java41 private final UiDevice mDevice; field in class:UiBot
46 mDevice = UiDevice.getInstance(instrumentation);
57 boolean opened = mDevice.openNotification();
59 boolean gotIt = mDevice.wait(Until.hasObject(By.pkg(SYSTEMUI_PACKAGE)), mTimeout);
66 // TODO: mDevice should provide such method..
88 boolean gotIt = mDevice.wait(Until.hasObject(By.text(text)), mTimeout);
99 boolean gotIt = mDevice.wait(Until.hasObject(By.res(id)), mTimeout);
110 UiObject uiObject = mDevice.findObject(new UiSelector().text(text));
121 UiObject uiObject = mDevice.findObject(new UiSelector().resourceId(id));
132 boolean hasIt = mDevice
[all...]
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DDelayedMessageBuffer.java30 private final HdmiCecLocalDevice mDevice; field in class:DelayedMessageBuffer
33 mDevice = device;
91 mDevice.onMessage(message);
116 && !mDevice.isInputReady(HdmiDeviceInfo.idForCecDevice(address))) {
120 mDevice.onMessage(message);
142 mDevice.onMessage(message);
/frameworks/rs/rsov/driver/
H A DrsovContext.h33 VkDevice getDevice() const { return mDevice; }
50 VkDevice mDevice; member in class:android::renderscript::rsov::RSoVContext
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DCachedBluetoothDevice.java56 private final BluetoothDevice mDevice; field in class:CachedBluetoothDevice
107 Log.d(TAG, "setHiSyncId: mDevice " + mDevice + ", id " + id);
136 sb.append("Address:").append(mDevice);
157 profile.setPreferred(mDevice, true);
163 ((PanProfile) profile).isLocalRoleNap(mDevice)) {
170 profile.setPreferred(mDevice, false);
172 ((PanProfile) profile).isLocalRoleNap(mDevice) &&
190 mDevice = device;
204 if (PbapProfile.getConnectionStatus(mDevice)
[all...]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
H A DA2dpProfileTest.java50 @Mock BluetoothDevice mDevice; field in class:A2dpProfileTest
78 assertThat(mProfile.supportsHighQualityAudio(mDevice)).isTrue();
82 assertThat(mProfile.supportsHighQualityAudio(mDevice)).isFalse();
86 assertThat(mProfile.supportsHighQualityAudio(mDevice)).isFalse();
93 assertThat(mProfile.isHighQualityAudioEnabled(mDevice)).isTrue();
97 assertThat(mProfile.isHighQualityAudioEnabled(mDevice)).isFalse();
110 assertThat(mProfile.isHighQualityAudioEnabled(mDevice)).isFalse();
114 assertThat(mProfile.isHighQualityAudioEnabled(mDevice)).isTrue();
119 when(mBluetoothA2dpWrapper.getCodecStatus(mDevice)).thenReturn(status);
123 assertThat(mProfile.isHighQualityAudioEnabled(mDevice))
[all...]
/frameworks/native/include/binder/
H A DMemoryHeapBase.h77 if (mDevice == 0)
78 mDevice = device;
79 return mDevice ? NO_ERROR : ALREADY_EXISTS;
95 const char* mDevice; member in class:android::MemoryHeapBase
/frameworks/native/libs/binder/include/binder/
H A DMemoryHeapBase.h77 if (mDevice == 0)
78 mDevice = device;
79 return mDevice ? NO_ERROR : ALREADY_EXISTS;
95 const char* mDevice; member in class:android::MemoryHeapBase
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothGatt.java48 private BluetoothDevice mDevice; field in class:BluetoothGatt
182 mService.clientConnect(mClientIf, mDevice.getAddress(),
200 if (!address.equals(mDevice.getAddress())) {
225 if (!address.equals(mDevice.getAddress())) {
251 if (!address.equals(mDevice.getAddress())) {
295 if (!address.equals(mDevice.getAddress())) {
301 s.setDevice(mDevice);
313 BluetoothGattService includedService = getService(mDevice,
347 if (!address.equals(mDevice.getAddress())) {
371 BluetoothGattCharacteristic characteristic = getCharacteristicById(mDevice,
1361 abortReliableWrite(BluetoothDevice mDevice) argument
[all...]
H A DBluetoothGattService.java51 protected BluetoothDevice mDevice; field in class:BluetoothGattService
106 mDevice = null;
121 mDevice = device;
135 mDevice = null;
211 return mDevice;
220 mDevice = device;
H A DBluetoothHeadsetClientCall.java68 private final BluetoothDevice mDevice; field in class:BluetoothHeadsetClientCall
88 mDevice = device;
138 return mDevice;
226 StringBuilder builder = new StringBuilder("BluetoothHeadsetClientCall{mDevice: ");
227 builder.append(loggable ? mDevice : mDevice.hashCode());
295 out.writeParcelable(mDevice, 0);
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DAudioSourceDescriptor.h37 mDevice(device), mAttributes(*attributes), mUid(uid) {}
44 const sp<DeviceDescriptor> mDevice; member in class:android::AudioSourceDescriptor
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
H A DBlockingCameraManager.java181 private CameraDevice mDevice = null; field in class:BlockingCameraManager.OpenListener
200 assertEquals(null, mDevice);
216 mDevice = camera;
239 mDevice = camera;
265 mDevice = camera;
305 if (!mSuccess && mDevice != null) {
306 mDevice.close();
310 return mDevice;
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
H A DUsbConfirmActivity.java52 private UsbDevice mDevice; field in class:UsbConfirmActivity
63 mDevice = (UsbDevice) intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
72 if (mDevice == null) {
78 mDevice.getProductName());
79 mDisconnectedReceiver = new UsbDisconnectedReceiver(this, mDevice);
91 if (mDevice == null) {
96 mDevice.getProductName()));
125 if (mDevice != null) {
127 intent.putExtra(UsbManager.EXTRA_DEVICE, mDevice);
130 service.grantDevicePermission(mDevice, ui
[all...]
H A DUsbDisconnectedReceiver.java32 private UsbDevice mDevice; field in class:UsbDisconnectedReceiver
37 mDevice = device;
56 if (device != null && device.equals(mDevice)) {
H A DUsbResolverActivity.java49 private UsbDevice mDevice; field in class:UsbResolverActivity
88 mDevice = (UsbDevice)target.getParcelableExtra(UsbManager.EXTRA_DEVICE);
89 if (mDevice != null) {
90 mDisconnectedReceiver = new UsbDisconnectedReceiver(this, mDevice);
112 if (mDevice != null) {
113 mOtherProfileIntent.putExtra(UsbManager.EXTRA_DEVICE, mDevice);
127 if (mDevice == null) {
158 if (mDevice != null) {
160 service.grantDevicePermission(mDevice, uid);
163 service.setDevicePackage(mDevice, r
[all...]
H A DUsbPermissionActivity.java62 private UsbDevice mDevice; field in class:UsbPermissionActivity
75 mDevice = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
94 if (mDevice == null) {
100 mDevice.getProductName());
101 mDisconnectedReceiver = new UsbDisconnectedReceiver(this, mDevice);
112 if ((mDevice != null && canBeDefault(mDevice, packageInfo))
119 if (mDevice == null) {
124 mDevice.getProductName()));
233 if (mDevice !
[all...]
/frameworks/base/core/java/android/bluetooth/le/
H A DScanResult.java75 private BluetoothDevice mDevice; field in class:ScanResult
107 mDevice = device;
136 mDevice = device;
154 if (mDevice != null) {
156 mDevice.writeToParcel(dest, flags);
178 mDevice = BluetoothDevice.CREATOR.createFromParcel(in);
202 return mDevice;
305 return Objects.hash(mDevice, mRssi, mScanRecord, mTimestampNanos,
320 return Objects.equals(mDevice, other.mDevice)
[all...]
/frameworks/native/libs/binder/
H A DMemoryHeapBase.cpp39 mDevice(NULL), mNeedUnmap(false), mOffset(0)
45 mDevice(0), mNeedUnmap(false), mOffset(0)
62 mDevice(0), mNeedUnmap(false), mOffset(0)
74 mDevice = device;
81 mDevice(0), mNeedUnmap(false), mOffset(0)
97 mDevice = device;
169 return mDevice;
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
H A DWifiP2pServiceResponse.java60 protected WifiP2pDevice mDevice; field in class:WifiP2pServiceResponse
123 mDevice = device;
176 return mDevice;
182 this.mDevice = dev;
290 sbuf.append(" srcAddr:").append(mDevice.deviceAddress);
308 equals(req.mDevice.deviceAddress, mDevice.deviceAddress) &&
327 result = 31 * result + (mDevice.deviceAddress == null ?
328 0 : mDevice.deviceAddress.hashCode());
343 dest.writeParcelable(mDevice, flag
[all...]
/frameworks/base/core/tests/notificationtests/src/android/app/
H A DNotificationStressTest.java63 private UiDevice mDevice = null; field in class:NotificationStressTest
69 mDevice = UiDevice.getInstance(getInstrumentation());
73 mDevice.setOrientationNatural();
79 mDevice.unfreezeRotation();
81 mDevice.waitForIdle();
96 mDevice.openNotification();
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DNitzStateMachineTest.java435 private final Device mDevice; field in class:NitzStateMachineTest.Script
438 this.mDevice = device;
442 mDevice.networkCountryKnown(countryIsoCode);
447 mDevice.nitzSignalReceived(nitzSignal);
452 mDevice.incrementClocks(clockIncrement);
457 mDevice.verifyTimeZoneWasNotSet();
458 mDevice.verifyTimeWasNotSet();
459 mDevice.checkNoUnverifiedSetOperations();
460 mDevice.resetInvocations();
465 mDevice
[all...]
/frameworks/av/services/camera/libcameraservice/common/
H A DCamera2ClientBase.cpp66 mDevice = new Camera3Device(cameraId);
67 LOG_ALWAYS_FATAL_IF(mDevice == 0, "Device should never be NULL here.");
103 if (mDevice == NULL) {
109 res = mDevice->initialize(providerPtr, monitorTags);
117 res = mDevice->setNotifyCallback(weakThis);
162 sp<CameraDeviceBase> device = mDevice;
206 if (mDevice == 0) return;
207 mDevice->disconnect();
209 mDevice.clear();
349 return mDevice;
[all...]

Completed in 304 milliseconds

1234