/system/core/adb/ |
D | socket_spec.cpp | 74 bool parse_tcp_socket_spec(std::string_view spec, std::string* hostname, int* port, in parse_tcp_socket_spec() argument 76 if (!spec.starts_with("tcp:")) { in parse_tcp_socket_spec() 78 *error += spec; in parse_tcp_socket_spec() 87 if (android::base::ParseInt(&spec[4], &port_value)) { in parse_tcp_socket_spec() 95 std::string addr(spec.substr(4)); in parse_tcp_socket_spec() 106 *error += spec; in parse_tcp_socket_spec() 127 bool is_socket_spec(std::string_view spec) { in is_socket_spec() argument 130 if (spec.starts_with(prefix)) { in is_socket_spec() 134 return spec.starts_with("tcp:"); in is_socket_spec() 137 bool is_local_socket_spec(std::string_view spec) { in is_local_socket_spec() argument [all …]
|
D | socket_spec.h | 25 bool is_socket_spec(std::string_view spec); 26 bool is_local_socket_spec(std::string_view spec); 30 int socket_spec_listen(std::string_view spec, std::string* error, int* resolved_tcp_port = nullptr); 32 bool parse_tcp_socket_spec(std::string_view spec, std::string* hostname, int* port,
|
/system/chre/platform/linux/ |
D | system_timer.cc | 106 struct itimerspec spec = {}; in isActive() local 107 int ret = timer_gettime(mTimerId, &spec); in isActive() 112 isActive = (spec.it_value.tv_sec > 0 || spec.it_value.tv_nsec > 0); in isActive() 120 struct itimerspec spec = {}; in setInternal() local 123 NanosecondsToTimespec(delayNs, &spec.it_value); in setInternal() 124 NanosecondsToTimespec(0, &spec.it_interval); in setInternal() 126 int ret = timer_settime(mTimerId, kFlags, &spec, nullptr); in setInternal()
|
/system/extras/verity/ |
D | Utils.java | 38 import java.security.spec.ECPublicKeySpec; 39 import java.security.spec.ECPrivateKeySpec; 40 import java.security.spec.X509EncodedKeySpec; 41 import java.security.spec.PKCS8EncodedKeySpec; 42 import java.security.spec.InvalidKeySpecException; 50 import javax.crypto.spec.PBEKeySpec; 166 PKCS8EncodedKeySpec spec = decryptPrivateKey(der); in loadDERPrivateKey() local 168 if (spec == null) { in loadDERPrivateKey() 169 spec = new PKCS8EncodedKeySpec(der); in loadDERPrivateKey() 172 ASN1InputStream bIn = new ASN1InputStream(new ByteArrayInputStream(spec.getEncoded())); in loadDERPrivateKey() [all …]
|
/system/core/fs_mgr/libdm/ |
D | dm_target.cpp | 42 struct dm_target_spec* spec = reinterpret_cast<struct dm_target_spec*>(&data[0]); in Serialize() local 43 spec->sector_start = start(); in Serialize() 44 spec->length = size(); in Serialize() 45 snprintf(spec->target_type, sizeof(spec->target_type), "%s", name().c_str()); in Serialize() 46 spec->next = (uint32_t)data.size(); in Serialize()
|
D | dm_test.cpp | 169 EXPECT_EQ(strcmp(targets[0].spec.target_type, "linear"), 0); in TEST() 171 EXPECT_EQ(targets[0].spec.sector_start, 0); in TEST() 172 EXPECT_EQ(targets[0].spec.length, 1); in TEST() 173 EXPECT_EQ(strcmp(targets[1].spec.target_type, "linear"), 0); in TEST() 175 EXPECT_EQ(targets[1].spec.sector_start, 1); in TEST() 176 EXPECT_EQ(targets[1].spec.length, 1); in TEST()
|
D | dm.cpp | 328 struct dm_target_spec* spec = reinterpret_cast<struct dm_target_spec*>(&buffer[cursor]); in GetTable() local 330 uint32_t next_cursor = std::min(io->data_start + spec->next, data_end); in GetTable() 337 table->emplace_back(*spec, data); in GetTable()
|
/system/core/fs_mgr/libdm/include/libdm/ |
D | dm.h | 124 struct dm_target_spec spec; member 126 TargetInfo(const struct dm_target_spec& spec, const std::string& data) in TargetInfo() 127 : spec(spec), data(data) {} in TargetInfo()
|
/system/nfc/ |
D | run_unit_tests.sh | 89 for spec in "${tests[@]}" 96 if [ "${name}" != "${spec}" ]; then
|
/system/bt/test/ |
D | run_benchmarks.sh | 89 for spec in "${benchmarks[@]}" 100 if [ "${name}" != "${spec}" ]; then
|
D | run_unit_tests.sh | 115 for spec in "${tests[@]}" 126 if [ "${name}" != "${spec}" ]; then
|
/system/core/fs_mgr/tools/ |
D | dmctl.cpp | 255 std::cout << target.spec.sector_start << "-" in DmListDevices() 256 << (target.spec.sector_start + target.spec.length) << ": " in DmListDevices() 257 << target.spec.target_type; in DmListDevices() 325 std::cout << target.spec.sector_start << "-" in TableCmdHandler() 326 << (target.spec.sector_start + target.spec.length) << ": " in TableCmdHandler() 327 << target.spec.target_type; in TableCmdHandler()
|
/system/core/base/ |
D | logging.cpp | 306 std::string spec(specs[i]); in InitLogging() local 307 if (spec.size() == 3 && StartsWith(spec, "*:")) { in InitLogging() 308 switch (spec[2]) { in InitLogging() 334 LOG(FATAL) << "unsupported '" << spec << "' in ANDROID_LOG_TAGS (" << tags in InitLogging()
|
/system/nvram/messages/include/nvram/messages/ |
D | proto.hpp | 337 constexpr auto spec = kFieldSpec; in EncodeMember() local 339 spec.Get(*static_cast<const StructType*>(object)), writer); in EncodeMember() 345 constexpr auto spec = kFieldSpec; in DecodeMember() local 347 spec.Get(*static_cast<StructType*>(object)), reader); in DecodeMember()
|
/system/core/adb/daemon/ |
D | file_sync_service.cpp | 397 static bool do_send(int s, const std::string& spec, std::vector<char>& buffer) { in do_send() argument 399 size_t comma = spec.find_last_of(','); in do_send() 405 std::string path = spec.substr(0, comma); in do_send() 408 mode_t mode = strtoul(spec.substr(comma + 1).c_str(), nullptr, 0); in do_send()
|
/system/bt/doc/ |
D | power_management.md | 103 - The power spec state table (`bta_dm_pm_spec`) is checked to see if 107 connection if it's supposed to be managed according to the power spec 108 state tables. If the spec specifies `BTA_DM_PM_NO_PREF`, then any 132 - If a timeout is specified in the power spec table, then an unused timer
|
/system/core/fastboot/fuzzy_fastboot/ |
D | README.md | 8 release to find implementation bugs, make sure it conforms to the fastboot spec, 19 By checking a bootloader's conformance to the fastboot spec, as well as make sure 26 Thus, Fuzzy Fastboot also checks for proper conformance to the spec.
|
/system/core/fs_mgr/ |
D | fs_mgr.cpp | 1738 if (strcmp(target.spec.target_type, "verity") == 0 && in fs_mgr_verity_is_check_at_most_once()
|