/frameworks/native/vulkan/libvulkan/ |
driver_gen.cpp | 34 VKAPI_ATTR VkResult checkedCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchain) { 35 if (GetData(device).hook_extensions[ProcHook::KHR_swapchain]) { 36 return CreateSwapchainKHR(device, pCreateInfo, pAllocator, pSwapchain); 38 Logger(device).Err(device, "VK_KHR_swapchain not enabled. vkCreateSwapchainKHR not executed."); 43 VKAPI_ATTR void checkedDestroySwapchainKHR(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks* pAllocator) { 44 if (GetData(device).hook_extensions[ProcHook::KHR_swapchain]) { 45 DestroySwapchainKHR(device, swapchain, pAllocator); 47 Logger(device).Err(device, "VK_KHR_swapchain not enabled. vkDestroySwapchainKHR not executed.") [all...] |
/external/autotest/client/site_tests/cellular_SuspendResume/ |
cellular_SuspendResume.py | 20 SHILL_LOG_SCOPES = 'cellular+dbus+device+dhcp+manager+modem+portal+service' 27 # Setting of device power can sometimes result with InProgress error 55 lambda s: 'Device' in s 75 def get_powered(self, device): 76 properties = device.GetProperties(utf8_strings=True) 78 logging.info('Power state of mobile device is %s.', 82 def _check_powered(self, device, check_enabled): 83 properties = device.GetProperties(utf8_strings=True) 87 def check_powered(self, device, check_enabled): 88 logging.info('Polling to check device state is %s.' [all...] |
/external/libdrm/tests/kms/ |
libkms-test.h | 47 void kms_device_close(struct kms_device *device); 49 struct kms_plane *kms_device_find_plane_by_type(struct kms_device *device, 54 struct kms_device *device; member in struct:kms_crtc 58 struct kms_crtc *kms_crtc_create(struct kms_device *device, uint32_t id); 62 struct kms_device *device; member in struct:kms_framebuffer 76 struct kms_framebuffer *kms_framebuffer_create(struct kms_device *device, 85 struct kms_device *device; member in struct:kms_screen 97 struct kms_screen *kms_screen_create(struct kms_device *device, uint32_t id); 104 struct kms_device *device; member in struct:kms_plane 113 struct kms_plane *kms_plane_create(struct kms_device *device, uint32_t id) [all...] |
/system/bt/binder/android/bluetooth/ |
IBluetoothHealth.aidl | 34 boolean connectChannelToSource(in BluetoothDevice device, in BluetoothHealthAppConfiguration config); 35 boolean connectChannelToSink(in BluetoothDevice device, in BluetoothHealthAppConfiguration config, 37 boolean disconnectChannel(in BluetoothDevice device, in BluetoothHealthAppConfiguration config, int id); 38 ParcelFileDescriptor getMainChannelFd(in BluetoothDevice device, in BluetoothHealthAppConfiguration config); 41 int getHealthDeviceConnectionState(in BluetoothDevice device);
|
/tools/tradefederation/contrib/src/com/android/tradefed/targetprep/ |
SetPackagesRecentlyUsed.java | 21 import com.android.tradefed.device.DeviceNotAvailableException; 22 import com.android.tradefed.device.ITestDevice; 53 public void setUp(ITestDevice device, IBuildInfo buildInfo) 55 long deviceTimeMillis = TimeUnit.SECONDS.toMillis(device.getDeviceDate()); 59 for (String p : getPackagesToSet(device)) { 67 device.pushString(builder.toString(), PACKAGE_USAGE_FILE); 70 private List<String> getPackagesToSet(ITestDevice device) throws DeviceNotAvailableException { 72 String[] packages = device.executeShellCommand("cmd package list package").split("\n"); 80 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) 82 device.executeShellCommand("rm " + PACKAGE_USAGE_FILE) [all...] |
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
IonHeapInfoMetricCollector.java | 16 package com.android.tradefed.device.metric; 18 import com.android.tradefed.device.DeviceNotAvailableException; 19 import com.android.tradefed.device.ITestDevice; 38 void collect(ITestDevice device, DeviceMetricData runData) throws InterruptedException { 39 collectIonAudio(device); 40 collectIonSystem(device); 43 private void collectIonAudio(ITestDevice device) { 48 File outputFile = saveProcessOutput(device, "cat /d/ion/heaps/audio", outputFileName); 61 private void collectIonSystem(ITestDevice device) { 66 File outputFile = saveProcessOutput(device, "cat /d/ion/heaps/system", outputFileName) [all...] |
ProcessMaxMemoryCollector.java | 16 package com.android.tradefed.device.metric; 21 import com.android.tradefed.device.DeviceNotAvailableException; 22 import com.android.tradefed.device.ITestDevice; 56 // Memory usage data per device 67 for (ITestDevice device : getDevices()) { 68 mMemoryData.put(device, new DeviceMemoryData()); 69 mPssMemoryPerProcess.put(device, new HashMap<>()); 70 mUssMemoryPerProcess.put(device, new HashMap<>()); 75 void collect(ITestDevice device, DeviceMetricData runData) throws InterruptedException { 77 Map<String, Long> procPss = mMemoryData.get(device).mProcPss [all...] |
/tools/tradefederation/core/src/com/android/tradefed/log/ |
LogReceiver.java | 18 import com.android.tradefed.device.BackgroundDeviceAction; 19 import com.android.tradefed.device.ITestDevice; 20 import com.android.tradefed.device.LargeOutputReceiver; 34 public LogReceiver(ITestDevice device, String cmd, String desc) { 35 this(device, cmd, LOG_SIZE, DELAY, desc); 38 public LogReceiver(ITestDevice device, String cmd, String desc, 40 this(device, cmd, logcat_size, delay_secs, desc); 43 private LogReceiver(ITestDevice device, String cmd, 46 mReceiver = new LargeOutputReceiver(desc, device.getSerialNumber(), 48 mDeviceAction = new BackgroundDeviceAction(cmd, desc, device, [all...] |
/external/mesa3d/src/amd/vulkan/ |
radv_meta_buffer.c | 116 VkResult radv_device_init_meta_buffer_state(struct radv_device *device) 122 zero(device->meta_state.buffer); 124 fill_cs.nir = build_buffer_fill_shader(device); 125 copy_cs.nir = build_buffer_copy_shader(device); 141 result = radv_CreateDescriptorSetLayout(radv_device_to_handle(device), 143 &device->meta_state.alloc, 144 &device->meta_state.buffer.fill_ds_layout); 169 result = radv_CreateDescriptorSetLayout(radv_device_to_handle(device), 171 &device->meta_state.alloc, 172 &device->meta_state.buffer.copy_ds_layout) 297 struct radv_device *device = cmd_buffer->device; local 359 struct radv_device *device = cmd_buffer->device; local [all...] |
/external/vulkan-validation-layers/libs/vkjson/ |
vkjson_instance.cc | 72 VkJsonDevice device; 88 device.extensions.resize(extension_count); 90 physical_device, nullptr, &extension_count, device.extensions.data()); 96 device.layers.resize(layer_count); 98 device.layers.data()); 101 vkGetPhysicalDeviceProperties(physical_device, &device.properties); 109 if (HasExtension("VK_KHR_variable_pointers", device.extensions)) { 110 device.ext_variable_pointer_features.variable_pointer_features_khr.sType = 112 device.ext_variable_pointer_features.variable_pointer_features_khr.pNext = 115 &device.ext_variable_pointer_features.variable_pointer_features_khr [all...] |
/frameworks/native/vulkan/vkjson/ |
vkjson_instance.cc | 72 VkJsonDevice device; 88 device.extensions.resize(extension_count); 90 physical_device, nullptr, &extension_count, device.extensions.data()); 96 device.layers.resize(layer_count); 98 device.layers.data()); 101 vkGetPhysicalDeviceProperties(physical_device, &device.properties); 109 if (HasExtension("VK_KHR_variable_pointers", device.extensions)) { 110 device.ext_variable_pointer_features.variable_pointer_features_khr.sType = 112 device.ext_variable_pointer_features.variable_pointer_features_khr.pNext = 115 &device.ext_variable_pointer_features.variable_pointer_features_khr [all...] |
/system/nvram/client/ |
nvram_client.c | 101 static int HandleGetTotalSize(nvram_device_t* device, char* args[]) { 104 nvram_result_t result = device->get_total_size_in_bytes(device, &total_size); 113 static int HandleGetAvailableSize(nvram_device_t* device, char* args[]) { 117 device->get_available_size_in_bytes(device, &available_size); 126 static int HandleGetMaxSpaceSize(nvram_device_t* device, char* args[]) { 130 device->get_max_space_size_in_bytes(device, &max_space_size); 139 static int HandleGetMaxSpaces(nvram_device_t* device, char* args[]) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
HeadsetService.java | 83 * AG - Audio Gateway, device running this {@link HeadsetService}, e.g. Android Phone 84 * HF - Handsfree device, device running headset client, e.g. Wireless headphones or car kits 114 // Timeout when voice recognition is started by remote device 152 // Add 1 to allow a pending device to be connecting or disconnecting 188 // Reset active device to null 259 private boolean doForStateMachine(BluetoothDevice device, StateMachineTask task) { 261 HeadsetStateMachine stateMachine = mStateMachines.get(device); 272 for (BluetoothDevice device : getConnectedDevices()) { 273 task.execute(mStateMachines.get(device)); 1096 BluetoothDevice device = mActiveDevice; local [all...] |
/cts/hostsidetests/jvmti/attaching/host/src/android/jvmti/cts/ |
JvmtiAttachingHostTest.java | 21 import com.android.tradefed.device.ITestDevice; 41 description = "The package name of the device test", 46 description = "the name of a test zip file to install on device.", 64 public void run(ITestDevice device, String pkg, String apk, String abiName); 70 runJvmtiAgentLoadTest((ITestDevice device, String pkg, String apk, String abiName) -> { 72 runAttachTestCmd(device, pkg, "--attach-agent-bind " + AGENT); 80 runJvmtiAgentLoadTest((ITestDevice device, String pkg, String apk, String abiName) -> { 82 String pwd = device.executeShellCommand("run-as " + pkg + " pwd"); 96 installLibToDataData(device, pkg, abiName, apk, pwd, AGENT, 98 runAttachTestCmd(device, pkg, "--attach-agent " + agentInDataData) 163 final ITestDevice device = getDevice(); local [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
HeadsetProfile.java | 55 // Order of this profile in device profiles list 69 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); local 70 // we may add a new device here, but generally this should not happen 71 if (device == null) { 72 Log.w(TAG, "HeadsetProfile found new device: " + nextDevice); 73 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); 75 device.onProfileStateChanged(HeadsetProfile.this, 77 device.refresh(); 118 public boolean connect(BluetoothDevice device) { 123 Log.d(TAG,"Not disconnecting device = " + sink) [all...] |
PanProfile.java | 43 // Tethering direction for each device 49 // Order of this profile in device profiles list 91 public boolean connect(BluetoothDevice device) { 99 return mService.connect(device); 102 public boolean disconnect(BluetoothDevice device) { 104 return mService.disconnect(device); 107 public int getConnectionStatus(BluetoothDevice device) { 111 return mService.getConnectionState(device); 114 public boolean isPreferred(BluetoothDevice device) { 118 public int getPreferred(BluetoothDevice device) { [all...] |
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/setting/usb/ |
UsbHostController.java | 36 * Controller used to handle USB device connections. 51 /** Options for USB device changed */ 73 UsbDevice device = intent.<UsbDevice>getParcelableExtra(UsbManager.EXTRA_DEVICE); 74 unsetActiveDeviceIfSerialMatch(device); 76 UsbDevice device = intent.<UsbDevice>getParcelableExtra(UsbManager.EXTRA_DEVICE); 77 setActiveDeviceIfSerialMatch(device); 103 private synchronized void setActiveDeviceIfSerialMatch(UsbDevice device) { 104 if (device != null && device.getSerialNumber() != null 105 && device.getSerialNumber().equals(mProcessingDeviceSerial)) [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/device/ |
DeviceBridge.java | 17 package com.android.hierarchyviewer.device; 64 public static boolean isViewServerRunning(IDevice device) { 68 if (device.isOnline()) { 69 device.executeShellCommand(buildIsServerRunningShellCommand(), 72 if (VersionLoader.loadProtocolVersion(device) > 2) { 89 public static boolean startViewServer(IDevice device) { 90 return startViewServer(device, Configuration.DEFAULT_SERVER_PORT); 93 public static boolean startViewServer(IDevice device, int port) { 97 if (device.isOnline()) { 98 device.executeShellCommand(buildStartServerShellCommand(port) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
PbapClientService.java | 100 void cleanupDevice(BluetoothDevice device) { 101 Log.w(TAG, "Cleanup device: " + device); 103 PbapClientStateMachine pbapClientStateMachine = mPbapClientStateMachineMap.get(device); 105 mPbapClientStateMachineMap.remove(device); 118 // The device ID is the name of the account. 134 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); local 135 if (getConnectionState(device) == BluetoothProfile.STATE_CONNECTED) { 136 disconnect(device); 175 public boolean connect(BluetoothDevice device) { [all...] |
/external/swiftshader/src/D3D9/ |
Direct3DBaseTexture9.cpp | 25 Direct3DBaseTexture9::Direct3DBaseTexture9(Direct3DDevice9 *device, D3DRESOURCETYPE type, D3DFORMAT format, D3DPOOL pool, unsigned long levels, unsigned long usage) : Direct3DResource9(device, type, pool, 0), format(format), levels(levels), usage(usage) 40 CriticalSection cs(device); 75 CriticalSection cs(device); 84 CriticalSection cs(device); 93 CriticalSection cs(device); 102 CriticalSection cs(device); 109 long Direct3DBaseTexture9::GetDevice(IDirect3DDevice9 **device) 111 CriticalSection cs(this->device); 115 return Direct3DResource9::GetDevice(device); [all...] |
Direct3DQuery9.cpp | 26 Direct3DQuery9::Direct3DQuery9(Direct3DDevice9 *device, D3DQUERYTYPE type) : device(device), type(type) 42 device->removeQuery(query); 50 CriticalSection cs(device); 82 long __stdcall Direct3DQuery9::GetDevice(IDirect3DDevice9 **device) 84 CriticalSection cs(this->device); 88 if(!device) 93 this->device->AddRef(); 94 *device = this->device [all...] |
/external/tensorflow/tensorflow/contrib/nccl/python/ops/ |
nccl_ops.py | 25 from tensorflow.python.framework import device 45 the same device as `tensors[i]`. 67 _check_device(grad, expected=op.device) 71 with ops.device(op.device): 91 has the same device as `tensors[i]`. 108 has the same device as `tensors[i]`. 125 has the same device as `tensors[i]`. 144 LookupError: If context is not currently using a GPU device. 165 _check_device(grad, expected=op.device) [all...] |
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/ |
accessorychat.c | 77 static void send_string(struct usb_device *device, int index, const char* string) { 78 int ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR, 92 struct usb_device *device = usb_device_open(devname); local 93 if (!device) { 98 vendorId = usb_device_get_vendor_id(device); 99 productId = usb_device_get_product_id(device); 109 printf("Found android device in accessory mode\n"); 110 sDevice = device; 112 usb_descriptor_iter_init(device, &iter); 133 if (usb_device_claim_interface(device, intf->bInterfaceNumber)) [all...] |
/system/core/libusbhost/ |
usbhost.c | 203 D("Created device discovery thread\n"); 290 D("new device %s\n", path); 293 D("gone device %s\n", path); 330 /* Hack around waiting for permissions to be set on the USB device node. 364 void usb_device_close(struct usb_device *device) 366 close(device->fd); 367 free(device); 372 struct usb_device *device = calloc(1, sizeof(struct usb_device)); local 379 length = read(fd, device->desc, sizeof(device->desc)) [all...] |
/hardware/qcom/display/msm8909w_3100/libgralloc1/ |
gr_device_impl.cpp | 43 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device); 45 int gralloc_device_close(struct hw_device_t *device); 63 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device) { 67 *device = reinterpret_cast<hw_device_t *>(dev); 71 ALOGE("Fatal error opening gralloc1 device"); 98 int GrallocImpl::CloseDevice(hw_device_t *device __unused) { 99 // No-op since the gralloc device is a singleton 103 void GrallocImpl::GetCapabilities(struct gralloc1_device *device, uint32_t *out_count, 105 if (device != nullptr) { 116 gralloc1_function_pointer_t GrallocImpl::GetFunction(gralloc1_device_t *device, int32_t function) [all...] |