/external/skia/platform_tools/android/skp_gen/ |
android_skp_capture.py | 32 def run(self, device): 34 return device.drag(self.start, self.end, self.duration, self.points) 43 def run(self, device): 45 return device.press(self.button, self.press_type) 71 def launch(self, device): 72 """Launch the app on the device.""" 73 device.startActivity(component=self.run_component) 99 """Return True if the given file exists on the device and False otherwise.""" 107 def capture_skp(skp_file, package, device): 121 device.drag((300, 300), (300, 350), 1, 10) # Dummy action to force a draw [all...] |
/external/vulkan-validation-layers/libs/vkjson/ |
vkjson_instance.cc | 52 VkJsonDevice device; local 53 vkGetPhysicalDeviceProperties(physical_device, &device.properties); 54 vkGetPhysicalDeviceFeatures(physical_device, &device.features); 55 vkGetPhysicalDeviceMemoryProperties(physical_device, &device.memory); 61 device.queues.resize(queue_family_count); 63 physical_device, &queue_family_count, device.queues.data()); 66 // Only device extensions. 72 device.extensions.resize(extension_count); 74 physical_device, nullptr, &extension_count, device.extensions.data()); 80 device.layers.resize(layer_count) [all...] |
/frameworks/base/services/usb/java/com/android/server/usb/ |
MtpNotificationManager.java | 73 void showNotification(UsbDevice device) { 77 device.getProductName()); 87 intent.putExtra(UsbManager.EXTRA_DEVICE, device); 92 device.getDeviceId(), 102 TAG, device.getDeviceId(), notification); 112 final UsbDevice device = local 114 if (device == null) { 119 mListener.onOpenInApp(device); 125 static boolean shouldShowNotification(PackageManager packageManager, UsbDevice device) { 128 isMtpDevice(device); [all...] |
/external/autotest/client/bin/input/ |
input_event_player.py | 13 """ Playback input events on a linux input device. """ 37 def playback(self, device, gesture_file): 38 """ Play the events in gesture_file on device. 41 device -- the InputDevice device object 44 if not device: 67 event.write(device.f) 74 help='device path (/dev/input/event0)') 76 default=False, help='Find and use first touchpad device') 83 device = InputDevice(evdev [all...] |
/external/deqp/external/vulkancts/modules/vulkan/api/ |
vktApiComputeInstanceResultBuffer.cpp | 35 VkDevice device, 38 m_device(device), 52 VkDevice device, 68 Move<VkBuffer> buffer(createBuffer(vki, device, &createInfo)); 70 const VkMemoryRequirements requirements = getBufferMemoryRequirements(vki, device, *buffer); 73 VK_CHECK(vki.bindBufferMemory(device, *buffer, allocation->getMemory(), allocation->getOffset())); 81 flushMappedMemoryRange(vki, device, allocation->getMemory(), allocation->getOffset(), (VkDeviceSize) DATA_SIZE);
|
/external/libmtp/examples/ |
thumb.c | 4 * on a device. 46 LIBMTP_mtpdevice_t *device = NULL; local 101 device = LIBMTP_Get_First_Device(); 102 if (device == NULL) { 118 ret = LIBMTP_Send_Representative_Sample(device,id,thumb); 121 LIBMTP_Dump_Errorstack(device); 122 LIBMTP_Clear_Errorstack(device); 128 LIBMTP_Release_Device(device);
|
/external/mesa3d/src/gallium/state_trackers/clover/core/ |
program.cpp | 34 const std::vector<clover::device *> &devs, 37 for_each([&](clover::device *dev, const clover::module &bin) { 44 _cl_program::build(const std::vector<clover::device *> &devs) { 68 const std::map<clover::device *, clover::module> & 74 _cl_program::build_status(clover::device *dev) const { 79 _cl_program::build_opts(clover::device *dev) const { 84 _cl_program::build_log(clover::device *dev) const {
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
IOProfile.h | 46 bool isCompatibleProfile(audio_devices_t device, 61 bool supportDevice(audio_devices_t device) const 63 if (audio_is_output_devices(device)) { 64 return mSupportedDevices.types() & device; 66 return mSupportedDevices.types() & (device & ~AUDIO_DEVICE_BIT_IN); 74 // chose first device present in mSupportedDevices also part of deviceType 89 void addSupportedDevice(const sp<DeviceDescriptor> &device) 91 mSupportedDevices.add(device);
|
/frameworks/base/services/core/jni/ |
com_android_server_fingerprint_FingerprintService.cpp | 51 fingerprint_device_t *device; member in struct:android::__anon28816 141 int ret = gContext.device->enroll(gContext.device, 148 uint64_t ret = gContext.device->pre_enroll(gContext.device); 155 int ret = gContext.device->cancel(gContext.device); 161 int ret = gContext.device->authenticate(gContext.device, sessionId, groupId); 167 int ret = gContext.device->cancel(gContext.device) 219 hw_device_t *device = NULL; local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
MtpClient.java | 44 * and notifies the application when the MTP device list changes. 58 // so we can inform when the device has been detached. 66 // unable to open the device. 128 * Called when a new device has been added 130 * @param device the new device that was added 132 public void deviceAdded(MtpDevice device); 135 * Called when a new device has been removed 137 * @param device the device that was remove 300 MtpDevice device = getDevice(deviceName); local 332 MtpDevice device = getDevice(deviceName); local 347 MtpDevice device = getDevice(deviceName); local 368 MtpDevice device = getDevice(deviceName); local 404 MtpDevice device = getDevice(deviceName); local 419 MtpDevice device = getDevice(deviceName); local 437 MtpDevice device = getDevice(deviceName); local [all...] |
/external/vulkan-validation-layers/loader/ |
trampoline.c | 75 // Device extensions are returned if a layer or ICD supports the extension. 83 * Get a device level or global level entry point address. 84 * @param device 87 * If device is valid, returns a device relative entry point for device level 89 * Device relative means call down the device chain. 92 vkGetDeviceProcAddr(VkDevice device, const char *pName) { 103 /* Although CreateDevice is on device chain it's dispatchable object isn' [all...] |
/development/samples/USB/AdbTest/src/com/android/adb/ |
AdbTestActivity.java | 60 for (UsbDevice device : mManager.getDeviceList().values()) { 61 UsbInterface intf = findAdbInterface(device); 62 if (setAdbInterface(device, intf)) { 108 public void deviceOnline(AdbDevice device) { 110 m.obj = device; 114 private void handleDeviceOnline(AdbDevice device) { 115 log("device online: " + device.getSerial()); 116 device.openSocket("shell:exec logcat"); 119 // Sets the current USB device and interfac [all...] |
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
SuperFloppyFormatter.java | 28 * "super floppy" standard. This means that the device will be formatted so 29 * that it does not contain a partition table. Instead, the entire device holds 85 private final BlockDevice device; field in class:SuperFloppyFormatter 98 * @param device 99 * @throws IOException on error accessing the specified {@code device} 101 private SuperFloppyFormatter(BlockDevice device) throws IOException { 102 this.device = device; 110 * the specified device. 112 * @param dev the device that should be formatte [all...] |
/external/libmtp/src/ |
libmtp.c | 42 #include "device-flags.h" 64 * otherwise the libmtp.h device has to be dependent on ptp.h 78 * otherwise the libmtp.h device has to be dependent on ptp.h 104 static void add_error_to_errorstack(LIBMTP_mtpdevice_t *device, 107 static void add_ptp_error_to_errorstack(LIBMTP_mtpdevice_t *device, 110 static void flush_handles(LIBMTP_mtpdevice_t *device); 111 static void get_handles_recursively(LIBMTP_mtpdevice_t *device, 115 static void free_storage_list(LIBMTP_mtpdevice_t *device); 116 static int sort_storage_by(LIBMTP_mtpdevice_t *device, int const sortby); 117 static uint32_t get_writeable_storageid(LIBMTP_mtpdevice_t *device, uint64_t fitsize) [all...] |
/frameworks/native/vulkan/nulldrv/ |
null_driver.cpp | 109 int OpenDevice(const hw_module_t* module, const char* id, hw_device_t** device); 133 int CloseDevice(struct hw_device_t* /*device*/) { 134 // nothing to do - opening a device doesn't allocate any resources 153 hw_device_t** device) { 155 *device = &nulldrv_device.common; 185 Handle AllocHandle(VkDevice device, HandleType::Enum type) { 187 AllocHandle(type, &device->next_handle[type])); 608 // Device 617 VkDevice_T* device = static_cast<VkDevice_T*>(allocator->pfnAllocation( local 620 if (!device) [all...] |
/external/chromium-trace/catapult/devil/devil/android/perf/ |
thermal_throttle.py | 14 def IsSupported(device): 15 return device.FileExists(OmapThrottlingDetector.OMAP_TEMP_FILE) 17 def __init__(self, device): 18 self._device = device 41 def IsSupported(device): 42 return device.FileExists('/sys/bus/exynos5-core') 44 def __init__(self, device): 73 def __init__(self, device): 74 self._device = device 77 if OmapThrottlingDetector.IsSupported(device) [all...] |
/external/skia/src/core/ |
SkBlitter_A8.cpp | 15 SkA8_Blitter::SkA8_Blitter(const SkPixmap& device, const SkPaint& paint) : INHERITED(device) { 35 uint8_t* device = fDevice.writable_addr8(x, y); local 38 memset(device, 0xFF, width); 44 device[i] = SkToU8(srcA + SkAlphaMul(device[i], scale)); 55 uint8_t* device = fDevice.writable_addr8(x, y); local 67 memset(device, 0xFF, count); 73 device[i] = SkToU8(sa + SkAlphaMul(device[i], scale)) 141 uint8_t* device = fDevice.writable_addr8(x, y); local 181 uint8_t* device = fDevice.writable_addr8(x, y); local 208 uint8_t* device = fDevice.writable_addr8(x, y); local 253 uint8_t* device = fDevice.writable_addr8(x, y); local 291 uint8_t* device = fDevice.writable_addr8(x, y); local 332 uint8_t* device = fDevice.writable_addr8(x, y); local 365 uint8_t* device = fDevice.writable_addr8(x, y); local [all...] |
/external/toybox/toys/other/ |
losetup.c | 13 usage: losetup [-cdrs] [-o OFFSET] [-S SIZE] {-d DEVICE...|-j FILE|-af|{DEVICE FILE}} 15 Associate a loopback device with a file, or show current file (if any) 16 associated with a loop device. 18 Instead of a device: 20 -f Find first unused loop device (may create one) 25 -d Detach loopback device 28 -s Show device name (alias --show) 53 allocate new loop device: 58 // -f: *device is NUL [all...] |
/hardware/libhardware/tests/nusensors/ |
nusensors.cpp | 64 struct sensors_poll_device_t* device; local 73 err = sensors_open(&module->common, &device); 105 err = device->activate(device, list[i].handle, 0); 114 err = device->activate(device, list[i].handle, 1); 120 device->setDelay(device, list[i].handle, ms2ns(10)); 124 int n = device->poll(device, buffer, numEvents) [all...] |
/cts/tools/tradefed-host/src/com/android/cts/tradefed/util/ |
ReportLogUtil.java | 21 import com.android.tradefed.device.ITestDevice; 28 * Collects report logs from device and host after cts_v1 test runs. 41 public static void prepareReportLogContainers(ITestDevice device, IBuildInfo buildInfo) { 43 // Delete earlier report logs if present on device. 44 String command = String.format("adb -s %s shell rm -rf %s", device.getSerialNumber(), 47 if (device.doesFileExist(SRC_DIR)) { 70 public static void collectReportLogs(ITestDevice device, IBuildInfo buildInfo) { 71 // Pull report log files from device and host. 88 pull(device, SRC_DIR, hostReportDir, resultDir); 94 private static void pull(ITestDevice device, String deviceSrc, File hostDir, File destDir) [all...] |
/external/autotest/client/cros/cellular/mbim_compliance/ |
mbim_device_context.py | 12 # Device types. 23 """ Context of device under test. """ 27 Initialize the MBIM modem device test context. 33 # Find the device to be tested 35 # Set the device vendor/product ID in the test context 45 # Once a device has been discovered, and its USB descriptors have been 46 # parsed, this property determines whether the discovered device is an 90 Find and initialize the MBIM modem device under consideration. 94 @returns The PyUSB handle to the device. 97 # If a specific device VID/PID is sent, we'll use that info to fin 201 def device(self): member in class:MbimDeviceContext [all...] |
/external/autotest/client/site_tests/camera_V4L2/src/ |
media_v4l2_test.cc | 14 "--device=DEVICE_NAME Video device name [/dev/video]\n" 32 { "device", required_argument, NULL, 'd' }, 67 // Initialize default v4l2 device name. 125 V4L2Device* device = new V4L2Device(dev_name.c_str(), io, buffers); local 129 if (!device->OpenDevice()) 132 if (!retcode && !device->InitDevice(width, height, pixfmt, fps)) 135 if (!retcode && !device->StartCapture()) 138 if (!retcode && !device->Run(frames, time_to_capture)) 141 if (!retcode && !device->StopCapture() [all...] |
/external/chromium-trace/catapult/devil/devil/android/ |
md5sum.py | 42 def CalculateDeviceMd5Sums(paths, device): 49 paths: A list of device paths to md5sum. 61 md5sum_dist_path = devil_env.config.FetchPath('md5sum_device', device=device) 92 out = device.RunShellCommand(md5sum_script, check_return=True) 100 device.RunShellCommand(['rm', '-rf', MD5SUM_DEVICE_LIB_PATH], 103 device.adb.Push(md5sum_dist_path, MD5SUM_DEVICE_LIB_PATH) 106 device.RunShellCommand(mkdir_cmd, check_return=True) 107 device.adb.Push(md5sum_dist_bin_path, MD5SUM_DEVICE_BIN_PATH) 109 out = device.RunShellCommand(md5sum_script, check_return=True [all...] |
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/ |
android_traceview_profiler.py | 27 if self._browser_backend.device.FileExists(self._DEFAULT_DEVICE_DIR): 28 self._browser_backend.device.RunShellCommand( 31 self._browser_backend.device.RunShellCommand( 33 self._browser_backend.device.RunShellCommand( 40 self._browser_backend.device.RunShellCommand('am profile %s start %s' % 57 self._browser_backend.device.RunShellCommand('am profile %s stop' % pid) 62 self._browser_backend.device.PullFile( 67 self._browser_backend.device.RunShellCommand( 76 return self._browser_backend.device.Stat(file_name).st_size
|
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/ |
vktSpvAsmComputeShaderCase.cpp | 52 Move<VkBuffer> createBufferAndBindMemory (const DeviceInterface& vkdi, const VkDevice& device, Allocator& allocator, size_t numBytes, AllocationMp* outMemory) 66 Move<VkBuffer> buffer (createBuffer(vkdi, device, &bufferCreateInfo)); 67 const VkMemoryRequirements requirements = getBufferMemoryRequirements(vkdi, device, *buffer); 70 VK_CHECK(vkdi.bindBufferMemory(device, *buffer, bufferMemory->getMemory(), bufferMemory->getOffset())); 76 void setMemory (const DeviceInterface& vkdi, const VkDevice& device, Allocation* destAlloc, size_t numBytes, const void* data) 81 flushMappedMemoryRange(vkdi, device, destAlloc->getMemory(), destAlloc->getOffset(), numBytes); 84 void fillMemoryWithValue (const DeviceInterface& vkdi, const VkDevice& device, Allocation* destAlloc, size_t numBytes, deUint8 value) 89 flushMappedMemoryRange(vkdi, device, destAlloc->getMemory(), destAlloc->getOffset(), numBytes); 98 Move<VkDescriptorSetLayout> createDescriptorSetLayout (const DeviceInterface& vkdi, const VkDevice& device, size_t numBindings) 105 return builder.build(vkdi, device); 293 const VkDevice& device = m_context.getDevice(); local [all...] |