/external/chromium-trace/catapult/devil/devil/android/tools/ |
video_recorder.py | 6 """Captures a video from an Android device.""" 27 """Records a screen capture video from an Android Device (KitKat or newer).""" 29 def __init__(self, device, megabits_per_second=4, size=None, 34 device: DeviceUtils instance. 38 size: Video frame size tuple (width, height) or None to use the device 43 self._device = device 45 '%s/screen-recording.mp4' % device.GetExternalStoragePath()) 92 """Pull resulting video file from the device. 115 parser.add_argument('-d', '--device', dest='devices', action='append', 116 help='Serial number of Android device to use.' [all...] |
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/ |
platform_backend.py | 17 def __init__(self, device=None): 18 """ Initalize an instance of PlatformBackend from a device optionally. 20 whether this platform backend supports the device. 21 If device is None, this constructor returns the host platform backend 25 device: an instance of telemetry.core.platform.device.Device. 27 if device and not self.SupportsDevice(device): 28 raise ValueError('Unsupported device: %s' % device.name [all...] |
/external/deqp/external/vulkancts/framework/vulkan/ |
vkBuilderUtil.cpp | 69 Move<VkDescriptorSetLayout> DescriptorSetLayoutBuilder::build (const DeviceInterface& vk, VkDevice device) const 90 return createDescriptorSetLayout(vk, device, &createInfo); 132 Move<VkDescriptorPool> DescriptorPoolBuilder::build (const DeviceInterface& vk, VkDevice device, VkDescriptorPoolCreateFlags flags, deUint32 maxSets) const 145 return createDescriptorPool(vk, device, &createInfo); 221 void DescriptorSetUpdateBuilder::update (const DeviceInterface& vk, VkDevice device) const 243 vk.updateDescriptorSets(device, (deUint32)writes.size(), writePtr, (deUint32)m_copies.size(), copyPtr);
|
/external/mesa3d/src/gallium/auxiliary/pipe-loader/ |
pipe_loader_drm.c | 66 struct udev_device *parent, *device = NULL; local 77 device = udev_device_new_from_devnum(udev, 'c', stat.st_rdev); 78 if (!device) 81 parent = udev_device_get_parent(device); 94 if (device) 95 udev_device_unref(device);
|
/external/mesa3d/src/gallium/targets/egl-static/ |
egl.c | 70 struct udev_device *device = NULL, *parent; local 82 device = udev_device_new_from_devnum(udev, 'c', buf.st_rdev); 83 if (device == NULL) { 85 "could not create udev device for fd %d", fd); 89 parent = udev_device_get_parent(device); 91 _eglLog(_EGL_WARNING, "could not get parent device"); 104 if (device) 105 udev_device_unref(device);
|
/external/opencv3/samples/android/hello-android/ |
run.cmd | 1 :: this batch file copies compiled executable to the device,
29 :: copy file to device (usually takes 10 seconds or more)
38 :: get image result from device
|
/external/tinyalsa/ |
tinycap.c | 61 unsigned int capture_sample(FILE *file, unsigned int card, unsigned int device, 76 unsigned int device = 0; local 86 fprintf(stderr, "Usage: %s file.wav [-D card] [-d device] [-c channels] " 103 device = atoi(*argv); 167 frames = capture_sample(file, card, device, header.num_channels, 183 unsigned int capture_sample(FILE *file, unsigned int card, unsigned int device, 204 pcm = pcm_open(card, device, PCM_IN, &config); 206 fprintf(stderr, "Unable to open PCM device (%s)\n",
|
/external/webrtc/webrtc/modules/video_capture/ |
device_info_impl.cc | 51 // Is it the same device that is asked for again. 286 for (uint32_t device = 0; device < sizeOfDelayValues; ++device) 288 if (delayValues[device].productId && strncmp((char*) productId, 289 (char*) delayValues[device].productId, 300 const DelayValue& currentValue = delayValues[device].delayValues[delayIndex];
|
/external/webrtc/webrtc/modules/video_capture/ios/ |
device_info_ios_objc.mm | 32 for (AVCaptureDevice* device in 34 if ([uniqueId isEqual:device.uniqueID]) { 35 return device;
|
/frameworks/av/services/audiopolicy/ |
AudioPolicyInterface.h | 39 // - keep track of current system state (removable device connections, phone state, user requests...). 48 // applicable to each output as a function of platform specific settings and current output route (destination device). It 76 // indicate a change in device connection status 77 virtual status_t setDeviceConnectionState(audio_devices_t device, 81 // retrieve a device connection status 82 virtual audio_policy_dev_state_t getDeviceConnectionState(audio_devices_t device, 86 // force using a specific device category for the specified usage 88 // retrieve current device category forced for a given usage 130 // request an input appropriate for record from the supplied device with supplied parameters. 161 // supplied device. By convention, specifying AUDIO_DEVICE_OUT_DEFAULT_FOR_VOLUME mean [all...] |
/hardware/libhardware/include/hardware/ |
audio.h | 65 * a suffix specific to the device. 82 * audio device parameters 211 /** dump the state of the audio input/output device */ 214 /** Return the set of device(s) which this stream is connected to */ 223 int (*set_device)(struct audio_stream *stream, audio_devices_t device); 446 * The status returned is 0 on success, -ENOSYS if the device is not 518 * Common methods of the audio device. This *must* be the first member of audio_hw_device 592 * The "address" parameter qualifies the "devices" audio device type if needed. 593 * The format format depends on the device type: 594 * - Bluetooth devices use the MAC address of the device in the form "00:11:22:AA:BB:CC [all...] |
/hardware/qcom/msm8996/kernel-headers/sound/ |
audio_effects.h | 165 uint32_t device; member in struct:virtualizer_params 194 uint32_t device; member in struct:reverb_params 220 uint32_t device; member in struct:bass_boost_params 269 uint32_t device; member in struct:eq_params 321 uint32_t device; member in struct:pbe_params 332 uint32_t device; member in struct:soft_volume_params
|
/hardware/qcom/msm8996/original-kernel-headers/sound/ |
audio_effects.h | 29 DEVICE, 178 uint32_t device; member in struct:virtualizer_params 217 uint32_t device; member in struct:reverb_params 242 uint32_t device; member in struct:bass_boost_params 298 uint32_t device; member in struct:eq_params 345 uint32_t device; member in struct:pbe_params 358 uint32_t device; member in struct:soft_volume_params
|
/packages/apps/Bluetooth/src/com/android/bluetooth/ |
ObexServerSockets.java | 205 * @param device the connecting device. 209 synchronized private boolean onConnect(BluetoothDevice device, BluetoothSocket conSocket) { 211 if(mConAccepted == false && mConHandler.onConnect(device, conSocket) == true) { 296 BluetoothDevice device; local 309 device = connSocket.getRemoteDevice(); 311 if (device == null) { 323 boolean isValid = ObexServerSockets.this.onConnect(device, connSocket); 326 /* Close connection if we already have a connection with another device
|
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/ |
NativeNfcManager.java | 354 * Notifies P2P Device detected, to activate LLCP link 356 private void notifyLlcpLinkActivation(NativeP2pDevice device) { 357 mListener.onLlcpLinkActivated(device); 361 * Notifies P2P Device detected, to activate LLCP link 363 private void notifyLlcpLinkDeactivated(NativeP2pDevice device) { 364 mListener.onLlcpLinkDeactivated(device); 370 private void notifyLlcpLinkFirstPacketReceived(NativeP2pDevice device) { 371 mListener.onLlcpFirstPacketReceived(device);
|
/prebuilts/misc/windows/sdl2/test/ |
testjoystick.c | 254 int device; local 256 device = 0; 258 device = atoi(argv[1]); 260 joystick = SDL_JoystickOpen(device); 265 SDL_Log("Couldn't open joystick %d: %s\n", device, SDL_GetError()); 285 joystick = SDL_JoystickOpen(device);
|
/system/update_engine/ |
boot_control_chromeos.cc | 48 // Resolve the boot device path fully, including dereferencing through 52 LOG(ERROR) << "rootdev failed to find the root device"; 55 LOG_IF(WARNING, ret > 0) << "rootdev found a device name with no device node"; 102 << "Booted from a removable device, pretending we have only one slot."; 122 << ". This device is not updateable."; 144 string* device) const { 153 *device = part_device; 257 string BootControlChromeOS::SysfsBlockDevice(const string& device) { 258 base::FilePath device_path(device); [all...] |
/device/google/dragon/audio/soundtrigger/ |
sound_trigger_hw.c | 61 struct sound_trigger_hw_device device; member in struct:dragon_sound_trigger_device 242 ALOGE("Unable to open PCM device (%s)\n", pcm_get_error(stdev->pcm)); 248 ALOGE("Unable to start PCM device (%s)\n", pcm_get_error(stdev->pcm)); 293 /* Leave the device open for streaming. */ 622 static int stdev_close(hw_device_t *device) 625 (struct dragon_sound_trigger_device *)device; 630 ALOGE("%s: device already closed", __func__); 646 hw_device_t **device) 669 stdev->device.common.tag = HARDWARE_DEVICE_TAG; 670 stdev->device.common.version = SOUND_TRIGGER_DEVICE_API_VERSION_1_0 [all...] |
/device/htc/flounder/audio/soundtrigger/ |
sound_trigger_hw.c | 62 struct sound_trigger_hw_device device; member in struct:flounder_sound_trigger_device 112 ALOGE("Error opening vad device"); 600 static int stdev_close(hw_device_t *device) 603 (struct flounder_sound_trigger_device *)device; 608 ALOGE("%s: device already closed", __func__); 625 hw_device_t **device) 655 stdev->device.common.tag = HARDWARE_DEVICE_TAG; 656 stdev->device.common.version = SOUND_TRIGGER_DEVICE_API_VERSION_1_0; 657 stdev->device.common.module = (struct hw_module_t *)module; 658 stdev->device.common.close = stdev_close [all...] |
/device/htc/flounder/sensor_hub/libsensors/ |
sensors.cpp | 559 struct hw_device_t** device); 588 sensors_poll_device_1_t device; // must be first member in struct:sensors_poll_context_t 810 // Open a new instance of a sensor device using name 812 struct hw_device_t** device) 816 memset(&dev->device, 0, sizeof(sensors_poll_device_1_t)); 818 dev->device.common.tag = HARDWARE_DEVICE_TAG; 819 dev->device.common.version = SENSORS_DEVICE_API_VERSION_1_3; 820 dev->device.common.module = const_cast<hw_module_t*>(module); 821 dev->device.common.close = poll__close; 822 dev->device.activate = poll__activate [all...] |
/external/blktrace/ |
blkiomon.c | 121 fprintf(debug.fp, "device %16d\n", bit->device); 148 fprintf(debug.fp, "device %16d %16d\n", bit1->device, bit2->device); 167 "blkiomon: could not allocate device statistic"); 175 static struct dstat *blkiomon_find_dstat(struct rb_search *search, __u32 device) 186 if (dstat->msg.stat.device < device) 188 else if (dstat->msg.stat.device > device [all...] |
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
ZslProcessor.cpp | 58 sp<Camera3Device> device = local 60 if (device != 0) { 62 device->info().find(ANDROID_REQUEST_PIPELINE_MAX_DEPTH); 71 entry = device->info().find(ANDROID_LENS_INFO_MINIMUM_FOCUS_DISTANCE); 140 sp<Camera3Device> device = local 142 if (device == 0) { 143 ALOGE("%s: Camera %d: Device does not exist", __FUNCTION__, mId); 150 res = device->getStreamInfo(mZslStreamId, 163 res = device->deleteStream(mZslStreamId); 165 ALOGV("%s: Camera %d: Device is busy, call updateStream again 220 sp<Camera3Device> device = local 251 sp<Camera3Device> device = local [all...] |
/hardware/qcom/display/msm8960/libcopybit/ |
copybit.cpp | 57 /** State information for each device instance */ 59 struct copybit_device_t device; member in struct:copybit_context_t 71 struct hw_device_t** device); 514 /** Close the copybit device */ 525 /** Open a new instance of a copybit device using name */ 527 struct hw_device_t** device) 534 ctx->device.common.tag = HARDWARE_DEVICE_TAG; 535 ctx->device.common.version = 1; 536 ctx->device.common.module = const_cast<hw_module_t*>(module); 537 ctx->device.common.close = close_copybit [all...] |
/system/connectivity/shill/ |
connection.cc | 337 DeviceRefPtr device = device_info_->GetDevice(interface_index_); local 338 if (device) { 339 device->RequestPortalDetection(); 377 DeviceRefPtr device = device_info_->GetDevice(interface_index_); local 378 DCHECK(device.get()); 379 if (!device.get()) { 380 LOG(ERROR) << "Device is NULL!"; 383 device->SetLooseRouting(true); 390 DeviceRefPtr device = device_info_->GetDevice(interface_index_); local 391 DCHECK(device.get()) 606 DeviceRefPtr device = device_info_->GetDevice(interface_index); local [all...] |
/system/core/toolbox/ |
getevent.c | 313 static int open_device(const char *device, int print_flags) 325 fd = open(device, O_RDWR); 328 fprintf(stderr, "could not open %s, %s\n", device, strerror(errno)); 334 fprintf(stderr, "could not get driver version for %s, %s\n", device, strerror(errno)); 339 fprintf(stderr, "could not get driver id for %s, %s\n", device, strerror(errno)); 346 //fprintf(stderr, "could not get device name for %s, %s\n", device, strerror(errno)); 350 //fprintf(stderr, "could not get location for %s, %s\n", device, strerror(errno)); 354 //fprintf(stderr, "could not get idstring for %s, %s\n", device, strerror(errno)); 377 printf("add device %d: %s\n", nfds, device) 531 const char *device = NULL; local [all...] |