/external/tensorflow/tensorflow/core/profiler/lib/ |
profiler_session.cc | 77 // Create device 80 profiler::Device device; local 81 device.set_name(device_stats->device()); 82 device.set_device_id(device_id); 86 (*device.mutable_resources())[0] = resource; 91 (*device.mutable_resources())[thread_name.first] = resource; 93 (*trace_devices)[device_id] = device;
|
/external/u-boot/arch/x86/cpu/qemu/ |
qemu.c | 12 #include <asm/arch/device.h> 88 u16 device, xbcs; local 94 * PCI device ID. 96 pci_read_config16(PCI_BDF(0, 0, 0), PCI_DEVICE_ID, &device); 97 i440fx = (device == PCI_DEVICE_ID_INTEL_82441);
|
/external/u-boot/arch/x86/include/asm/ |
pnp_def.h | 5 * Adapted from coreboot src/include/device/pnp_def.h 29 * pnp device is a 16-bit integer composed of its i/o port address at high byte 52 uint8_t device = dev & 0xff; local 54 pnp_write_config(dev, 0x07, device);
|
/external/u-boot/include/ |
pci_rom.h | 22 uint16_t device; member in struct:pci_rom_data 48 * @dev: Video device containing the BIOS 62 * @vendev: Vendor and device for the video device 63 * @return standard vendor and device expected by the ROM
|
/external/webrtc/webrtc/modules/desktop_capture/ |
mouse_cursor_monitor_win.cc | 142 DISPLAY_DEVICE device; local 143 device.cb = sizeof(device); 144 BOOL result = EnumDisplayDevices(NULL, screen_, &device, 0); 152 device.DeviceName, ENUM_CURRENT_SETTINGS, &device_mode, 0);
|
/external/webrtc/webrtc/modules/video_capture/linux/ |
device_info_linux.cc | 63 char device[20]; local 69 sprintf(device, "/dev/video%d", n); 70 if ((fd = open(device, O_RDONLY)) != -1) 93 char device[20]; local 98 sprintf(device, "/dev/video%d", n); 99 if ((fd = open(device, O_RDONLY)) != -1) 102 // Found the device 115 // query device capabilities 120 "error in querying the device capability for device %s. errno = %d" 166 char device[32]; local [all...] |
/frameworks/av/services/audiopolicy/common/include/ |
Volume.h | 48 * device categories used for volume curve management. 79 * extract one device relevant for volume control from multiple device selection 81 * @param[in] device for which the volume category is associated 83 * @return subset of device required to limit the number of volume category per device 85 static audio_devices_t getDeviceForVolume(audio_devices_t device) 87 if (device == AUDIO_DEVICE_NONE) { 90 device = AUDIO_DEVICE_OUT_SPEAKER; 91 } else if (popcount(device) > 1) 119 device); local [all...] |
/frameworks/av/services/camera/libcameraservice/api2/ |
CompositeStream.cpp | 31 CompositeStream::CompositeStream(wp<CameraDeviceBase> device, 33 mDevice(device), 37 sp<CameraDeviceBase> cameraDevice = device.promote(); 154 sp<CameraDeviceBase> device = mDevice.promote(); local 155 if (device.get() == nullptr) { 159 auto ret = device->addBufferListenerForStream(streamId, this);
|
/frameworks/av/services/camera/libcameraservice/hidl/ |
AidlCameraDeviceCallbacks.h | 25 #include <android/frameworks/cameraservice/device/2.0/ICameraDeviceCallback.h> 26 #include <android/frameworks/cameraservice/device/2.0/types.h> 40 namespace device { namespace in namespace:android::frameworks::cameraservice 45 using HCameraDeviceCallback = cameraservice::device::V2_0::ICameraDeviceCallback; 46 using HPhysicalCaptureResultInfo = cameraservice::device::V2_0::PhysicalCaptureResultInfo; 47 using android::frameworks::cameraservice::device::V2_0::FmqSizeOrMetadata; 128 } // device
|
/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.", 65 public void run(ITestDevice device, String pkg, String apk, String abiName); 76 runJvmtiAgentLoadTest((ITestDevice device, String pkg, String apk, String abiName) -> { 78 runAttachTestCmd(device, pkg, "--attach-agent-bind " + AGENT); 86 runJvmtiAgentLoadTest((ITestDevice device, String pkg, String apk, String abiName) -> { 88 String pwd = device.executeShellCommand( 103 installLibToDataData(device, pkg, abiName, apk, pwd, AGENT, 105 runAttachTestCmd(device, pkg, "--attach-agent " + agentInDataData) 171 final ITestDevice device = getDevice(); local [all...] |
/developers/build/prebuilts/gradle/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/ |
DeviceScanActivity.java | 60 // Use this check to determine whether BLE is supported on the device. Then you can 73 // Checks if Bluetooth is supported on the device. 115 // Ensures Bluetooth is enabled on the device. If Bluetooth is not currently enabled, 149 final BluetoothDevice device = mLeDeviceListAdapter.getDevice(position); local 150 if (device == null) return; 152 intent.putExtra(DeviceControlActivity.EXTRAS_DEVICE_NAME, device.getName()); 153 intent.putExtra(DeviceControlActivity.EXTRAS_DEVICE_ADDRESS, device.getAddress()); 193 public void addDevice(BluetoothDevice device) { 194 if(!mLeDevices.contains(device)) { 195 mLeDevices.add(device); 236 BluetoothDevice device = mLeDevices.get(i); local [all...] |
/developers/samples/android/connectivity/bluetooth/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/ |
DeviceScanActivity.java | 60 // Use this check to determine whether BLE is supported on the device. Then you can 73 // Checks if Bluetooth is supported on the device. 115 // Ensures Bluetooth is enabled on the device. If Bluetooth is not currently enabled, 149 final BluetoothDevice device = mLeDeviceListAdapter.getDevice(position); local 150 if (device == null) return; 152 intent.putExtra(DeviceControlActivity.EXTRAS_DEVICE_NAME, device.getName()); 153 intent.putExtra(DeviceControlActivity.EXTRAS_DEVICE_ADDRESS, device.getAddress()); 193 public void addDevice(BluetoothDevice device) { 194 if(!mLeDevices.contains(device)) { 195 mLeDevices.add(device); 236 BluetoothDevice device = mLeDevices.get(i); local [all...] |
/developers/samples/android/connectivity/wifidirect/DirectP2P/Application/src/main/java/com/example/android/wifidirectp2p/ |
DeviceDetailFragment.java | 49 * A fragment that manages a particular peer and allows interaction with device 56 private WifiP2pDevice device; field in class:DeviceDetailFragment 74 config.deviceAddress = device.deviceAddress; 80 "Connecting to :" + device.deviceAddress, true, true 164 // The other device acts as the client. In this case, we enable the 176 * Updates the UI with device data 178 * @param device the device to be displayed 180 public void showDetails(WifiP2pDevice device) { 181 this.device = device [all...] |
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
DeviceDetailFragment.java | 49 * A fragment that manages a particular peer and allows interaction with device 56 private WifiP2pDevice device; field in class:DeviceDetailFragment 74 config.deviceAddress = device.deviceAddress; 80 "Connecting to :" + device.deviceAddress, true, true 162 // The other device acts as the client. In this case, we enable the 174 * Updates the UI with device data 176 * @param device the device to be displayed 178 public void showDetails(WifiP2pDevice device) { 179 this.device = device [all...] |
/development/samples/browseable/BluetoothLeGatt/src/com.example.android.bluetoothlegatt/ |
DeviceScanActivity.java | 60 // Use this check to determine whether BLE is supported on the device. Then you can 73 // Checks if Bluetooth is supported on the device. 115 // Ensures Bluetooth is enabled on the device. If Bluetooth is not currently enabled, 149 final BluetoothDevice device = mLeDeviceListAdapter.getDevice(position); local 150 if (device == null) return; 152 intent.putExtra(DeviceControlActivity.EXTRAS_DEVICE_NAME, device.getName()); 153 intent.putExtra(DeviceControlActivity.EXTRAS_DEVICE_ADDRESS, device.getAddress()); 193 public void addDevice(BluetoothDevice device) { 194 if(!mLeDevices.contains(device)) { 195 mLeDevices.add(device); 236 BluetoothDevice device = mLeDevices.get(i); local [all...] |
/external/mesa3d/src/gallium/state_trackers/clover/core/ |
device.cpp | 24 #include "core/device.hpp" 44 device::device(clover::platform &platform, pipe_loader_device *ldev) : function in class:device 54 device::~device() { 62 device::operator==(const device &dev) const { 67 device::type() const { 75 unreachable("Unknown device type."); 80 device::vendor_id() const [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
ConnectionAccessClientActivity.java | 114 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(mDeviceAddress); local 115 mChatService.connect(device, false);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/ |
AoapInterface.java | 16 package com.android.cts.verifier.usb.device; 50 * Control request for retrieving device's protocol version 58 * 2 adds HID and device to host audio support 63 * Control request for host to send a string to the device 71 * The device can later retrieve these strings via the 77 * Control request for starting device in accessory mode. 78 * The host sends this after setting all its strings to the device. 128 public static boolean isDeviceInAoapMode(UsbDevice device) { 129 final int vid = device.getVendorId(); 130 final int pid = device.getProductId() [all...] |
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
CorruptApkTests.java | 27 import com.android.tradefed.device.DeviceNotAvailableException; 28 import com.android.tradefed.device.ITestDevice; 69 ITestDevice device = getDevice(); local 72 String pidResult = device.executeShellCommand("pidof system_server").trim(); 83 String pidStats = device.executeShellCommand("cat /proc/" + pid + "/stat"); 100 /** Uninstall any test APKs already present on device. */ 102 ITestDevice device = getDevice(); local 103 device.uninstallPackage("com.android.appsecurity.b71360999"); 104 device.uninstallPackage("com.android.appsecurity.b71361168"); 105 device.uninstallPackage("com.android.appsecurity.b79488511") [all...] |
Utils.java | 24 import com.android.tradefed.device.DeviceNotAvailableException; 25 import com.android.tradefed.device.ITestDevice; 40 public static void runDeviceTestsAsCurrentUser(ITestDevice device, String packageName, 42 runDeviceTests(device, packageName, testClassName, testMethodName, device.getCurrentUser(), 46 public static void runDeviceTestsAsCurrentUser(ITestDevice device, String packageName, 49 runDeviceTests(device, packageName, testClassName, testMethodName, device.getCurrentUser(), 53 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, 55 runDeviceTests(device, packageName, testClassName, testMethodName, USER_SYSTEM, null) [all...] |
/cts/hostsidetests/classloaders/splits/src/android/classloaders/cts/ |
BaseInstallMultiple.java | 20 import com.android.tradefed.device.DeviceNotAvailableException; 21 import com.android.tradefed.device.ITestDevice; 52 public BaseInstallMultiple(ITestDevice device, IBuildInfo buildInfo, IAbi abi) { 53 mDevice = device; 124 final ITestDevice device = mDevice; local 136 String result = device.executeShellCommand(cmd.toString()); 157 if (!device.pushFile(apk, remotePath)) { 167 result = device.executeShellCommand(cmd.toString()); 176 result = device.executeShellCommand(cmd.toString()).trim();
|
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/ |
BaseInstallMultiple.java | 20 import com.android.tradefed.device.DeviceNotAvailableException; 21 import com.android.tradefed.device.ITestDevice; 52 public BaseInstallMultiple(ITestDevice device, IBuildInfo buildInfo, IAbi abi) { 53 mDevice = device; 124 final ITestDevice device = mDevice; local 136 String result = device.executeShellCommand(cmd.toString()); 157 if (!device.pushFile(apk, remotePath)) { 167 result = device.executeShellCommand(cmd.toString()); 176 result = device.executeShellCommand(cmd.toString()).trim();
|
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/ |
BatteryStatsAuthenticator.java | 16 package com.android.server.cts.device.batterystats; 39 private static final String ACCOUNT_TYPE = "com.android.server.cts.device.batterystats";
|
BatteryStatsSyncAdapter.java | 16 package com.android.server.cts.device.batterystats;
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
AdbUtils.java | 20 import com.android.tradefed.device.CollectingOutputReceiver; 21 import com.android.tradefed.device.ITestDevice; 36 /** Runs a commandline on the specified device 39 * @param device device for the command to be ran on 42 public static String runCommandLine(String command, ITestDevice device) throws Exception { 47 return device.executeShellCommand(command); 51 * Pushes and runs a binary to the selected device 54 * @param device device to be ran o [all...] |