HomeSort by relevance Sort by last modified time
    Searched refs:device (Results 476 - 500 of 6965) sorted by null

<<11121314151617181920>>

  /tools/test/connectivity/acts/framework/tests/libs/ota/ota_runners/
ota_runner_factory_test.py 32 self.device = mock.MagicMock()
33 self.device.serial = 'fake_serial'
39 acts_config, 'ota_tool', self.device)
45 acts_config, 'ota_tool', self.device)
56 acts_config, 'ota_tool', self.device)
65 ota_runner_factory.create_from_configs(acts_config, self.device)
80 ota_runner_factory.create_from_configs(acts_config, self.device)
81 mocked_function.assert_called_with('jkl;', 'qaz', self.device,
96 ota_runner_factory.create_from_configs(acts_config, self.device)
97 mocked_function.assert_called_with('jkl;', 'qaz', self.device,
    [all...]
ota_runner_test.py 67 device = mock.MagicMock()
69 runner = OtaRunnerImpl(tool, device)
72 device.stop_services.assert_called()
73 device.wait_for_boot_completion.assert_called()
74 device.start_services.assert_called()
75 device.adb.install.assert_called()
79 device = mock.MagicMock()
81 runner = OtaRunnerImpl(tool, device)
90 device = mock.MagicMock()
92 runner = ota_runner.OtaRunner(tool, device)
    [all...]
  /tools/tradefederation/core/src/com/android/tradefed/targetprep/
PushFilePreparer.java 26 import com.android.tradefed.device.DeviceNotAvailableException;
27 import com.android.tradefed.device.ITestDevice;
37 * device path.
55 "A command to run on the device (with `adb shell (yourcommand)`) after all pushes " +
65 "After pushing files, trigger a media scan of external storage on device.")
68 @Option(name="cleanup", description = "Whether files pushed onto device should be cleaned up "
83 private void fail(String message, ITestDevice device) throws TargetSetupError {
85 throw new TargetSetupError(message, device.getDeviceDescriptor());
129 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, BuildError,
133 device.remountSystemWritable()
    [all...]
DeviceStorageFiller.java 22 import com.android.tradefed.device.DeviceNotAvailableException;
23 import com.android.tradefed.device.ITestDevice;
41 description = "Number of bytes that should be left free on the device."
50 public void setUp(ITestDevice device, IBuildInfo buildInfo)
52 long freeSpace = device.getPartitionFreeSpace(mPartition) * 1024;
56 device.executeShellCommand(String.format("fallocate -l %d %s", bytesToWrite, fileName));
66 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e)
69 device.executeShellCommand(String.format("rm -f %s", fileName));
EraseUserDataPreparer.java 21 import com.android.tradefed.device.DeviceNotAvailableException;
22 import com.android.tradefed.device.ITestDevice;
27 /** A {@link ITargetPreparer} that wipes user data on the device. */
36 description="Wait until device is available for testing before performing erase")
45 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError,
51 device.waitForDeviceAvailable();
54 device.enableAdbRoot();
63 mTestsZipInstaller.deleteData(device);
64 device.reboot();
  /build/make/core/
device.mk 22 define dump-device
30 $(foreach p,$(DEVICES),$(call dump-device,$(p)))
34 # $(1): device to inherit
36 define inherit-device
42 # $(1): device makefile list
51 # $(1): short device name like "sooner"
53 define _resolve-short-device-name
65 $(error No matches for device "$(dn)"), \
66 $(error Device "$(dn)" ambiguous: matches $(d)) \
72 # $(1): short device name like "sooner
    [all...]
  /cts/hostsidetests/api/src/com/android/cts/api/
FilePuller.java 26 import com.android.tradefed.device.DeviceNotAvailableException;
27 import com.android.tradefed.device.ITestDevice;
30 * Pulls files from a non-rooted device
33 private final ITestDevice device; field in class:FilePuller
36 FilePuller(ITestDevice device) {
37 this.device = device;
55 // For files on vendor partition, `adb shell pull` does not work on non-rooted device,
57 // device, which might a little bit slower than adb pull, but should be acceptable for
59 device.executeShellCommand(String.format("cat %s", path)
    [all...]
  /external/autotest/client/cros/faft/utils/
firmware_check_keys.py 15 device = None variable in class:firmwareCheckKeys
20 device = InputDevice(evdev)
21 if device.is_keyboard():
22 print 'keyboard device %s' % evdev
23 self.device = device
29 self.ev.read(self.device.f)
41 if not self.device:
42 logging.error("Could not find a keyboard device")
  /external/blktrace/btt/
bno_dump.c 27 static FILE *bno_dump_open(__u32 device, char rwc)
33 mjr = device >> MINORBITS;
34 mnr = device & ((1 << MINORBITS) - 1);
51 void *bno_dump_alloc(__u32 device)
58 bdp->rfp = bno_dump_open(device, 'r');
59 bdp->wfp = bno_dump_open(device, 'w');
60 bdp->cfp = bno_dump_open(device, 'c');
  /external/libmtp/examples/
delfile.c 3 * Example program to delete a file off the device.
31 extern LIBMTP_mtpdevice_t *device;
48 ret = LIBMTP_Delete_Object(device, id);
50 LIBMTP_Dump_Errorstack(device);
51 LIBMTP_Clear_Errorstack(device);
103 ret = LIBMTP_Delete_Object(device, id);
107 LIBMTP_Dump_Errorstack(device);
108 LIBMTP_Clear_Errorstack(device);
detect.c 3 * Example program to detect a device and list capabilities.
86 fprintf(stdout, "Listing raw device(s)\n");
102 fprintf(stdout, " Found %d device(s):\n", numrawdevices);
130 fprintf(stdout, "Attempting to connect device(s)\n");
132 LIBMTP_mtpdevice_t *device; local
144 device = LIBMTP_Open_Raw_Device_Uncached(&rawdevices[i]);
145 if (device == NULL) {
146 fprintf(stderr, "Unable to open raw device %d\n", i);
150 LIBMTP_Dump_Errorstack(device);
151 LIBMTP_Clear_Errorstack(device);
    [all...]
newplaylist.c 3 * Example program to create a playlist on a device.
39 LIBMTP_mtpdevice_t *device = NULL; local
91 device = LIBMTP_Get_First_Device();
92 if (device == NULL) {
103 int ret = LIBMTP_Create_New_Playlist(device,playlist);
106 LIBMTP_Dump_Errorstack(device);
107 LIBMTP_Clear_Errorstack(device);
113 LIBMTP_Release_Device(device);
  /external/ltp/testcases/kernel/syscalls/mount/
mount01.c 39 static const char *device; variable
54 TEST(mount(device, MNTPOINT, fs_type, 0, NULL));
81 device = tst_acquire_device(cleanup);
83 if (!device)
84 tst_brkm(TCONF, cleanup, "Failed to obtain block device");
86 tst_mkfs(cleanup, device, fs_type, NULL, NULL);
95 if (device)
96 tst_release_device(device);
mount04.c 39 static const char *device; variable
46 TEST(mount(device, mntpoint, fs_type, 0, NULL));
96 device = tst_acquire_device(cleanup);
98 if (!device)
99 tst_brkm(TCONF, cleanup, "Failed to obtain block device");
101 tst_mkfs(cleanup, device, fs_type, NULL, NULL);
115 if (device)
116 tst_release_device(device);
  /external/tensorflow/tensorflow/core/common_runtime/sycl/
sycl_device_context.cc 26 Device *device,
35 device->eigen_sycl_device()->memcpyHostToDevice(
40 device->eigen_sycl_device()->memcpyHostToDevice(
45 device->eigen_sycl_device()->memcpyHostToDevice(
50 device->eigen_sycl_device()->memcpyHostToDevice(
55 device->eigen_sycl_device()->memcpyHostToDevice(
60 device->eigen_sycl_device()->memcpyHostToDevice(
65 device->eigen_sycl_device()->memcpyHostToDevice(
70 device->eigen_sycl_device()->memcpyHostToDevice
    [all...]
  /external/vulkan-validation-layers/tests/layers/
wrap_objects.h 57 static void create_device_register_extensions(const VkDeviceCreateInfo *pCreateInfo, VkDevice device) {
58 VkLayerDispatchTable *pDisp = device_dispatch_table(device);
60 pDisp->CreateSwapchainKHR = (PFN_vkCreateSwapchainKHR)gpa(device, "vkCreateSwapchainKHR");
61 pDisp->DestroySwapchainKHR = (PFN_vkDestroySwapchainKHR)gpa(device, "vkDestroySwapchainKHR");
62 pDisp->GetSwapchainImagesKHR = (PFN_vkGetSwapchainImagesKHR)gpa(device, "vkGetSwapchainImagesKHR");
63 pDisp->AcquireNextImageKHR = (PFN_vkAcquireNextImageKHR)gpa(device, "vkAcquireNextImageKHR");
64 pDisp->QueuePresentKHR = (PFN_vkQueuePresentKHR)gpa(device, "vkQueuePresentKHR");
  /frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
MtpClient.java 44 * and notifies the application when the MTP device list changes.
57 // so we can inform when the device has been detached.
114 * Called when a new device has been added
116 * @param device the new device that was added
118 public void deviceAdded(MtpDevice device);
121 * Called when a new device has been removed
123 * @param device the device that was removed
125 public void deviceRemoved(MtpDevice device);
274 MtpDevice device = getDevice(deviceName); local
306 MtpDevice device = getDevice(deviceName); local
321 MtpDevice device = getDevice(deviceName); local
342 MtpDevice device = getDevice(deviceName); local
378 MtpDevice device = getDevice(deviceName); local
393 MtpDevice device = getDevice(deviceName); local
411 MtpDevice device = getDevice(deviceName); local
    [all...]
  /packages/services/Car/car-usb-handler/src/android/car/usb/handler/
BootUsbScanner.java 16 for (UsbDevice device : manager.getDeviceList().values()) {
17 if (AoapInterface.isDeviceInAoapMode(device)) {
19 handle(context, device);
21 UsbDeviceConnection connection = UsbUtil.openConnection(manager, device);
24 handle(context, device);
33 private void handle(Context context, UsbDevice device) {
36 manageDevice.putExtra(UsbManager.EXTRA_DEVICE, device);
  /prebuilts/ndk/r16/sources/third_party/vulkan/src/tests/layers/
wrap_objects.h 57 static void create_device_register_extensions(const VkDeviceCreateInfo *pCreateInfo, VkDevice device) {
58 VkLayerDispatchTable *pDisp = device_dispatch_table(device);
60 pDisp->CreateSwapchainKHR = (PFN_vkCreateSwapchainKHR)gpa(device, "vkCreateSwapchainKHR");
61 pDisp->DestroySwapchainKHR = (PFN_vkDestroySwapchainKHR)gpa(device, "vkDestroySwapchainKHR");
62 pDisp->GetSwapchainImagesKHR = (PFN_vkGetSwapchainImagesKHR)gpa(device, "vkGetSwapchainImagesKHR");
63 pDisp->AcquireNextImageKHR = (PFN_vkAcquireNextImageKHR)gpa(device, "vkAcquireNextImageKHR");
64 pDisp->QueuePresentKHR = (PFN_vkQueuePresentKHR)gpa(device, "vkQueuePresentKHR");
  /sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/
VersionLoader.java 21 import com.android.hierarchyviewer.device.DeviceBridge;
32 public static int loadServerVersion(IDevice device) {
33 return loadVersion(device, "SERVER");
36 public static int loadProtocolVersion(IDevice device) {
37 return loadVersion(device, "PROTOCOL");
40 private static int loadVersion(IDevice device, String command) {
48 DeviceBridge.getDeviceLocalPort(device)));
  /test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
LocationCheck.java 20 import com.android.tradefed.device.DeviceNotAvailableException;
21 import com.android.tradefed.device.ITestDevice;
40 private boolean hasLocationFeature(ITestDevice device) throws DeviceNotAvailableException {
41 String adbFeatures = device.executeShellCommand("pm list features");
46 public void run(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError,
49 if (!hasLocationFeature(device)) {
62 super.run(device, buildInfo);
  /tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
Sector.java 31 private final BlockDevice device; field in class:Sector
41 protected Sector(BlockDevice device, long offset, int size) {
43 this.device = device;
50 * Reads the contents of this {@code Sector} from the device into the
59 device.read(offset, buffer);
74 * @return this {@code Sector}'s device
77 return this.device;
85 device.write(offset, buffer);
122 * Returns the device offset to this {@code Sector}
    [all...]
  /tools/test/connectivity/acts/framework/acts/controllers/
relay_device_controller.py 70 for device in relay_rig.devices.values():
71 devices.append(device)
82 for device in relay_devices:
83 device.clean_up()
97 for device in relay_devices:
99 for relay in device.relays:
101 info = {"name": device.name, "relays": relay_ids}
  /tools/tradefederation/contrib/src/com/android/tradefed/targetprep/
AddWhitelistPackage.java 21 import com.android.tradefed.device.DeviceNotAvailableException;
22 import com.android.tradefed.device.ITestDevice;
40 public void setUp(ITestDevice device, IBuildInfo buildInfo)
43 device.executeShellCommand(
47 CLog.d(device.executeShellCommand("dumpsys deviceidle whitelist"));
51 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e)
54 device.executeShellCommand(
  /tools/tradefederation/core/src/com/android/tradefed/suite/checker/
ActivityStatusChecker.java 18 import com.android.tradefed.device.DeviceNotAvailableException;
19 import com.android.tradefed.device.ITestDevice;
34 public StatusCheckerResult postExecutionCheck(ITestDevice device)
36 return isFrontActivityLauncher(device);
39 private StatusCheckerResult isFrontActivityLauncher(ITestDevice device)
43 device.executeShellCommand(
50 InputStreamSource screen = device.getScreenshot("JPEG");
56 // TODO: Add a step to return to home page, or refresh the device (reboot?)

Completed in 1014 milliseconds

<<11121314151617181920>>