Home
last modified time | relevance | path

Searched refs:spec (Results 1 – 25 of 26) sorted by relevance

12

/system/core/adb/
Dsocket_spec.cpp78 bool parse_tcp_socket_spec(std::string_view spec, std::string* hostname, int* port, in parse_tcp_socket_spec() argument
80 if (!spec.starts_with("tcp:")) { in parse_tcp_socket_spec()
82 *error += spec; in parse_tcp_socket_spec()
91 if (android::base::ParseInt(&spec[4], &port_value)) { in parse_tcp_socket_spec()
99 std::string addr(spec.substr(4)); in parse_tcp_socket_spec()
120 int get_host_socket_spec_port(std::string_view spec, std::string* error) { in get_host_socket_spec_port() argument
122 if (spec.starts_with("tcp:")) { in get_host_socket_spec_port()
123 if (!parse_tcp_socket_spec(spec, nullptr, &port, nullptr, error)) { in get_host_socket_spec_port()
126 } else if (spec.starts_with("vsock:")) { in get_host_socket_spec_port()
128 std::string spec_str(spec); in get_host_socket_spec_port()
[all …]
Dsocket_spec.h25 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,
35 int get_host_socket_spec_port(std::string_view spec, std::string* error);
Dservices.cpp156 std::string spec) { in wait_service() argument
157 std::vector<std::string> components = android::base::Split(spec, "-"); in wait_service()
159 SendFail(fd, "short wait-for-: " + spec); in wait_service()
171 SendFail(fd, "bad wait-for- transport: " + spec); in wait_service()
192 SendFail(fd, "bad wait-for- state: " + spec); in wait_service()
249 std::string spec(name); in host_service_to_socket() local
252 std::string(serial), transport_id, spec)); in host_service_to_socket()
/system/chre/platform/linux/
Dsystem_timer.cc106 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/core/fs_mgr/libdm/
Ddm_linear_fuzzer.cpp121 EXPECT_EQ(strcmp(targets[0].spec.target_type, "linear"), 0); in LLVMFuzzerTestOneInput()
123 EXPECT_EQ(targets[0].spec.sector_start, 0); in LLVMFuzzerTestOneInput()
124 EXPECT_EQ(targets[0].spec.length, 1); in LLVMFuzzerTestOneInput()
125 EXPECT_EQ(strcmp(targets[1].spec.target_type, "linear"), 0); in LLVMFuzzerTestOneInput()
127 EXPECT_EQ(targets[1].spec.sector_start, 1); in LLVMFuzzerTestOneInput()
128 EXPECT_EQ(targets[1].spec.length, 1); in LLVMFuzzerTestOneInput()
131 EXPECT_EQ(DeviceMapper::GetTargetType(targets[0].spec), std::string{"linear"}); in LLVMFuzzerTestOneInput()
132 EXPECT_EQ(DeviceMapper::GetTargetType(targets[1].spec), std::string{"linear"}); in LLVMFuzzerTestOneInput()
Ddm_target.cpp47 struct dm_target_spec* spec = reinterpret_cast<struct dm_target_spec*>(&data[0]); in Serialize() local
48 spec->sector_start = start(); in Serialize()
49 spec->length = size(); in Serialize()
50 snprintf(spec->target_type, sizeof(spec->target_type), "%s", name().c_str()); in Serialize()
51 spec->next = (uint32_t)data.size(); in Serialize()
Ddm.cpp487 struct dm_target_spec* spec = reinterpret_cast<struct dm_target_spec*>(&buffer[cursor]); in GetTable() local
489 uint32_t next_cursor = std::min(io->data_start + spec->next, data_end); in GetTable()
496 table->emplace_back(*spec, data); in GetTable()
516 std::string DeviceMapper::GetTargetType(const struct dm_target_spec& spec) { in GetTargetType() argument
517 if (const void* p = memchr(spec.target_type, '\0', sizeof(spec.target_type))) { in GetTargetType()
518 ptrdiff_t length = reinterpret_cast<const char*>(p) - spec.target_type; in GetTargetType()
519 return std::string{spec.target_type, static_cast<size_t>(length)}; in GetTargetType()
521 return std::string{spec.target_type, sizeof(spec.target_type)}; in GetTargetType()
594 return spec.target_type == "snapshot"s && data == "Overflow"s; in IsOverflowSnapshot()
Ddm_test.cpp109 EXPECT_EQ(strcmp(targets[0].spec.target_type, "linear"), 0); in TEST()
111 EXPECT_EQ(targets[0].spec.sector_start, 0); in TEST()
112 EXPECT_EQ(targets[0].spec.length, 1); in TEST()
113 EXPECT_EQ(strcmp(targets[1].spec.target_type, "linear"), 0); in TEST()
115 EXPECT_EQ(targets[1].spec.sector_start, 1); in TEST()
116 EXPECT_EQ(targets[1].spec.length, 1); in TEST()
119 EXPECT_EQ(DeviceMapper::GetTargetType(targets[0].spec), std::string{"linear"}); in TEST()
120 EXPECT_EQ(DeviceMapper::GetTargetType(targets[1].spec), std::string{"linear"}); in TEST()
295 ASSERT_EQ(strncmp(status[0].spec.target_type, "snapshot-merge", strlen("snapshot-merge")), in MergeImpl()
410 ASSERT_EQ(strncmp(target_status[0].spec.target_type, "snapshot", strlen("snapshot")), 0); in TEST()
/system/extras/verity/
DUtils.java38 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/include/libdm/
Ddm.h203 struct dm_target_spec spec; member
206 TargetInfo(const struct dm_target_spec& spec, const std::string& data) in TargetInfo()
207 : spec(spec), data(data) {} in TargetInfo()
217 static std::string GetTargetType(const struct dm_target_spec& spec);
/system/nfc/
Drun_unit_tests.sh89 for spec in "${tests[@]}"
96 if [ "${name}" != "${spec}" ]; then
/system/bt/test/
Drun_benchmarks.sh89 for spec in "${benchmarks[@]}"
100 if [ "${name}" != "${spec}" ]; then
Drun_unit_tests.sh116 for spec in "${tests[@]}"
127 if [ "${name}" != "${spec}" ]; then
/system/core/fs_mgr/tools/
Ddmctl.cpp338 std::cout << target.spec.sector_start << "-" in DmListDevices()
339 << (target.spec.sector_start + target.spec.length) << ": " in DmListDevices()
340 << target.spec.target_type; in DmListDevices()
452 std::cout << target.spec.sector_start << "-" in DumpTable()
453 << (target.spec.sector_start + target.spec.length) << ": " in DumpTable()
454 << target.spec.target_type; in DumpTable()
/system/vold/
DKeyUtil.cpp206 static bool buildKeySpecifier(fscrypt_key_specifier* spec, const EncryptionPolicy& policy) { in buildKeySpecifier() argument
214 spec->type = FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR; in buildKeySpecifier()
215 memcpy(spec->u.descriptor, policy.key_raw_ref.c_str(), FSCRYPT_KEY_DESCRIPTOR_SIZE); in buildKeySpecifier()
223 spec->type = FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER; in buildKeySpecifier()
224 memcpy(spec->u.identifier, policy.key_raw_ref.c_str(), FSCRYPT_KEY_IDENTIFIER_SIZE); in buildKeySpecifier()
/system/nvram/messages/include/nvram/messages/
Dproto.hpp337 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/libbase/
Dlogging.cpp367 std::string spec(specs[i]); in InitLogging() local
368 if (spec.size() == 3 && StartsWith(spec, "*:")) { in InitLogging()
369 switch (spec[2]) { in InitLogging()
395 LOG(FATAL) << "unsupported '" << spec << "' in ANDROID_LOG_TAGS (" << tags in InitLogging()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz_utils.cpp114 if (target.spec.target_type != "linear"s) return {}; in GetLinearBaseDeviceString()
121 if (target.spec.target_type != "snapshot"s && target.spec.target_type != "snapshot-merge"s) in GetSnapshotBaseDeviceStrings()
Dsnapshot.cpp715 if (old_targets.size() != 1 || DeviceMapper::GetTargetType(old_targets[0].spec) != "snapshot") { in RewriteSnapshotDeviceTable()
727 table.Emplace<DmTargetSnapshot>(0, old_targets[0].spec.length, base_device, cow_device, in RewriteSnapshotDeviceTable()
773 auto type = DeviceMapper::GetTargetType(snap_target.spec); in IsSnapshotDevice()
795 *target_type = DeviceMapper::GetTargetType(target.spec); in QuerySnapshotStatus()
1105 if (DeviceMapper::GetTargetType(target.spec) != "snapshot-merge") { in CollapseSnapshotDevice()
1140 auto target_type = DeviceMapper::GetTargetType(target.spec); in CollapseSnapshotDevice()
1147 if (outer_table[0].spec.length != snapshot_sectors) { in CollapseSnapshotDevice()
1149 << " sectors, got: " << outer_table[0].spec.length; in CollapseSnapshotDevice()
1153 uint64_t actual_device_sectors = outer_table[0].spec.length + outer_table[1].spec.length; in CollapseSnapshotDevice()
Dsnapshot_test.cpp478 ASSERT_EQ(DeviceMapper::GetTargetType(target.spec), "snapshot"); in TEST_F()
491 ASSERT_EQ(DeviceMapper::GetTargetType(target.spec), "snapshot-merge"); in TEST_F()
535 ASSERT_EQ(DeviceMapper::GetTargetType(target.spec), "snapshot"); in TEST_F()
/system/core/adb/daemon/
Dfile_sync_service.cpp545 static bool do_send_v1(int s, const std::string& spec, std::vector<char>& buffer) { in do_send_v1() argument
547 size_t comma = spec.find_last_of(','); in do_send_v1()
553 std::string path = spec.substr(0, comma); in do_send_v1()
556 mode_t mode = strtoul(spec.substr(comma + 1).c_str(), nullptr, 0); in do_send_v1()
/system/bt/doc/
Dpower_management.md103 - 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/gsid/
Dgsi_service.cpp438 const auto& spec = target.spec; in dumpDeviceMapperDevices() local
439 auto target_type = DeviceMapper::GetTargetType(spec); in dumpDeviceMapperDevices()
440 text << " " << target_type << " " << spec.sector_start << " " << spec.length << " " in dumpDeviceMapperDevices()
/system/core/fastboot/fuzzy_fastboot/
DREADME.md8 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/libfiemap/
Dfiemap_writer.cpp67 const auto& entry = target.spec; in ValidateDmTarget()

12