/system/vold/ |
H A D | Ext4Crypt.h | 24 bool e4crypt_vold_create_user_key(userid_t user_id, int serial, bool ephemeral); 26 bool e4crypt_add_user_key_auth(userid_t user_id, int serial, const std::string& token, 30 bool e4crypt_unlock_user_key(userid_t user_id, int serial, const std::string& token, 34 bool e4crypt_prepare_user_storage(const std::string& volume_uuid, userid_t user_id, int serial,
|
/system/iot/attestation/at-factory-tool/ |
H A D | serialmapperlinux.py | 15 """This module provides the serial number to USB location map on Linux.""" 20 """Maps serial number to its USB physical location. 23 USB devices. Use the serial file's content to create the map. 47 serial_path = os.path.join(device_folder, 'serial') 50 serial = f.readline().rstrip('\n').lower() 51 serial_to_location_map[serial] = device_folder_name 55 def get_location(self, serial): 56 """Get the USB location according to the serial number. 59 serial: The serial numbe [all...] |
H A D | atftman.py | 137 serial_number: The serial number for the device. 257 The interface to get the USB physical location to serial number map. 269 # The serial numbers for the devices that are at least seen twice. 285 # The map mapping serial number to USB location. 287 # The map mapping rebooting device serial number to their reboot callback 321 Get the serial number of the ATFA device and the target device. If the 322 device does not exist, the returned serial number would be None. 337 device_serials: The device serial numbers. 379 device_serials: The list of serial numbers of the fastboot devices. 385 for serial i [all...] |
H A D | serialmapperwin.py | 15 """This module provides the USB device serial number to USB location map on Win. 57 """Maps serial number to its USB physical location. 127 # device instance id contains a serial number in the format of 132 serial = instance_parts.pop().lower() 133 serial_map[serial] = location 141 def get_location(self, serial): 142 """Get the USB location according to the serial number. 145 serial: The serial number for the device. 149 serial_lower = serial [all...] |
/system/core/adb/ |
H A D | console.cpp | 57 static int adb_get_emulator_console_port(const char* serial) { argument 58 if (serial) { 59 // The user specified a serial number; is it an emulator? 61 return (sscanf(serial, "emulator-%d", &port) == 1) ? port : -1; 94 static int connect_to_console(const char* serial) { argument 95 int port = adb_get_emulator_console_port(serial); 110 int adb_send_emulator_command(int argc, const char** argv, const char* serial) { argument 111 int fd = connect_to_console(serial);
|
H A D | transport.cpp | 198 if (read_packet(fd, t->serial, &p)) { 199 D("%s: failed to read packet from transport socket on fd %d", t->serial, fd); 222 if (write_packet(t->transport_socket, t->serial, &p)) { 245 android::base::StringPrintf("<-%s", (t->serial != nullptr ? t->serial : "transport"))); 246 D("%s: starting read_transport thread on fd %d, SYNC online (%d)", t->serial, t->fd, 254 if (write_packet(t->fd, t->serial, &p)) { 256 D("%s: failed to write SYNC packet", t->serial); 260 D("%s: data pump started", t->serial); 268 D("%s: remote read failed for transport", t->serial); 718 acquire_one_transport(TransportType type, const char* serial, TransportId transport_id, bool* is_ambiguous, std::string* error_out, bool accept_any_state) argument 989 const char* serial = t->serial; local 1047 register_socket_transport(int s, const char* serial, int port, int local) argument 1091 find_transport(const char* serial) argument 1120 register_usb_transport(usb_handle* usb, const char* serial, const char* devpath, unsigned writeable) argument [all...] |
H A D | adb_client.h | 43 void adb_set_transport(TransportType type, const char* _Nullable serial, TransportId transport_id); 44 void adb_get_transport(TransportType* _Nullable type, const char* _Nullable* _Nullable serial, 52 // exactly one emulator connected (or if you use -s <serial> with a <serial> 55 const char* _Nullable serial); 61 // Create a host command corresponding to selected transport type/serial.
|
H A D | transport.h | 140 char* serial = nullptr; member in class:atransport 155 const std::string serial_name() const { return serial ? serial : "<unknown>"; } 176 // * <serial> 182 // If this is a local transport, serial will also match [tcp:|udp:]<hostname>[:port] targets. 183 // For example, serial "100.100.100.100:5555" would match any of: 212 * If serial is non-null then only the device with that serial will be chosen. 218 atransport* acquire_one_transport(TransportType type, const char* serial, TransportId transport_id, 231 atransport* find_transport(const char* serial); [all...] |
H A D | transport_local.cpp | 76 std::string serial; local 79 if (!android::base::ParseNetAddress(address, &host, &port, &serial, response)) { 87 serial.c_str(), error.c_str()); 91 D("client: connected %s remote on fd %d", serial.c_str(), fd); 100 int ret = register_socket_transport(fd, serial.c_str(), port, 0); 103 *response = android::base::StringPrintf("already connected to %s", serial.c_str()); 105 *response = android::base::StringPrintf("connected to %s", serial.c_str()); 132 std::string serial = getEmulatorSerialString(console_port); local 133 if (register_socket_transport(fd, serial.c_str(), adb_port, 1) == 0) { 236 std::string serial local 335 std::string serial = android::base::StringPrintf("host-%d", fd); local [all...] |
H A D | transport_test.cpp | 130 std::string serial = "foo"; local 137 t.serial = &serial[0]; 147 EXPECT_TRUE(t.MatchesTarget(serial)); 161 std::string serial = "100.100.100.100:5555"; local 164 t.serial = &serial[0];
|
H A D | services.cpp | 340 std::string serial; member in struct:state_info 353 const char* serial = sinfo->serial.length() ? sinfo->serial.c_str() : NULL; local 354 atransport* t = acquire_one_transport(sinfo->transport_type, serial, sinfo->transport_id, 438 asocket* host_service_to_socket(const char* name, const char* serial, TransportId transport_id) { argument 452 if (serial) sinfo->serial = serial;
|
H A D | adb_client.cpp | 54 void adb_set_transport(TransportType type, const char* serial, TransportId transport_id) { argument 56 __adb_serial = serial; 60 void adb_get_transport(TransportType* type, const char** serial, TransportId* transport_id) { argument 62 if (serial) *serial = __adb_serial; 312 return android::base::StringPrintf("host-serial:%s:%s", __adb_serial, command);
|
H A D | adb_listeners_test.cpp | 30 static bool listener_is_installed(const std::string& serial, const std::string& source, argument 32 // format_listeners() gives lines of "<serial> <source> <dest>\n". 36 (serial.empty() || info[0] == serial) &&
|
H A D | adb.cpp | 428 p->msg.arg0, p->msg.arg1, s->peer->id, p->msg.arg1, t->serial); 455 p->msg.arg1, t->serial, s->peer->transport->serial); 1041 int handle_host_request(const char* service, TransportType type, const char* serial, argument 1055 // "transport:" is used for switching transport with a specified serial number 1077 serial = service; 1081 atransport* t = acquire_one_transport(type, serial, transport_id, nullptr, &error); 1124 atransport* t = acquire_one_transport(type, serial, transport_id, nullptr, &error); 1152 std::string serial; local 1156 if (!android::base::ParseNetAddress(address, &host, &port, &serial, [all...] |
H A D | adb.h | 145 asocket* host_service_to_socket(const char* name, const char* serial, TransportId transport_id); 209 int handle_host_request(const char* service, TransportType type, const char* serial,
|
/system/core/liblog/ |
H A D | properties.c | 51 uint32_t serial; member in struct:cache 60 return cache->pinfo && __system_property_serial(cache->pinfo) != cache->serial; 75 cache->cache.serial = __system_property_serial(cache->cache.pinfo); 128 * check all known serial numbers to changes. 281 static uint32_t serial; local 295 if (current_serial != serial) { 300 serial = current_serial; 317 uint32_t serial; member in struct:cache2_char 338 if (current_serial != self->serial) { 344 self->serial 526 uint32_t serial; member in struct:cache2_property_size [all...] |
/system/sepolicy/prebuilts/api/26.0/private/ |
H A D | adbd.te | 60 # Read device's serial number from system properties
|
/system/sepolicy/prebuilts/api/27.0/private/ |
H A D | adbd.te | 62 # Read device's serial number from system properties
|
/system/sepolicy/prebuilts/api/28.0/private/ |
H A D | adbd.te | 67 # Read device's serial number from system properties
|
/system/sepolicy/private/ |
H A D | adbd.te | 67 # Read device's serial number from system properties
|
/system/core/include/system/ |
H A D | radio.h | 139 char serial[RADIO_STRING_LEN_MAX]; /* serial number (for subscription services) */ member in struct:radio_hal_properties 155 char serial[RADIO_STRING_LEN_MAX]; member in struct:radio_properties
|
/system/core/libsystem/include/system/ |
H A D | radio.h | 139 char serial[RADIO_STRING_LEN_MAX]; /* serial number (for subscription services) */ member in struct:radio_hal_properties 155 char serial[RADIO_STRING_LEN_MAX]; member in struct:radio_properties
|
/system/core/adb/client/ |
H A D | usb_osx.cpp | 148 char serial[256]; local 273 // skip first word, and copy the rest to the serial string, 277 serial[i] = buffer[i + 1]; 278 serial[i] = 0; 287 VLOG(USB) << android::base::StringPrintf("Found vid=%04x pid=%04x serial=%s\n", 288 vendor, product, serial); 290 devpath = serial; 307 VLOG(USB) << "Add usb device " << serial; 308 LOG(INFO) << "reported max packet size for " << serial << " is " << handle->max_packet_size; 310 register_usb_transport(reinterpret_cast<::usb_handle*>(handle_p), serial, devpat local [all...] |
/system/extras/tools/ |
H A D | graph_lockdep_chains | 23 echo " --serial=<serial> | -s <serial>" 24 echo " Input from 'adb -s <serial> shell su 0 cat /proc/lockdep_chains'" 96 --serial | -s) 99 echo "ERROR: --input or --serial can only be specified once" >&2 106 --serial=*) 107 input="adb -s ${1#--serial=} shell su 0 cat /proc/lockdep_chains" 113 echo "ERROR: --input or --serial can only be specified once" >&2 123 echo "ERROR: --input or --serial ca [all...] |
/system/tools/hidl/ |
H A D | Method.h | 81 // Implementations, serial are not copied. 84 void setSerialId(size_t serial); 90 size_t serial,
|