/external/libmtp/examples/ |
getplaylist.c | 3 * Example program that lists the abstract playlists on the device. 26 static uint32_t dump_playlist(LIBMTP_mtpdevice_t *device, LIBMTP_playlist_t *pl) 35 track = LIBMTP_Get_Trackmetadata(device, pl->tracks[i]); 41 LIBMTP_Dump_Errorstack(device); 42 LIBMTP_Clear_Errorstack(device); 51 LIBMTP_mtpdevice_t *device; local 75 device = LIBMTP_Get_First_Device(); 76 if (device == NULL) { 77 printf("No devices. Connect/replug device and try again.\n"); 81 playlist = LIBMTP_Get_Playlist(device,id); [all...] |
playlists.c | 3 * Example program to list the playlists on a device. 25 static void dump_plinfo(LIBMTP_mtpdevice_t *device, LIBMTP_playlist_t *pl) 38 track = LIBMTP_Get_Trackmetadata(device, pl->tracks[i]); 44 LIBMTP_Dump_Errorstack(device); 45 LIBMTP_Clear_Errorstack(device); 52 LIBMTP_mtpdevice_t *device; local 58 device = LIBMTP_Get_First_Device(); 59 if (device == NULL) { 65 playlists = LIBMTP_Get_Playlist_List(device); 72 dump_plinfo(device, pl) [all...] |
/hardware/intel/img/hwcomposer/merrifield/common/base/ |
Drm.h | 45 bool detect(int device); 46 bool setDrmMode(int device, drmModeModeInfo& value); 47 bool setRefreshRate(int device, int hz); 55 bool isConnected(int device); 56 bool setDpmsMode(int device, int mode); 58 bool getModeInfo(int device, drmModeModeInfo& mode); 59 bool getPhysicalSize(int device, uint32_t& width, uint32_t& height); 61 int getPanelOrientation(int device); 62 drmModeModeInfoPtr detectAllConfigs(int device, int *modeCount); 69 // map device type to output index, return -1 if not mappe [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
ViewManager.java | 20 import com.android.hierarchyviewer.device.Window; 21 import com.android.hierarchyviewer.device.DeviceBridge; 30 public static void invalidate(IDevice device, Window window, String params) { 31 sendCommand("INVALIDATE", device, window, params); 34 public static void requestLayout(IDevice device, Window window, String params) { 35 sendCommand("REQUEST_LAYOUT", device, window, params); 38 public static void outputDisplayList(IDevice device, Window window, String params) { 39 sendCommand("OUTPUT_DISPLAYLIST", device, window, params); 42 private static void sendCommand(String command, IDevice device, Window window, String params) { 49 DeviceBridge.getDeviceLocalPort(device))); [all...] |
/system/connectivity/shill/test-scripts/ |
set-device-property | 6 print "Usage: %s <device-name> <property> <value>" % (sys.argv[0]) 12 device = flim.FindElementByNameSubstring('Device', name) 14 device.SetProperty(property_key, dbus.UInt16(value)) 16 device.SetProperty(property_key, dbus.Int32(value)) 18 device.SetProperty(property_key, 21 device.SetProperty(property_key, value)
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
A2dpStateMachine.java | 81 // mCurrentDevice is the device connected before the state changes 82 // mTargetDevice is the device to be connected 83 // mIncomingDevice is the device connecting to us, valid only in Pending state 94 // Connecting to a device, Pending 96 // Disconnecting device, Connecting to new device 99 // Disconnecting device Pending 177 BluetoothDevice device = (BluetoothDevice) message.obj; local 178 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTING, 181 if (!connectA2dpNative(getByteAddress(device)) ) { 299 BluetoothDevice device = (BluetoothDevice) message.obj; local 506 BluetoothDevice device = (BluetoothDevice) message.obj; local 527 BluetoothDevice device = (BluetoothDevice) message.obj; local 762 BluetoothDevice device = null; field in class:A2dpStateMachine.StackEvent [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
HeadsetClientService.java | 171 public boolean connect(BluetoothDevice device) { 176 return service.connect(device); 180 public boolean disconnect(BluetoothDevice device) { 185 return service.disconnect(device); 207 public int getConnectionState(BluetoothDevice device) { 212 return service.getConnectionState(device); 216 public boolean setPriority(BluetoothDevice device, int priority) { 221 return service.setPriority(device, priority); 225 public int getPriority(BluetoothDevice device) { 230 return service.getPriority(device); [all...] |
/device/asus/fugu/libaudio/ |
ATVAudioPolicyManager.cpp | 63 audio_devices_t device) 69 (void)device; 73 status_t ATVAudioPolicyManager::setDeviceConnectionState(audio_devices_t device, 79 ALOGE("setDeviceConnectionState %08x %x %s", device, state, 82 // If the input device is the remote submix and an address starting with "force=" was 84 // input device over hardware input devices (e.g RemoteControl). 85 if (device == AUDIO_DEVICE_IN_REMOTE_SUBMIX && device_address) { 93 if (audio_is_output_device(device)) { 96 tmp = mAvailableOutputDevices.types() | device; 100 tmp = mAvailableOutputDevices.types() & ~device; 127 uint32_t device = AUDIO_DEVICE_NONE; local [all...] |
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/ |
android_command_line_backend_unittest.py | 28 serial = options_for_unittests.GetCopy().device 30 device = device_utils.DeviceUtils(serial) 31 return device 63 Requires a device connected to the host. 65 device = self._GetDeviceForTest() 66 if not device: 67 logging.warning('Skip the test because we cannot find any healthy device') 73 device.WriteFile(cmd_file, 'chrome --args --to --save') 75 device.ReadFile(cmd_file).strip()) 77 device, backend_settings, startup_args) [all...] |
/development/tools/labpretest/ |
labpretest.sh | 7 # session. It puts a device into bootloader mode, reboots into bootloader mode, 8 # determines device type, erases user cache, flashes a generic userdata image, 24 device='' 31 d) device="$OPTARG";; 35 h) echo "options: [-d <device ID>, -i <loop count>, -m <monkey events> -x (skips monkey)]"; exit;; 66 # device 80 battery=`$ADB -s $device shell dumpsys battery | tr -d '\r' | awk '/level:/ {print $2}'` 86 battery=`$ADB -s $device shell dumpsys battery | tr -d '\r' | awk '/level:/ {print $2}'` 99 # Blocks until device is in fastboot mode or 103 # device [all...] |
/device/google/atv/sdk/ |
atv_sdk.atree | 18 ${HOST_OUT}/device/google/atv/sdk/images_${TARGET_CPU_ABI}_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties 19 device/google/atv/sdk/images_${TARGET_CPU_ABI}_hardware.ini system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/hardware.ini 21 # devices.xml file with custom device definitions 22 device/google/atv/sdk/devices.xml system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/devices.xml
|
/external/autotest/client/cros/scripts/ |
device | 19 print cmd, 'get-property <devname> [propname] - List device property.' 25 def set_device_property(device, property_key, value): 26 """Sets a property on a device 28 @param device Interface representing a device 33 shill_proxy.ShillProxy.set_dbus_property(device, property_key, value) 37 def print_device_properties(device, property_key): 38 """Prints one or all properties on a device 40 @param device Interface representing a device [all...] |
/frameworks/base/core/java/android/bluetooth/ |
IBluetoothPan.aidl | 30 boolean connect(in BluetoothDevice device); 31 boolean disconnect(in BluetoothDevice device); 34 int getConnectionState(in BluetoothDevice device);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
A2dpProfile.java | 52 // Order of this profile in device profiles list 66 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); local 67 // we may add a new device here, but generally this should not happen 68 if (device == null) { 69 Log.w(TAG, "A2dpProfile found new device: " + nextDevice); 70 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); 72 device.onProfileStateChanged(A2dpProfile.this, BluetoothProfile.STATE_CONNECTED); 73 device.refresh(); 114 public boolean connect(BluetoothDevice device) { 122 return mService.connect(device); [all...] |
/hardware/intel/img/hwcomposer/merrifield/ips/common/ |
DrmConfig.cpp | 30 uint32_t DrmConfig::getDrmConnector(int device) 32 if (device == IDisplayDevice::DEVICE_PRIMARY) 34 else if (device == IDisplayDevice::DEVICE_EXTERNAL) 39 uint32_t DrmConfig::getDrmEncoder(int device) 41 if (device == IDisplayDevice::DEVICE_PRIMARY) 43 else if (device == IDisplayDevice::DEVICE_EXTERNAL)
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/common/ |
DrmConfig.cpp | 30 uint32_t DrmConfig::getDrmConnector(int device) 32 if (device == IDisplayDevice::DEVICE_PRIMARY) 34 else if (device == IDisplayDevice::DEVICE_EXTERNAL) 39 uint32_t DrmConfig::getDrmEncoder(int device) 41 if (device == IDisplayDevice::DEVICE_PRIMARY) 43 else if (device == IDisplayDevice::DEVICE_EXTERNAL)
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/ |
BluetoothDeviceCriteria.java | 26 * type of device that is being looked for. 28 * For example, does the device MAC address match the expected pattern and 29 * does the device provide the types of services (audio, video, input, etc) that 34 // TODO add ability to determine matching device based on name 48 public final boolean isMatchingDevice(BluetoothDevice device) { 49 if (device == null) { 53 if (device.getAddress() == null || !isMatchingMacAddress(device.getAddress())) { 57 if (!isMatchingMajorDeviceClass(device.getBluetoothClass().getMajorDeviceClass())) { 61 if (!isMatchingDeviceClass(device.getBluetoothClass().getDeviceClass())) [all...] |
/device/moto/shamu/camera/QCamera/HAL/wrapper/ |
QualcommCamera.cpp | 131 QCameraHardwareInterface *util_get_Hal_obj( struct camera_device * device) 134 if(device && device->priv){ 135 camera_hardware_t *camHal = (camera_hardware_t *)device->priv; 142 QCameraParameters* util_get_HAL_parameter( struct camera_device * device) 145 if(device && device->priv){ 146 camera_hardware_t *camHal = (camera_hardware_t *)device->priv; 202 camera_device *device = NULL; local 226 device = &camHal->hw_dev 251 camera_device_t *device = (camera_device_t *)hw_dev; local [all...] |
/hardware/ti/omap4-aah/camera/ |
CameraHal_Module.cpp | 47 hw_device_t** device); 48 static int camera_device_close(hw_device_t* device); 91 int camera_set_preview_window(struct camera_device * device, 99 if(!device) 102 ti_dev = (ti_camera_device_t*) device; 110 int camera_set_extended_preview_ops(struct camera_device * device, 115 if (!device) { 119 ti_camera_device_t * const tiDevice = reinterpret_cast<ti_camera_device_t*>(device); 125 int camera_set_buffer_source(struct camera_device * device, 134 if(!device) [all...] |
/frameworks/base/core/jni/ |
android_hardware_UsbDeviceConnection.cpp | 52 struct usb_device* device = usb_device_new(deviceNameStr, fd); local 53 if (device) { 54 env->SetLongField(thiz, field_context, (jlong)device); 61 return (device != NULL) ? JNI_TRUE : JNI_FALSE; 68 struct usb_device* device = get_device_from_object(env, thiz); local 69 if (device) { 70 usb_device_close(device); 78 struct usb_device* device = get_device_from_object(env, thiz); local 79 if (!device) { 80 ALOGE("device is closed in native_get_fd") 111 struct usb_device* device = get_device_from_object(env, thiz); local 129 struct usb_device* device = get_device_from_object(env, thiz); local 146 struct usb_device* device = get_device_from_object(env, thiz); local 158 struct usb_device* device = get_device_from_object(env, thiz); local 172 struct usb_device* device = get_device_from_object(env, thiz); local 197 struct usb_device* device = get_device_from_object(env, thiz); local 220 struct usb_device* device = get_device_from_object(env, thiz); local 236 struct usb_device* device = get_device_from_object(env, thiz); local [all...] |
/development/ndk/platforms/android-3/include/linux/ |
attribute_container.h | 15 #include <linux/device.h> 25 int (*match)(struct attribute_container *, struct device *); 31 struct class_device *attribute_container_find_class_device(struct attribute_container *, struct device *);
|
/external/deqp/external/vulkancts/framework/vulkan/ |
vkRefUtil.cpp | 32 VkDevice device, 38 VK_CHECK(vk.createGraphicsPipelines(device, pipelineCache, 1u, pCreateInfo, pAllocator, &object)); 39 return Move<VkPipeline>(check<VkPipeline>(object), Deleter<VkPipeline>(vk, device, pAllocator)); 43 VkDevice device, 49 VK_CHECK(vk.createComputePipelines(device, pipelineCache, 1u, pCreateInfo, pAllocator, &object)); 50 return Move<VkPipeline>(check<VkPipeline>(object), Deleter<VkPipeline>(vk, device, pAllocator)); 53 Move<VkCommandBuffer> allocateCommandBuffer (const DeviceInterface& vk, VkDevice device, const VkCommandBufferAllocateInfo* pAllocateInfo) 57 VK_CHECK(vk.allocateCommandBuffers(device, pAllocateInfo, &object)); 58 return Move<VkCommandBuffer>(check<VkCommandBuffer>(object), Deleter<VkCommandBuffer>(vk, device, pAllocateInfo->commandPool)); 61 Move<VkDescriptorSet> allocateDescriptorSet (const DeviceInterface& vk, VkDevice device, const VkDescriptorSetAllocateInfo* pAllocateInfo [all...] |
/external/mesa3d/src/gallium/state_trackers/clover/core/ |
context.hpp | 27 #include "core/device.hpp" 36 const std::vector<clover::device *> &devs); 39 bool has_device(clover::device *dev) const; 45 const std::vector<clover::device *> devs;
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
StreamDescriptor.h | 33 int getVolumeIndex(audio_devices_t device) const; 36 void addCurrentVolumeIndex(audio_devices_t device, int index); 41 bool hasVolumeIndexForDevice(audio_devices_t device) const 43 device = Volume::getDeviceForVolume(device); 44 return mIndexCur.indexOfKey(device) >= 0; 57 KeyedVector<audio_devices_t, int> mIndexCur; /**< current volume index per device. */ 73 virtual void addCurrentVolumeIndex(audio_stream_type_t stream, audio_devices_t device, 80 virtual int getVolumeIndex(audio_stream_type_t stream, audio_devices_t device) 82 return valueFor(stream).getVolumeIndex(device); [all...] |
/prebuilts/ndk/current/platforms/android-12/arch-arm/usr/include/linux/ |
attribute_container.h | 15 #include <linux/device.h> 25 int (*match)(struct attribute_container *, struct device *); 31 struct class_device *attribute_container_find_class_device(struct attribute_container *, struct device *);
|