/development/samples/ApiDemos/src/com/example/android/apis/view/ |
GameControllerInput.java | 156 private InputDeviceState getInputDeviceState(int deviceId) { 157 InputDeviceState state = mInputDeviceStates.get(deviceId); 159 final InputDevice device = mInputManager.getInputDevice(deviceId); 164 mInputDeviceStates.put(deviceId, state); 172 public void onInputDeviceAdded(int deviceId) { 173 InputDeviceState state = getInputDeviceState(deviceId); 179 public void onInputDeviceChanged(int deviceId) { 180 InputDeviceState state = mInputDeviceStates.get(deviceId); 182 mInputDeviceStates.remove(deviceId); 183 state = getInputDeviceState(deviceId); [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/ |
BluetoothFacade.java | 144 public static boolean deviceMatch(BluetoothDevice device, String deviceID) { 145 return deviceID.equals(device.getAliasName()) || deviceID.equals(device.getAddress()); 157 public static BluetoothDevice getDevice(Collection<BluetoothDevice> devices, String deviceID) 159 Log.d("Looking for " + deviceID); 162 if (deviceMatch(bd, deviceID)) { 167 throw new Exception("Can't find device " + deviceID); 170 public static boolean deviceExists(Collection<BluetoothDevice> devices, String deviceID) { 172 if (deviceMatch(bd, deviceID)) {
|
BluetoothA2dpSinkFacade.java | 115 @RpcParameter(name = "deviceID", 117 String deviceID) { 124 device = BluetoothFacade.getDevice(deviceList, deviceID);
|
BluetoothAvrcpFacade.java | 97 @RpcParameter(name = "deviceID", 99 String deviceID, 109 deviceID);
|
BluetoothHfpClientFacade.java | 123 @RpcParameter(name = "deviceID", 125 String deviceID) { 132 device = BluetoothFacade.getDevice(deviceList, deviceID);
|
BluetoothHspFacade.java | 115 @RpcParameter(name = "deviceID", 117 String deviceID) { 124 device = BluetoothFacade.getDevice(deviceList, deviceID);
|
BluetoothMapFacade.java | 82 @RpcParameter(name = "deviceID", description = "Name or MAC address of a device.") 83 String deviceID) 88 BluetoothDevice mDevice = BluetoothFacade.getDevice(connectedMapDevices, deviceID);
|
/frameworks/base/core/java/android/hardware/input/ |
InputManager.java | [all...] |
InputManagerInternal.java | 59 * @param deviceId The id of input device. 61 public abstract void toggleCapsLock(int deviceId);
|
/frameworks/base/core/java/android/view/ |
InputEventConsistencyVerifier.java | 206 final int deviceId = event.getDeviceId(); 211 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ false); 225 addKeyState(deviceId, source, keyCode); 230 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ true); 342 final int deviceId = event.getDeviceId(); 346 && (mTouchEventStreamDeviceId != deviceId 351 + ", new device id " + deviceId 354 mTouchEventStreamDeviceId = deviceId; 593 final int deviceId = keyEvent.getDeviceId(); 596 final KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ false) [all...] |
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
MtpDatabase.java | 136 final int deviceId = deviceCursor.getInt(0); 144 deviceId), 157 deviceId), 301 @Nullable String getDocumentIdForDevice(int deviceId) { 306 strings(DOCUMENT_TYPE_DEVICE, deviceId), 349 String getDeviceDocumentId(int deviceId) throws FileNotFoundException { 355 strings(deviceId, DOCUMENT_TYPE_DEVICE, ROW_STATE_DISCONNECTED), 364 throw new FileNotFoundException("The device ID not found: " + deviceId); 380 int deviceId, String parentDocumentId, int[] operationsSupported, MtpObjectInfo info, 384 values, deviceId, parentDocumentId, operationsSupported, info, size) [all...] |
MtpDocumentsProvider.java | 417 void openDevice(int deviceId) throws IOException { 419 if (mDeviceToolkits.containsKey(deviceId)) { 423 Log.d(TAG, "Open device " + deviceId); 425 final MtpDeviceRecord device = mMtpManager.openDevice(deviceId); 428 mDeviceToolkits.put(deviceId, toolkit); 441 void closeDevice(int deviceId) throws IOException, InterruptedException { 443 closeDeviceInternal(deviceId); 463 * @param deviceId 467 public String getDeviceDocumentId(int deviceId) throws FileNotFoundException { 468 return mDatabase.getDeviceDocumentId(deviceId); [all...] |
/external/webrtc/webrtc/modules/video_capture/ios/ |
device_info_ios.mm | 72 char deviceId[256]; 73 this->GetDeviceName(i, deviceNameUTF8, 256, deviceId, 256); 74 std::string deviceIdCopy(deviceId);
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
TestUtil.java | 111 int deviceId) throws IOException { 115 if (deviceCandidate.deviceId == deviceId) {
|
/frameworks/native/include/input/ |
KeyCharacterMap.h | 123 bool getEvents(int32_t deviceId, const char16_t* chars, size_t numChars, 246 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time); 248 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 251 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 255 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 261 int32_t deviceId, int32_t metaState, nsecs_t time,
|
/frameworks/native/libs/input/tests/ |
InputPublisherAndConsumer_test.cpp | 74 const int32_t deviceId = 1; 85 status = mPublisher->publishKeyEvent(seq, deviceId, source, action, flags, 103 EXPECT_EQ(deviceId, keyEvent->getDeviceId()); 133 const int32_t deviceId = 1; 167 status = mPublisher->publishMotionEvent(seq, deviceId, source, action, actionButton, 187 EXPECT_EQ(deviceId, motionEvent->getDeviceId());
|
StructLayout_test.cpp | 39 CHECK_OFFSET(InputMessage::Body::Key, deviceId, 16); 51 CHECK_OFFSET(InputMessage::Body::Motion, deviceId, 16);
|
/external/autotest/client/common_lib/cros/fake_device_server/client_lib/ |
commands.py | 40 request = urllib2.Request(self.get_url(params={'deviceId':device_id}), 76 data['deviceId'] = device_id
|
/external/mesa3d/src/gallium/drivers/radeon/ |
AMDIL7XXDevice.cpp | 55 uint32_t AMDGPU7XXDevice::getResourceID(uint32_t DeviceID) const 57 switch (DeviceID) {
|
/frameworks/base/core/java/android/hardware/fingerprint/ |
Fingerprint.java | 31 public Fingerprint(CharSequence name, int groupId, int fingerId, long deviceId) { 35 mDeviceId = deviceId;
|
/frameworks/base/core/java/android/hardware/hdmi/ |
IHdmiControlService.aidl | 47 void deviceSelect(int deviceId, IHdmiControlCallback callback); 66 void sendStandby(int deviceType, int deviceId);
|
/frameworks/base/media/java/android/media/tv/ |
DvbDeviceInfo.java | 61 public DvbDeviceInfo(int adapterId, int deviceId) { 63 mDeviceId = deviceId;
|
/external/opencv3/modules/videoio/src/ |
cap_dshow.cpp | 277 int device1 = 0; //this could be any deviceID that shows up in listDevices 278 int device2 = 1; //this could be any deviceID that shows up in listDevices 491 static char * getDeviceName(int deviceID); 498 void setIdealFramerate(int deviceID, int idealFramerate); 506 bool setupDevice(int deviceID); 507 bool setupDevice(int deviceID, int w, int h); 508 bool setupDeviceFourcc(int deviceID, int w, int h,int fourcc); 512 bool setupDevice(int deviceID, int connection); 513 bool setupDevice(int deviceID, int w, int h, int connection); 525 bool isFrameNew(int deviceID); [all...] |
/frameworks/native/services/inputflinger/ |
InputDispatcher.cpp | 666 entry->deviceId, entry->source, policyFlags, 704 ALOGD("dispatchDeviceReset - eventTime=%lld, deviceId=%d", entry->eventTime, entry->deviceId); 709 options.deviceId = entry->deviceId; 814 ALOGD("%seventTime=%lld, deviceId=%d, source=0x%x, policyFlags=0x%x, " 818 entry->eventTime, entry->deviceId, entry->source, entry->policyFlags, [all...] |
/frameworks/native/services/inputflinger/tests/ |
InputReader_test.cpp | 164 void setPointerController(int32_t deviceId, const sp<FakePointerController>& controller) { 165 mPointerControllers.add(deviceId, controller); 190 virtual sp<PointerControllerInterface> obtainPointerController(int32_t deviceId) { 191 return mPointerControllers.valueFor(deviceId); 347 void addDevice(int32_t deviceId, const String8& name, uint32_t classes) { 350 mDevices.add(deviceId, device); 352 enqueueEvent(ARBITRARY_TIME, deviceId, EventHubInterface::DEVICE_ADDED, 0, 0); 355 void removeDevice(int32_t deviceId) { 356 delete mDevices.valueFor(deviceId); 357 mDevices.removeItem(deviceId); [all...] |