Home
last modified time | relevance | path

Searched refs:end (Results 1 – 25 of 927) sorted by relevance

12345678910>>...38

/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/adpter/src/
Dcompatible_light_connection.cpp42 lightList.assign(lightInfo.begin(), lightInfo.end()); in GetLightList()
49 if (std::find(supportLights.begin(), supportLights.end(), lightId) == supportLights.end()) { in TurnOn()
53 if (std::find(turnOnLights_.begin(), turnOnLights_.end(), lightId) != turnOnLights_.end()) { in TurnOn()
64 if (std::find(supportLights.begin(), supportLights.end(), lightId) == supportLights.end()) { in TurnOff()
68 if (std::find(turnOnLights_.begin(), turnOnLights_.end(), lightId) == turnOnLights_.end()) { in TurnOff()
72 …std::vector<int32_t>::iterator iter = std::find(turnOnLights_.begin(), turnOnLights_.end(), lightI… in TurnOff()
/base/security/access_token/services/tokensyncmanager/src/command/
Dbase_remote_command.cpp29 …if (jsonObject.find("commandName") != jsonObject.end() && jsonObject.at("commandName").is_string()… in FromRemoteProtocolJson()
32 if (jsonObject.find("uniqueId") != jsonObject.end() && jsonObject.at("uniqueId").is_string()) { in FromRemoteProtocolJson()
35 …if (jsonObject.find("requestVersion") != jsonObject.end() && jsonObject.at("requestVersion").is_nu… in FromRemoteProtocolJson()
38 …if (jsonObject.find("srcDeviceId") != jsonObject.end() && jsonObject.at("srcDeviceId").is_string()… in FromRemoteProtocolJson()
41 …if (jsonObject.find("srcDeviceLevel") != jsonObject.end() && jsonObject.at("srcDeviceLevel").is_st… in FromRemoteProtocolJson()
44 …if (jsonObject.find("dstDeviceId") != jsonObject.end() && jsonObject.at("dstDeviceId").is_string()… in FromRemoteProtocolJson()
47 …if (jsonObject.find("dstDeviceLevel") != jsonObject.end() && jsonObject.at("dstDeviceLevel").is_st… in FromRemoteProtocolJson()
50 …if (jsonObject.find("statusCode") != jsonObject.end() && jsonObject.at("statusCode").is_number()) { in FromRemoteProtocolJson()
53 if (jsonObject.find("message") != jsonObject.end() && jsonObject.at("message").is_string()) { in FromRemoteProtocolJson()
56 …if (jsonObject.find("responseVersion") != jsonObject.end() && jsonObject.at("responseVersion").is_… in FromRemoteProtocolJson()
[all …]
/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/
Dfs_hvb.c211 struct hvb_cert_data *end = p + vd->num_loaded_certs; in FsHvbGetCert() local
213 for (; p < end; p++) { in FsHvbGetCert()
223 if (p == end) { in FsHvbGetCert()
237 static int FsHvbVerityTargetAppendString(char **p, char *end, char *str, size_t len) in FsHvbVerityTargetAppendString() argument
242 if (*p + len >= end || *p + len < *p) { in FsHvbVerityTargetAppendString()
247 err = memcpy_s(*p, end - *p, str, len); in FsHvbVerityTargetAppendString()
255 if (*p + 1 >= end || *p + 1 < *p) { in FsHvbVerityTargetAppendString()
268 static int FsHvbVerityTargetAppendOctets(char **p, char *end, char *octs, size_t octs_len) in FsHvbVerityTargetAppendOctets() argument
286 rc = FsHvbVerityTargetAppendString(p, end, str, str_len); in FsHvbVerityTargetAppendOctets()
295 static int FsHvbVerityTargetAppendNum(char **p, char *end, uint64_t num) in FsHvbVerityTargetAppendNum() argument
[all …]
/base/sensors/sensor/services/sensor/hdi_connection/hardware/src/
Dhdi_service_impl.cpp49 sensorList.assign(g_sensorInfos.begin(), g_sensorInfos.end()); in GetSensorList()
71 if (std::find(supportSensors.begin(), supportSensors.end(), sensorId) == supportSensors.end()) { in EnableSensor()
75 …if (std::find(g_enableSensors.begin(), g_enableSensors.end(), sensorId) != g_enableSensors.end()) { in EnableSensor()
94 if (std::find(supportSensors.begin(), supportSensors.end(), sensorId) == supportSensors.end()) { in DisableSensor()
98 …if (std::find(g_enableSensors.begin(), g_enableSensors.end(), sensorId) == g_enableSensors.end()) { in DisableSensor()
103 for (iter = g_enableSensors.begin(); iter != g_enableSensors.end(); ++iter) { in DisableSensor()
/base/hiviewdfx/faultloggerd/tools/process_dump/
Ddfx_symbols_cache.cpp50 if (unw_get_symbol_info_by_pc(as, pc, LOG_BUF_LEN, buf, &symbol.start, &symbol.end) != 0) { in GetNameAndOffsetByPc()
69 std::sort(cachedSymbols_.begin(), cachedSymbols_.end(), SymbolComparator); in GetNameAndOffsetByPc()
76 size_t end = cachedSymbols_.size(); in GetNameAndOffsetByPc() local
77 while (begin < end) { in GetNameAndOffsetByPc()
78 size_t mid = begin + (end - begin) / 2; in GetNameAndOffsetByPc()
81 end = mid; in GetNameAndOffsetByPc()
82 } else if (pc <= symbol.end) { in GetNameAndOffsetByPc()
Ddfx_util.cpp132 std::istreambuf_iterator<char> end; in ReadStringFromFile() local
133 std::string str(start, end); in ReadStringFromFile()
146 const char *end = begin + source.size(); in TrimAndDupStr() local
147 if (begin == end) { in TrimAndDupStr()
152 while ((begin < end) && isspace(*begin)) { in TrimAndDupStr()
156 while ((begin < end) && isspace(*(end - 1))) { in TrimAndDupStr()
157 end--; in TrimAndDupStr()
160 if (begin == end) { in TrimAndDupStr()
165 uint32_t offset = static_cast<uint32_t>(end - begin); in TrimAndDupStr()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/
Dhc_time.c42 struct timespec end; in HcGetIntervalTime() local
43 int res = clock_gettime(CLOCK_MONOTONIC, &end); in HcGetIntervalTime()
48 if (end.tv_sec < startTime) { in HcGetIntervalTime()
52 return (end.tv_sec - startTime); in HcGetIntervalTime()
/base/account/os_account/services/accountmgr/src/osaccount/
Dos_account_file_operator.cpp49 constraintListCollecting.end(), in Init()
64 …constraintsConfig_, constraintsConfig_.end(), Constants::TYPE_LIST, typeList, OHOS::AccountSA::Jso… in GetConstraintsByType()
65 if (std::find(typeList.begin(), typeList.end(), std::to_string(type)) == typeList.end()) { in GetConstraintsByType()
71 constraintsConfig_.end(), in GetConstraintsByType()
77 … typeJson, typeJson.end(), std::to_string(type), constraints, OHOS::AccountSA::JsonType::ARRAY); in GetConstraintsByType()
95 baseOsAccountConstraintsConfig_.end(), in GetBaseOAConstraintsList()
116 globalOsAccountConstraintsConfig_.end(), in GetGlobalOAConstraintsList()
138 specificOsAccountConstraintsConfig_.end(), in GetSpecificOAConstraintsList()
143 SpecificOAConstraintsData.end(), in GetSpecificOAConstraintsList()
157 constraintsConfig_.end(), in GetIsMultiOsAccountEnable()
[all …]
Dos_account_control_file_manager.cpp35 auto iter = std::any_of(dirName.begin(), dirName.end(), in GetValidAccountID()
200 const auto &jsonObjectEnd = accountListJson.end(); in GetOsAccountList()
256 if (baseOAConstraintsJson.find(idStr) == baseOAConstraintsJson.end()) { in UpdateBaseOAConstraints()
263 auto jsonEnd = baseOAConstraintsJson.end(); in UpdateBaseOAConstraints()
266 for (auto it = ConstraintStr.begin(); it != ConstraintStr.end(); it++) { in UpdateBaseOAConstraints()
268 … baseOAConstraints.erase(std::remove(baseOAConstraints.begin(), baseOAConstraints.end(), *it), in UpdateBaseOAConstraints()
269 baseOAConstraints.end()); in UpdateBaseOAConstraints()
272 …f (std::find(baseOAConstraints.begin(), baseOAConstraints.end(), *it) == baseOAConstraints.end()) { in UpdateBaseOAConstraints()
305 …SA::GetDataByType<std::vector<std::string>>(globalOAConstraintsJson, globalOAConstraintsJson.end(), in GlobalConstraintsDataOperate()
308 for (auto it = ConstraintStr.begin(); it != ConstraintStr.end(); it++) { in GlobalConstraintsDataOperate()
[all …]
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
Dmbedtls_pkcs7.c117 static int GetContentInfoType(unsigned char **p, const unsigned char *end, in GetContentInfoType() argument
124 rc = mbedtls_asn1_get_tag(p, end, &seqLen, MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE); in GetContentInfoType()
129 end = start + seqLen; in GetContentInfoType()
130 rc = mbedtls_asn1_get_tag(p, end, &len, MBEDTLS_ASN1_OID); in GetContentInfoType()
143 static int GetContentLenOfContentInfo(unsigned char **p, const unsigned char *end, size_t *len) in GetContentLenOfContentInfo() argument
145 …return mbedtls_asn1_get_tag(p, end, len, MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_CONTEXT_SPECIFIC); in GetContentLenOfContentInfo()
148 static int ParseSignerVersion(unsigned char **p, const unsigned char *end, SignerInfo *signer) in ParseSignerVersion() argument
150 return mbedtls_asn1_get_int(p, end, &signer->version); in ParseSignerVersion()
153 static int ParseSignerIssuerAndSerialNum(unsigned char **p, const unsigned char *end, SignerInfo *s… in ParseSignerIssuerAndSerialNum() argument
158 rc = mbedtls_asn1_get_tag(p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE); in ParseSignerIssuerAndSerialNum()
[all …]
/base/hiviewdfx/hitrace/test/unittest/common/napi/
Dnapi_hitracechain.test.js61 hiTraceChain.end(traceId)
74 hiTraceChain.end(traceId)
89 hiTraceChain.end(traceId);
103 hiTraceChain.end(traceId)
115 hiTraceChain.end(traceId)
127 hiTraceChain.end(traceId)
142 hiTraceChain.end(traceId);
154 hiTraceChain.end(traceId)
169 hiTraceChain.end(traceId);
184 hiTraceChain.end(traceId);
/base/global/i18n_lite/frameworks/i18n/src/
Dstr_util.cpp106 std::string::size_type end = 0; in Split() local
109 while ((end < srcSize) && (src[end] != sep)) { in Split()
110 ++end; in Split()
112 if (end >= srcSize) { in Split()
115 dst[current++] = std::string(src, begin, end - begin); in Split()
116 ++end; // pass the sep in Split()
117 begin = end; in Split()
119 if (current < size && end > begin) { in Split()
120 dst[current++] = std::string(src, begin, end - begin); in Split()
Dmeasure_format_impl.cpp191 int end = 0; in InitMeasureFormat() local
192 while (end < unprocessedMeasureData.length() && unprocessedMeasureData[end] != PLURAL_SEP) { in InitMeasureFormat()
193 end++; in InitMeasureFormat()
195 unitCount = std::stoi(std::string(unprocessedMeasureData, 0, end)); in InitMeasureFormat()
239 int end = 0; in ParseUnits() local
243 while (end < unitsLength && unitsList[end] != MEASURE_UNIT_SEP) { in ParseUnits()
244 end++; in ParseUnits()
246 if (end >= unitsLength) { in ParseUnits()
249 units[count] = std::string(unitsList, begin, end - begin); in ParseUnits()
251 end++; in ParseUnits()
[all …]
/base/telephony/core_service/services/tel_ril/src/
Dobserver_handler.cpp30 if (iter != observerHandlerMap_.end()) { in RegObserver()
32 auto it = find(handlers.begin(), handlers.end(), handler); in RegObserver()
33 if (it == handlers.end()) { in RegObserver()
61 if (iter != observerHandlerMap_.end()) { in Remove()
63 auto it = find(handlers.begin(), handlers.end(), handler); in Remove()
64 if (it != handlers.end()) { in Remove()
75 if (iter == observerHandlerMap_.end()) { in NotifyObserver()
/base/global/i18n/frameworks/intl/src/
Dutils.cpp35 string::size_type end = src.find(sep); in Split() local
36 while (end != string::npos) { in Split()
37 dest.push_back(src.substr(begin, end - begin)); in Split()
38 begin = end + sep.size(); in Split()
39 end = src.find(sep, begin); in Split()
/base/usb/usb_manager/services/native/src/
Dusb_right_manager.cpp38 if (itMap == rightMap.end()) { in HasRight()
43 auto itVevtor = std::find(bundleNameList.begin(), bundleNameList.end(), bundleName); in HasRight()
44 if (itVevtor == bundleNameList.end()) { in HasRight()
70 if (itMap != rightMap.end()) { in AddDeviceRight()
72 auto itVevtor = std::find(v.begin(), v.end(), bundleName); in AddDeviceRight()
73 if (itVevtor != v.end()) { in AddDeviceRight()
90 if (it != rightMap.end()) { in RemoveDeviceRight()
92 auto itVevtor = std::find(v.begin(), v.end(), bundleName); in RemoveDeviceRight()
93 if (itVevtor != v.end()) { in RemoveDeviceRight()
105 if (it != rightMap.end()) { in RemoveDeviceAllRight()
/base/security/access_token/services/privacymanager/src/database/
Ddata_translator.cpp29 int64_t end = request.endTimeMillis; in TranslationIntoGenericValues() local
30 if ((begin < 0) || (end < 0) || (begin > end)) { in TranslationIntoGenericValues()
38 if (begin == 0 && end == 0) { in TranslationIntoGenericValues()
41 end = TimeUtil::GetCurrentTimestamp(); in TranslationIntoGenericValues()
47 if (end != 0) { in TranslationIntoGenericValues()
48 andGenericValues.Put(PrivacyFiledConst::FIELD_TIMESTAMP_END, end); in TranslationIntoGenericValues()
/base/security/selinux/interfaces/tools/param_check/
Dtest.cpp51 struct timeval start, end, diff; in TestLoadList() local
60 gettimeofday(&end, nullptr); in TestLoadList()
61 timersub(&end, &start, &diff); in TestLoadList()
82 gettimeofday(&end, nullptr); in TestLoadList()
83 timersub(&end, &start, &diff); in TestLoadList()
92 struct timeval start, end, diff; in TestGetContext() local
97 gettimeofday(&end, nullptr); in TestGetContext()
98 timersub(&end, &start, &diff); in TestGetContext()
108 struct timeval start, end, diff; in TestReadPara() local
119 gettimeofday(&end, nullptr); in TestReadPara()
[all …]
/base/sensors/sensor/services/sensor/src/
Dclient_info.cpp51 if (it == clientMap_.end()) { in GetSensorState()
78 if (it == clientMap_.end()) { in GetBestSensorInfo()
102 if (it == clientMap_.end()) { in OnlyCurPidSensorEnabled()
129 if (appThreadInfoItr == appThreadInfoMap_.end()) { in UpdateAppThreadInfo()
150 if (appThreadInfoItr == appThreadInfoMap_.end()) { in DestroyAppThreadInfo()
172 if (channelIt == channelMap_.end()) { in GetSensorChannelByUid()
189 if (channelIt == channelMap_.end()) { in GetSensorChannelByPid()
204 if (clientIt == clientMap_.end()) { in GetSensorChannel()
212 if (channelIt == channelMap_.end()) { in GetSensorChannel()
229 if (it == clientMap_.end()) { in UpdateSensorInfo()
[all …]
/base/powermgr/thermal_manager/services/native/src/thermal_policy/
Dthermal_policy.cpp71 for (auto cluster = msc_.begin(); cluster != msc_.end(); cluster++) { in LevelDecision()
83 for (auto iter = clusterLevelMap_.begin(); iter != clusterLevelMap_.end(); iter++) { in WriteLevel()
86 auto level = *max_element(levelList.begin(), levelList.end()); in WriteLevel()
103 …for (auto clusterPolicy = clusterPolicyMap_.begin(); clusterPolicy != clusterPolicyMap_.end(); clu… in PolicyDecision()
108 if (clusterIter != clusterLevelMap.end()) { in PolicyDecision()
134 for (auto action = vAction.begin(); action != vAction.end(); action++) { in ActionDecision()
138 if (actionIter != actionMap.end()) { in ActionDecision()
183 for (auto prop = stateMap.begin(); prop != stateMap.end(); prop++) { in StateMachineDecision()
188 if (stateIter != stateMachineMap.end()) { in StateMachineDecision()
213 …for (auto currentIter = actionFallbackSet_.begin(); currentIter != actionFallbackSet_.end(); curre… in ActionExecution()
[all …]
/base/startup/hvb/libhvb/src/cert/
Dhvb_cert.c158 static bool _decode_octets(struct hvb_buf *buf, size_t size, uint8_t **p, uint8_t *end) in _decode_octets() argument
161 if (*p + size > end || *p + size < *p) in _decode_octets()
173 static enum hvb_errno _hvb_cert_payload_parser(struct hvb_cert *cert, uint8_t **p, uint8_t *end) in _hvb_cert_payload_parser() argument
178 if (!_decode_octets(&buf, cert->salt_size, p, end)) { in _hvb_cert_payload_parser()
184 if (!_decode_octets(&buf, cert->digest_size, p, end)) { in _hvb_cert_payload_parser()
193 static enum hvb_errno _hvb_cert_signature_parser(struct hvb_cert *cert, uint8_t **p, uint8_t *end) in _hvb_cert_signature_parser() argument
199 if (!_decode_octets(&buf, cp_size, p, end)) { in _hvb_cert_signature_parser()
205 if (!_decode_octets(&buf, sign_info->pubkey_len, p, end)) { in _hvb_cert_signature_parser()
212 if (!_decode_octets(&buf, sign_info->signature_len, p, end)) { in _hvb_cert_signature_parser()
227 uint8_t *end = p + cert_buf->size; in hvb_cert_parser() local
[all …]
/base/telephony/ril_adapter/services/vendor/src/
Dvendor_util.c166 char *end = NULL; in NextInt() local
180 *out = (int32_t)strtol(ret, &end, HRIL_DEC); in NextInt()
181 if (ret == end) { in NextInt()
191 char *end = NULL; in NextInt64() local
205 *out = (int64_t)strtoll(ret, &end, HRIL_DEC); in NextInt64()
206 if (ret == end) { in NextInt64()
216 char *end = NULL; in NextIntNotSkipNextComma() local
227 *out = (int32_t)strtol(ret, &end, HRIL_DEC); in NextIntNotSkipNextComma()
228 if (ret == end) { in NextIntNotSkipNextComma()
238 char *end = NULL; in NextIntByRightBracket() local
[all …]
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_policy_set.cpp67 auto iter = std::find_if(permStateList_.begin(), permStateList_.end(), in Update()
71 if (iter != permStateList_.end()) { in Update()
106 for (auto iter = permStateList.begin(); iter != permStateList.end(); iter++) { in MergePermissionStateFull()
167 permList.assign(permStateList_.begin(), permStateList_.end()); in GetPermissionStateFulls()
194 auto iter = std::find_if(permStateList_.begin(), permStateList_.end(), in UpdatePermissionStatus()
198 if (iter != permStateList_.end()) { in UpdatePermissionStatus()
271 for (auto iter = state.resDeviceID.begin(); iter != state.resDeviceID.end(); iter++) { in PermStateFullToString()
274 if (iter != (state.resDeviceID.end() - 1)) { in PermStateFullToString()
281 for (auto iter = state.grantStatus.begin(); iter != state.grantStatus.end(); iter++) { in PermStateFullToString()
284 if (iter != (state.grantStatus.end() - 1)) { in PermStateFullToString()
[all …]
/base/telephony/call_manager/services/call/src/
Dcall_object_manager.cpp35 while (it != callObjectPtrList_.end()) { in ~CallObjectManager()
48 for (; it != callObjectPtrList_.end(); ++it) { in AddOneCallObject()
69 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in DeleteOneCallObject()
101 for (; it != callObjectPtrList_.end(); ++it) { in GetOneCallObject()
119 for (; it != callObjectPtrList_.end(); ++it) { in GetOneCallObject()
133 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in HasNewCall()
150 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in IsNewCallAllowedCreate()
169 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in GetCarrierCallList()
182 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in HasRingingMaximum()
199 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in HasDialingMaximum()
[all …]
/base/hiviewdfx/hiview/base/
Devent_dispatcher.cpp31 while (channelMapperIter != channelMapper_.end()) { in ClearInvalidListeners()
34 while (listenerIter != listeners.end()) { in ClearInvalidListeners()
48 if (types_.find(event.messageType_) == types_.end()) { in DispatchEvent()
64 if (std::any_of(listenerInfo.begin(), listenerInfo.end(), in DispatchEvent()
66 return ((event.eventId_ >= range.begin) && (event.eventId_ <= range.end)); in DispatchEvent()
84 if (std::any_of(listenerInfo.begin(), listenerInfo.end(), in DispatchEvent()
86 return ((event.eventId_ >= range.begin) && (event.eventId_ <= range.end)); in DispatchEvent()

12345678910>>...38