Lines Matching defs:device

64     // Install preference on the device-side
78 * Constructor takes the device to use
79 * @param the device to use when performing operations
81 public PackageManagerHostTestUtils(IDevice device)
83 mDevice = device;
92 * Returns the path on the device of forward-locked apps.
94 * @return path of forward-locked apps on the device
101 * Returns the path on the device of normal apps.
103 * @return path of forward-locked apps on the device
112 * @return path of forward-locked apps on the device
143 * Helper method to push a file to device
180 * Helper method to install a file to device as forward locked
197 * Helper method to determine if file on device exists.
199 * @param destPath the absolute path of file on device to check
209 * Helper method to determine if file exists on the device containing a given string.
223 * Helper method to determine if package on device exists.
235 * Determines if app was installed on device.
268 * Waits for device's package manager to respond.
274 Log.i(LOG_TAG, "waiting for device");
281 Log.e(LOG_TAG, "time out waiting for device");
288 * Helper to determine if the device is currently online and visible via ADB.
290 * @return true iff the device is currently available to ADB and online, false otherwise.
296 for (IDevice device : devices) {
297 // only online if the device appears in the devices list, and its state is online
299 mDevice.getSerialNumber().equals(device.getSerialNumber()) &&
300 device.isOnline()) {
308 * Waits for device to be online (visible to ADB) before returning, or times out if we've
309 * waited too long. Note that this only means the device is visible via ADB, not that
316 Log.i(LOG_TAG, "waiting for device to be online");
319 // poll ADB until we see the device is online
324 Log.e(LOG_TAG, "time out waiting for device");
328 // Note: if we try to access the device too quickly after it is "officially" online,
390 * Helper method which reboots the device and returns once the device is online again
396 String command = "reboot"; // no need for -s since mDevice is already tied to a device
402 waitForDeviceToComeOnline(); // wait for device to come online
454 // For collecting results from running device tests
555 * Assumes adb is running as root in device under test.
578 * then verifying the app was installed onto device.
586 * Assumes adb is running as root in device under test.
617 * Assumes adb is running as root in device under test.
646 * Assumes adb is running as root in device under test.
661 * Assumes adb is running as root in device under test.
684 * Sets the device's install location preference.
687 * Assumes adb is running as root in device under test.
707 * Gets the device's install location preference.
710 * Assumes adb is running as root in device under test.