Home
last modified time | relevance | path

Searched refs:tokens (Results 1 – 25 of 36) sorted by relevance

12

/system/bt/service/ipc/
Dlinux_ipc_host.cc270 std::vector<std::string> tokens = base::SplitString( in OnMessage() local
272 switch (tokens.size()) { in OnMessage()
274 if (tokens[0] == kSetAdapterNameCommand) in OnMessage()
275 return OnSetAdapterName(tokens[1]); in OnMessage()
276 if (tokens[0] == kCreateServiceCommand) return OnCreateService(tokens[1]); in OnMessage()
277 if (tokens[0] == kDestroyServiceCommand) in OnMessage()
278 return OnDestroyService(tokens[1]); in OnMessage()
279 if (tokens[0] == kStartServiceCommand) return OnStartService(tokens[1]); in OnMessage()
280 if (tokens[0] == kStopServiceCommand) return OnStopService(tokens[1]); in OnMessage()
283 if (tokens[0] == kSetCharacteristicValueCommand) in OnMessage()
[all …]
/system/bt/gd/storage/
Dlegacy_config_file.cc60 auto tokens = common::StringSplit(line, "=", 2); in Read() local
61 if (tokens.size() != 2) { in Read()
65 tokens[0] = common::StringTrim(std::move(tokens[0])); in Read()
66 tokens[1] = common::StringTrim(std::move(tokens[1])); in Read()
67 cache.SetProperty(section, tokens[0], std::move(tokens[1])); in Read()
/system/core/libkeyutils/mini_keyctl/
Dmini_keyctl_utils.cpp61 std::vector<std::string> tokens = SplitBySpace(line); in GetKeyringId() local
62 if (tokens.size() < 9) { in GetKeyringId()
65 std::string key_id = "0x" + tokens[0]; in GetKeyringId()
66 std::string key_type = tokens[7]; in GetKeyringId()
68 std::string key_desc_prefix = tokens[8]; in GetKeyringId()
/system/tools/hidl/hidl2aidl/
DAidlInterface.cpp248 std::vector<std::string> tokens = base::Split(line, " "); in emitAidl() local
249 if (tokens.size() <= 1 || tokens[0] != "@return") { in emitAidl()
255 const std::string& res = tokens[1]; in emitAidl()
263 tokens.erase(++tokens.begin()); in emitAidl()
268 tokens.insert(tokens.begin(), in emitAidl()
275 tokens.erase(tokens.begin()); in emitAidl()
276 tokens.insert(tokens.begin(), "@param out"); in emitAidl()
279 modifiedDocComment.emplace_back(base::Join(tokens, " ")); in emitAidl()
/system/bt/gd/packet/parser/
Dlogging.h35 LogMessage(ParseLocation loc, std::initializer_list<const Loggable*> tokens) in LogMessage() argument
36 : debug_(false), loc_(loc), tokens_(tokens) { in LogMessage()
40 …ssage(bool debug, std::initializer_list<const Loggable*> tokens) : debug_(debug), tokens_(tokens) { in LogMessage() argument
/system/core/init/test_service/
Dtest_service.cpp51 std::vector<std::string> tokens = android::base::Split(line, ":"); in main() local
52 if (tokens.size() >= 2) { in main()
53 std::string field = tokens[0]; in main()
54 std::string value = android::base::Trim(tokens[1]); in main()
/system/apex/apexd/
Dflattened_apex_test.cpp60 const std::vector<std::string>& tokens = Split(mount, " "); in TEST() local
63 if (tokens.size() < 7) { in TEST()
66 const std::string& source = tokens[3]; in TEST()
67 const std::string& target = tokens[4]; in TEST()
Dapex_database.cpp104 const auto& tokens = Split(mountInfo, " "); in parseMountInfo() local
105 if (tokens.size() < 2) { in parseMountInfo()
108 return std::make_pair(tokens[0], tokens[1]); in parseMountInfo()
/system/update_engine/
Dboot_control_chromeos.cc161 vector<string> tokens = base::SplitString( in ParseDlcPartitionName() local
163 if (tokens.size() != 3 || tokens[0] != kPartitionNamePrefixDlc) { in ParseDlcPartitionName()
168 if (tokens[1].empty() || tokens[2].empty()) { in ParseDlcPartitionName()
169 LOG(ERROR) << " partition name does not contain valid DLC ID (" << tokens[1] in ParseDlcPartitionName()
170 << ") or package (" << tokens[2] << ")"; in ParseDlcPartitionName()
174 *dlc_id = tokens[1]; in ParseDlcPartitionName()
175 *dlc_package = tokens[2]; in ParseDlcPartitionName()
/system/core/init/
Dtokenizer_test.cpp40 std::vector<std::vector<std::string>> tokens; in RunTest() local
45 EXPECT_EQ(expected_tokens, tokens) << data; in RunTest()
48 tokens.emplace_back(std::move(current_line)); in RunTest()
/system/bt/gd/common/
Dstrings.cc85 std::vector<std::string> tokens; in StringSplit() local
89 …while ((max_token == 0 || tokens.size() < (max_token - 1)) && index_of_delim != std::string::npos)… in StringSplit()
90 tokens.push_back(str.substr(starting_index, index_of_delim - starting_index)); in StringSplit()
96 tokens.push_back(str.substr(starting_index)); in StringSplit()
98 return tokens; in StringSplit()
/system/tools/hidl/lint/lints/
DenumMaxAndAll.cpp45 const std::vector<std::string> tokens = in enumValueNames() local
49 for (const std::string& token : tokens) { in enumValueNames()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz_utils.cpp115 auto tokens = Split(target.data, " "); in GetLinearBaseDeviceString() local
116 CHECK_EQ(2, tokens.size()); in GetLinearBaseDeviceString()
117 return tokens[0]; in GetLinearBaseDeviceString()
123 auto tokens = Split(target.data, " "); in GetSnapshotBaseDeviceStrings() local
124 CHECK_EQ(4, tokens.size()); in GetSnapshotBaseDeviceStrings()
125 return {tokens[0], tokens[1]}; in GetSnapshotBaseDeviceStrings()
/system/tools/hidl/host_utils/
DStringHelper.cpp102 std::vector<std::string> tokens; in Tokenize() local
103 Tokenize(comp, &tokens); in Tokenize()
105 vec->insert(vec->end(), tokens.begin(), tokens.end()); in Tokenize()
/system/extras/simpleperf/scripts/inferno/
Dinferno.py72 tokens = args.events.split()
73 if len(tokens) == 2:
74 num_events = tokens[0]
75 event_name = tokens[1]
/system/sepolicy/prebuilts/api/28.0/public/
Dfingerprintd.te18 # Need to add auth tokens to KeyStore
Dgatekeeperd.te24 # Need to add auth tokens to KeyStore
/system/sepolicy/public/
Dfingerprintd.te18 # Need to add auth tokens to KeyStore
Dgatekeeperd.te23 # Need to add auth tokens to KeyStore
/system/sepolicy/prebuilts/api/30.0/public/
Dfingerprintd.te18 # Need to add auth tokens to KeyStore
/system/sepolicy/prebuilts/api/29.0/public/
Dfingerprintd.te18 # Need to add auth tokens to KeyStore
/system/sepolicy/prebuilts/api/26.0/public/
Dfingerprintd.te18 # Need to add auth tokens to KeyStore
Dgatekeeperd.te24 # Need to add auth tokens to KeyStore
/system/sepolicy/prebuilts/api/27.0/public/
Dfingerprintd.te18 # Need to add auth tokens to KeyStore
Dgatekeeperd.te24 # Need to add auth tokens to KeyStore

12