Searched refs:spec (Results 1 - 10 of 10) sorted by relevance

/system/core/adb/
H A Dsocket_spec.h22 bool is_socket_spec(const std::string& spec);
23 bool is_local_socket_spec(const std::string& spec);
25 int socket_spec_connect(const std::string& spec, std::string* error);
26 int socket_spec_listen(const std::string& spec, std::string* error,
30 bool parse_tcp_socket_spec(const std::string& spec, std::string* hostname, int* port,
H A Dsocket_spec.cpp67 bool parse_tcp_socket_spec(const std::string& spec, std::string* hostname, int* port, argument
69 if (!StartsWith(spec, "tcp:")) {
70 *error = StringPrintf("specification is not tcp: '%s'", spec.c_str());
77 // If the spec is tcp:<port>, parse it ourselves.
79 if (android::base::ParseInt(&spec[4], &port_value)) {
87 std::string addr = spec.substr(4);
97 *error = StringPrintf("missing port in specification: '%s'", spec.c_str());
118 bool is_socket_spec(const std::string& spec) { argument
121 if (StartsWith(spec, prefix)) {
125 return StartsWith(spec, "tc
128 is_local_socket_spec(const std::string& spec) argument
144 socket_spec_connect(const std::string& spec, std::string* error) argument
189 socket_spec_listen(const std::string& spec, std::string* error, int* resolved_tcp_port) argument
[all...]
H A Dfile_sync_service.cpp367 static bool do_send(int s, const std::string& spec, std::vector<char>& buffer) { argument
368 // 'spec' is of the form "/some/path,0755". Break it up.
369 size_t comma = spec.find_last_of(',');
375 std::string path = spec.substr(0, comma);
378 mode_t mode = strtoul(spec.substr(comma + 1).c_str(), nullptr, 0);
/system/chre/platform/linux/
H A Dsystem_timer.cc106 struct itimerspec spec = {}; local
107 int ret = timer_gettime(mTimerId, &spec);
112 isActive = (spec.it_value.tv_sec > 0 || spec.it_value.tv_nsec > 0);
120 struct itimerspec spec = {}; local
123 NanosecondsToTimespec(delayNs, &spec.it_value);
124 NanosecondsToTimespec(0, &spec.it_interval);
126 int ret = timer_settime(mTimerId, kFlags, &spec, nullptr);
/system/nfc/
H A Drun_unit_tests.sh89 for spec in "${tests[@]}"
91 name="${spec%%.*}"
96 if [ "${name}" != "${spec}" ]; then
97 filter="${spec#*.}"
/system/extras/verity/
H A 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);
168 if (spec == null) {
169 spec = new PKCS8EncodedKeySpec(der);
172 ASN1InputStream bIn = new ASN1InputStream(new ByteArrayInputStream(spec
[all...]
/system/bt/test/
H A Drun_unit_tests.sh112 for spec in "${tests[@]}"
114 name="${spec%%.*}"
123 if [ "${name}" != "${spec}" ]; then
124 filter="${spec#*.}"
/system/nvram/messages/include/nvram/messages/
H A Dproto.hpp337 constexpr auto spec = kFieldSpec; local
339 spec.Get(*static_cast<const StructType*>(object)), writer);
345 constexpr auto spec = kFieldSpec; local
347 spec.Get(*static_cast<StructType*>(object)), reader);
/system/core/base/
H A Dlogging.cpp301 std::string spec(specs[i]);
302 if (spec.size() == 3 && StartsWith(spec, "*:")) {
303 switch (spec[2]) {
329 LOG(FATAL) << "unsupported '" << spec << "' in ANDROID_LOG_TAGS (" << tags
/system/bt/doc/
H A 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

Completed in 239 milliseconds