Searched refs:device (Results 1 - 25 of 188) sorted by relevance

12345678

/system/connectivity/shill/test-scripts/
H A Ddisable-device6 print "Usage: %s <device | interface>" % (sys.argv[0])
13 device = flim.FindElementByNameSubstring('Device', name) variable
14 if device is None:
15 device = flim.FindElementByPropertySubstring('Device', 'Interface', name) variable
17 print "Disabling device %s" % (device.object_path)
21 device.Disable()
23 device.SetProperty("Powered", dbus.Boolean(0))
H A Denable-device6 print "Usage: %s <device | interface>" % (sys.argv[0])
13 device = flim.FindElementByNameSubstring('Device', name) variable
14 if device is None:
15 device = flim.FindElementByPropertySubstring('Device', 'Interface', name) variable
17 print "Enabling device %s" % (device.object_path)
21 device.Enable()
23 device.SetProperty("Powered", dbus.Boolean(1))
H A Dset-device-property6 print "Usage: %s <device-name> <property> <value>" % (sys.argv[0])
12 device = flim.FindElementByNameSubstring('Device', name)
14 device.SetProperty(property_key, dbus.UInt16(value))
16 device.SetProperty(property_key, dbus.Int32(value))
18 device.SetProperty(property_key,
21 device.SetProperty(property_key, value)
H A Dlist-ipconfigs6 print "Usage: %s <device | interface>" % (sys.argv[0])
13 device = flim.FindElementByNameSubstring('Device', name) variable
14 if device is None:
15 device = flim.FindElementByPropertySubstring('Device', 'Interface', name) variable
16 if device is None:
17 print "No such device or interface %s" % name
20 properties = device.GetProperties(utf8_strings = True)
H A Dset-mtu13 for device in flim.GetObjectList("Device"):
14 device_properties = device.GetProperties(utf8_strings = True)
H A Dset-address13 for device in flim.GetObjectList("Device"):
14 device_properties = device.GetProperties(utf8_strings = True)
H A Dshow-introspection16 device = dbus.Interface(bus.get_object("org.chromium.flimflam", path), variable
18 print device.Introspect()
/system/core/include/usbhost/
H A Dusbhost.h64 /* Callback indicating that initial device discovery is done.
91 * added_cb will be called immediately for each existing USB device,
92 * and subsequently each time a new device is added.
103 /* Creates a usb_device object for a USB device */
106 /* Releases all resources associated with the USB device */
107 void usb_device_close(struct usb_device *device);
109 /* Creates a usb_device object for already open USB device */
113 int usb_device_get_fd(struct usb_device *device);
115 /* Returns the name for the USB device, which is the same as
118 const char* usb_device_get_name(struct usb_device *device);
[all...]
/system/extras/tests/bootloader/
H A Dhaltest.py20 # Note: In order to run these tests, the device must be able to boot
21 # from all slots on the device.
25 self.bootctl = bootctl.Bootctl(self.device)
30 self.device.root()
31 self.device.wait()
47 self.device.root()
48 self.device.wait()
54 self.device.reboot()
55 self.device.wait()
56 self.device
[all...]
H A Dbootctl.py16 def __init__(self, device):
17 self.device = device
21 return self.device.shell_nocheck(self.base + [cmd])
H A Dshelltest.py22 self.device = adb.get_device(os.getenv("BOOTLOADER_TEST_SERIAL"));
/system/core/adb/
H A Dtest_device.py43 if self.device.get_prop('ro.debuggable') != '1':
46 was_root = self.device.shell(['id', '-un'])[0].strip() == 'root'
48 self.device.root()
49 self.device.wait()
55 self.device.unroot()
56 self.device.wait()
63 was_root = self.device.shell(['id', '-un'])[0].strip() == 'root'
65 self.device.unroot()
66 self.device.wait()
72 self.device
[all...]
/system/gatekeeper/tests/
H A Dgatekeeper_device_test.cpp32 gatekeeper_device_initialize(&device);
36 gatekeeper_close(device);
51 gatekeeper_device_t *device; member in class:GateKeeperDeviceTest
63 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len,
70 ret = device->verify(device, 400, 0, password_handle, password_handle_length,
87 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len,
93 ret = device
[all...]
/system/media/brillo/audio/audioservice/
H A Daudio_device_handler.cpp89 audio_devices_t device, audio_policy_dev_state_t state) {
91 LOG(INFO) << "Audio device handler cannot call audio policy service. Will "
95 VLOG(1) << "Calling Audio Policy Service to change " << device << " to state "
97 aps_->setDeviceConnectionState(device, state, "", "");
100 void AudioDeviceHandler::ConnectAudioDevice(audio_devices_t device) { argument
102 NotifyAudioPolicyService(device, state);
103 if (audio_is_input_device(device))
104 connected_input_devices_.insert(device);
106 connected_output_devices_.insert(device);
109 void AudioDeviceHandler::DisconnectAudioDevice(audio_devices_t device) { argument
88 NotifyAudioPolicyService( audio_devices_t device, audio_policy_dev_state_t state) argument
129 audio_devices_t device = *(connected_input_devices_.begin()); local
133 audio_devices_t device = *(connected_output_devices_.begin()); local
[all...]
/system/connectivity/shill/cellular/
H A Dmock_cellular_service.cc30 const CellularRefPtr& device)
31 : CellularService(modem_info, device),
29 MockCellularService(ModemInfo* modem_info, const CellularRefPtr& device) argument
/system/connectivity/apmanager/
H A Dmanager.cc75 for (const auto& device : devices_) {
76 // Look for an unused device with AP interface mode support.
77 if (!device->GetInUse() && !device->GetPreferredApInterface().empty()) {
78 return device;
86 for (const auto& device : devices_) {
87 if (device->InterfaceExists(interface_name)) {
88 return device;
94 void Manager::RegisterDevice(const scoped_refptr<Device>& device) { argument
95 LOG(INFO) << "Manager::RegisterDevice: registering device "
[all...]
/system/core/libusbhost/
H A Dusbhost.c200 D("Created device discovery thread\n");
287 D("new device %s\n", path);
290 D("gone device %s\n", path);
351 void usb_device_close(struct usb_device *device) argument
353 close(device->fd);
354 free(device);
359 struct usb_device *device = calloc(1, sizeof(struct usb_device)); local
366 length = read(fd, device->desc, sizeof(device->desc));
371 strncpy(device
384 usb_device_reopen_writeable(struct usb_device *device) argument
400 usb_device_get_fd(struct usb_device *device) argument
407 usb_device_get_name(struct usb_device *device) argument
412 usb_device_get_unique_id(struct usb_device *device) argument
435 usb_device_get_vendor_id(struct usb_device *device) argument
441 usb_device_get_product_id(struct usb_device *device) argument
447 usb_device_get_device_descriptor(struct usb_device *device) argument
452 usb_device_get_string(struct usb_device *device, int id) argument
492 usb_device_get_manufacturer_name(struct usb_device *device) argument
498 usb_device_get_product_name(struct usb_device *device) argument
504 usb_device_get_version(struct usb_device *device) argument
510 usb_device_get_serial(struct usb_device *device) argument
516 usb_device_is_writeable(struct usb_device *device) argument
521 usb_descriptor_iter_init(struct usb_device *device, struct usb_descriptor_iter *iter) argument
538 usb_device_claim_interface(struct usb_device *device, unsigned int interface) argument
543 usb_device_release_interface(struct usb_device *device, unsigned int interface) argument
548 usb_device_connect_kernel_driver(struct usb_device *device, unsigned int interface, int connect) argument
559 usb_device_set_configuration(struct usb_device *device, int configuration) argument
564 usb_device_set_interface(struct usb_device *device, unsigned int interface, unsigned int alt_setting) argument
574 usb_device_control_transfer(struct usb_device *device, int requestType, int request, int value, int index, void* buffer, int length, unsigned int timeout) argument
600 usb_device_bulk_transfer(struct usb_device *device, int endpoint, void* buffer, int length, unsigned int timeout) argument
620 usb_device_reset(struct usb_device *device) argument
[all...]
/system/bt/test/
H A Drun_unit_tests.sh16 echo " ${binary} [-i <iterations>] [-s <specific device>] [--all] [<test name>[.<filter>] ...] [--<arg> ...]"
29 device=
52 echo "error: no device specified" 1>&2
56 device="$1"
79 if [ -n "${device}" ]; then
80 adb+=( "-s" "${device}" )
/system/update_engine/
H A Dutils_android.h28 // Find the block device that should be mounted in the |mount_point| path and
29 // store it in |device|. Returns whether a device was found on the fstab.
31 base::FilePath* device);
/system/connectivity/shill/ethernet/
H A Dmock_ethernet_eap_provider.h36 void(Ethernet* device, CredentialChangeCallback callback));
37 MOCK_METHOD1(ClearCredentialChangeCallback, void(Ethernet* device));
/system/core/init/
H A Dperfboot.py25 CPU temperature of the device.
91 def __init__(self, interval, device):
93 self._device = device
94 self._temp_paths = device.shell(
96 self._product = device.get_prop('ro.build.product')
170 def disable_dropbox(device):
172 device.root()
173 device.wait()
174 device.shell(['rm', '-rf', '/system/data/dropbox'])
175 original_dropbox_max_files = device
[all...]
/system/media/brillo/audio/audioservice/test/
H A Daudio_device_handler_test.cpp16 // Tests for audio device handler.
223 audio_devices_t device = AUDIO_DEVICE_IN_WIRED_HEADSET; local
224 handler_.connected_input_devices_.insert(device);
226 NotifyAudioPolicyService(device,
235 audio_devices_t device = AUDIO_DEVICE_OUT_WIRED_HEADPHONE; local
236 handler_.connected_output_devices_.insert(device);
238 NotifyAudioPolicyService(device,
301 // Test ConnectAudioDevice() with an input device.
303 audio_devices_t device = AUDIO_DEVICE_IN_WIRED_HEADSET; local
305 NotifyAudioPolicyService(device,
316 audio_devices_t device = AUDIO_DEVICE_OUT_WIRED_HEADSET; local
329 audio_devices_t device = AUDIO_DEVICE_IN_WIRED_HEADSET; local
342 audio_devices_t device = AUDIO_DEVICE_OUT_WIRED_HEADSET; local
[all...]
/system/core/trusty/gatekeeper/
H A Dmodule.cpp28 hw_device_t **device) {
36 *device = gatekeeper->hw_device();
27 trusty_gatekeeper_open(const hw_module_t *module, const char *name, hw_device_t **device) argument
/system/core/gatekeeperd/
H A Dgatekeeperd.cpp54 device = NULL;
60 ret = gatekeeper_open(module, &device);
67 if (device != NULL && device->delete_all_users != NULL) {
68 device->delete_all_users(device);
74 if (device) gatekeeper_close(device);
147 if (device) {
160 ret = device
326 gatekeeper_device_t *device; member in class:android::GateKeeperProxy
[all...]
/system/bt/vendor_libs/test_vendor_lib/scripts/
H A Dtest_channel.py17 """Script for sending testing parameters and commands to a Bluetooth device.
20 Bluetooth device. It is intended to be used in tandem with the test vendor
29 tcp:<port>' to forward the port to the device.
30 2. In a separate shell, build and push the test vendor library to the device
33 3. Once logcat has started, turn Bluetooth on from the device.
50 # Used to generate fake device names and addresses during discovery.
89 device = Device(name, address)
90 self._discovered_devices.add_device(device)
91 return device
124 device_list: Maps device addresse
[all...]

Completed in 373 milliseconds

12345678