/foundation/resourceschedule/memmgr/test/unittest/phone/ |
H A D | reclaim_strategy_manager_test.cpp | 68 int score = 100; in HWTEST_F() local 69 std::shared_ptr<ReclaimParam> para = std::make_shared<ReclaimParam>(pid, appId, appName, userId, score, in HWTEST_F() 82 int score = 100; in HWTEST_F() local 83 std::shared_ptr<ReclaimParam> para = std::make_shared<ReclaimParam>(pid, appId, appName, userId, score, in HWTEST_F() 102 int score = 100; in HWTEST_F() local 103 ReclaimStrategyManager::GetInstance().NotifyAccountPriorityChanged(userId, score); in HWTEST_F() 107 std::shared_ptr<ReclaimParam> para = std::make_shared<ReclaimParam>(pid, appId, appName, userId, score, in HWTEST_F() 114 ReclaimStrategyManager::GetInstance().NotifyAccountPriorityChanged(userId, score + score); in HWTEST_F() 116 EXPECT_EQ(memcg->score_, score in HWTEST_F() 133 int score = 100; HWTEST_F() local 157 int score = RECLAIM_SCORE_MIN - 1; HWTEST_F() local 181 int score = 100; HWTEST_F() local 198 int score = 100; HWTEST_F() local 215 int score = 100; HWTEST_F() local [all...] |
H A D | user_memcg_test.cpp | 82 int score = 0; in HWTEST_F() local 83 memcg->SetScore(score); in HWTEST_F() 84 EXPECT_EQ(memcg->score_, score); in HWTEST_F() 85 score = -1; in HWTEST_F() 86 memcg->SetScore(score); in HWTEST_F() 87 EXPECT_EQ(memcg->score_, score); in HWTEST_F() 88 score = 2000; in HWTEST_F() 89 memcg->SetScore(score); in HWTEST_F() 90 EXPECT_EQ(memcg->score_, score); in HWTEST_F() 183 int score in HWTEST_F() local [all...] |
H A D | memcg_test.cpp | 78 int score = 0; in HWTEST_F() local 79 memcg->SetScore(score); in HWTEST_F() 80 EXPECT_EQ(memcg->score_, score); in HWTEST_F() 81 score = -1; in HWTEST_F() 82 memcg->SetScore(score); in HWTEST_F() 83 EXPECT_EQ(memcg->score_, score); in HWTEST_F() 84 score = 2000; in HWTEST_F() 85 memcg->SetScore(score); in HWTEST_F() 86 EXPECT_EQ(memcg->score_, score); in HWTEST_F() 139 int score in HWTEST_F() local [all...] |
H A D | low_memory_killer_test.cpp | 87 int score = 100; in HWTEST_F() local 88 std::shared_ptr<ReclaimParam> para = std::make_shared<ReclaimParam>(pid, appId, appName, userId, score, in HWTEST_F()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta/ |
H A D | sta_saved_device_appraisal.cpp | 66 int score = 0; in DeviceAppraisals() local 67 AppraiseDeviceQuality(score, scanInfo, device, info, device.connFailedCount >= MAX_RETRY_COUNT); in DeviceAppraisals() 68 WIFI_LOGD("The device networkId:%{public}d ssid:%{public}s score:%{public}d rssi:%{public}d.", in DeviceAppraisals() 69 device.networkId, SsidAnonymize(scanInfo.ssid).c_str(), score, scanInfo.rssi); in DeviceAppraisals() 70 if (CheckHigherPriority(score, highestScore, scanInfo.rssi, scanInfoElected.rssi)) { in DeviceAppraisals() 71 highestScore = score; in DeviceAppraisals() 120 void StaSavedDeviceAppraisal::AppraiseDeviceQuality(int &score, InterScanInfo &scanInfo, in AppraiseDeviceQuality() argument 127 /* Signal strength score */ in AppraiseDeviceQuality() 128 score += signalBaseScore + signalStrength * signalScorePerLevel; in AppraiseDeviceQuality() 129 WIFI_LOGD("signalstrength score i in AppraiseDeviceQuality() 217 CheckHigherPriority(int score, int lastScore, int rssi, int selectedRssi) CheckHigherPriority() argument [all...] |
H A D | sta_saved_device_appraisal.h | 61 * @param score - score points.(out) 62 * @param flip - flip the score when failed cout > MAX_RETRY_COUNT 64 void AppraiseDeviceQuality(int &score, InterScanInfo &scanInfo, WifiDeviceConfig &device, 86 * @param score(int) 92 bool CheckHigherPriority(int score, int lastScore, int rssi, int selectedRssi);
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/network_select/ |
H A D | wifi_comparator_impl.cpp | 37 /* if candidates is empty, it is unnecessary to score the candidate */ in GetBestCandidates() 42 std::vector<ScoreResult> bestNetworkScoreResults; //score records of bestNetworkCandidates. in GetBestCandidates() 52 * if current scorer does not score best networkCandidate, we should score the bestCandidate in GetBestCandidates() 58 scorer->DoScore(*networkCandidate, scoreResult); // score current networkCandidate. in GetBestCandidates() 59 if (scoreResult.score > bestNetworkScoreResults.at(j).score) { in GetBestCandidates() 61 * if the score of current networkCandidate is better than the best networkCandidate, it means we found in GetBestCandidates() 63 * vector for best networkCandidates and score records, then continue for the next network candidate . in GetBestCandidates() 70 } else if (scoreResult.score < bestNetworkScoreResult in GetBestCandidates() [all...] |
H A D | wifi_scorer_impl.cpp | 134 scoreResult.score = TOP_TIME_BASE_SCORE + rssiBaseScore + savedNetworkAward; in DoScore() 137 scoreResult.score = rssiBaseScore + savedNetworkAward; in DoScore() 139 scoreResult.score += SECURITY_AWARD_SCORE; in DoScore() 270 double score = 0; in Score() local 280 score += HISTORY_NETWORK_STATUS_WEIGHTED_SCORE[i] * vNetworkStatusHistory[i]; in Score() 282 return score; in Score()
|
/foundation/resourceschedule/memmgr/services/memmgrservice/src/reclaim_strategy_manager/ |
H A D | memcg.cpp | 173 void Memcg::SetScore(int score) in SetScore() argument 175 score_ = score; in SetScore() 206 // write score in SetScoreAndReclaimRatiosToKernel() 214 int score = 0; in SetScoreAndReclaimRatiosToKernel() local 218 if (!ReadScoreAndReclaimRatiosFromKernel_(score, mem2zramRatio, zram2ufsRatio, refaultThreshold)) { in SetScoreAndReclaimRatiosToKernel() 221 ret = ret && (score_ == score); in SetScoreAndReclaimRatiosToKernel() 226 score_ = score; in SetScoreAndReclaimRatiosToKernel() 260 bool Memcg::ReadScoreAndReclaimRatiosFromKernel_(int& score, unsigned int& mem2zramRatio, in ReadScoreAndReclaimRatiosFromKernel_() argument 270 std::regex re("memcg score:[[:s:]]*([[:d:]]+)[[:s:]]*" in ReadScoreAndReclaimRatiosFromKernel_() 280 score in ReadScoreAndReclaimRatiosFromKernel_() [all...] |
H A D | memcg_mgr.cpp | 104 bool MemcgMgr::UpdateMemcgScoreAndReclaimRatios(unsigned int userId, int score, const ReclaimRatios& ratios) in UpdateMemcgScoreAndReclaimRatios() argument 108 HILOGI("account %{public}u not exist. cannot update score and ratios", userId); in UpdateMemcgScoreAndReclaimRatios() 111 HILOGI("update reclaim ratios userId=%{public}u score=%{public}d, %{public}s", in UpdateMemcgScoreAndReclaimRatios() 112 userId, score, ratios.ToString().c_str()); in UpdateMemcgScoreAndReclaimRatios() 113 memcg->SetScore(score); in UpdateMemcgScoreAndReclaimRatios()
|
H A D | reclaim_strategy_manager.cpp | 201 HILOGI("UpdateMemcgScoreAndReclaimRatios %{public}s, userId=%{public}d score=%{public}d %{public}s", in HandleAccountPriorityChanged_() 207 bool ReclaimStrategyManager::GetReclaimRatiosByScore_(int score, ReclaimRatios& ratios) in GetReclaimRatiosByScore_() argument 213 if ((*i)->GetMinScore() <= score && (*i)->GetMaxScore() >= score) { in GetReclaimRatiosByScore_()
|
/foundation/communication/wifi/wifi/frameworks/native/src/ |
H A D | network_selection.cpp | 38 scoreMsg << scorerName << " : " << std::fixed << std::setprecision(precision) << score; in ToString() 160 scoreResult.score = Score(networkCandidate); 178 for (auto &score : scorers) { 179 if (score) { 181 score->DoScore(networkCandidate, subScoreResult); 183 scoreResult.score += subScoreResult.score;
|
/foundation/ai/intelligent_voice_framework/utils/ |
H A D | string_util.h | 82 // warning -- local variable 'score' declared not subsequently referenced is false alarm, ignore in Float2String() 83 char score[100] = {'\0'}; //lint !e529 in Float2String() local 84 if (sprintf_s(score, sizeof(score), "%.*f", precision, arg) == -1) { in Float2String() 88 return std::string(score); in Float2String()
|
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/ |
H A D | sta_saved_device_appraisal_test.cpp | 219 int score = 1; in AppraiseDeviceQualitySuccess1() local 232 pStaSavedDeviceAppraisal->AppraiseDeviceQuality(score, scanInfo, deviceConfig, info, false); in AppraiseDeviceQualitySuccess1() 237 int score = 1; in AppraiseDeviceQualitySuccess2() local 250 pStaSavedDeviceAppraisal->AppraiseDeviceQuality(score, scanInfo, deviceConfig, info, false); in AppraiseDeviceQualitySuccess2() 255 int score = 1; in AppraiseDeviceQualitySuccess3() local 268 pStaSavedDeviceAppraisal->AppraiseDeviceQuality(score, scanInfo, deviceConfig, info, false); in AppraiseDeviceQualitySuccess3() 273 int score = 1; in AppraiseDeviceQualitySuccess4() local 287 pStaSavedDeviceAppraisal->AppraiseDeviceQuality(score, scanInfo, deviceConfig, info, false); in AppraiseDeviceQualitySuccess4() 291 pStaSavedDeviceAppraisal->AppraiseDeviceQuality(score, scanInfo, deviceConfig, info, false); in AppraiseDeviceQualitySuccess4() 296 pStaSavedDeviceAppraisal->AppraiseDeviceQuality(score, scanInf in AppraiseDeviceQualitySuccess4() [all...] |
/foundation/multimedia/player_framework/services/services/factory/ |
H A D | engine_factory_repo.cpp | 134 int32_t score = factory->Score(scene, appUid, uri); in GetEngineFactory() local 135 if (maxScore < score) { in GetEngineFactory() 136 maxScore = score; in GetEngineFactory() 144 MEDIA_LOGD("Selected factory: 0x%{public}06" PRIXPTR ", score: %{public}d," in GetEngineFactory()
|
/foundation/resourceschedule/memmgr/services/memmgrservice/include/reclaim_strategy_manager/ |
H A D | reclaim_param.h | 52 ReclaimParam(pid_t pid, int bundleUid, std::string bundleName, int accountId, int score, AppAction action) in ReclaimParam() argument 57 score_(score), in ReclaimParam() 75 + " score:" + std::to_string(score_) in ToString()
|
H A D | memcg.h | 95 void SetScore(int score); 103 bool ReadScoreAndReclaimRatiosFromKernel_(int& score, unsigned int& mem2zramRatio, unsigned int& zram2ufsRatio,
|
H A D | memcg_mgr.h | 40 bool UpdateMemcgScoreAndReclaimRatios(unsigned int userId, int score, const ReclaimRatios& ratios);
|
H A D | reclaim_strategy_manager.h | 56 bool GetReclaimRatiosByScore_(int score, ReclaimRatios& ratios);
|
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/include/ |
H A D | lnn_lane_score.h | 37 int32_t score; member
|
/foundation/arkui/ace_engine/frameworks/core/components/rating/ |
H A D | render_rating.cpp | 285 // fire current score via change event when ENTER key is clicked, whether the score changes or not in HandleFocusEvent() 524 void RenderRating::ConstrainScore(double& score, double lowerBoundary, double upperBoundary) in ConstrainScore() argument 526 if (GreatOrEqual(score, upperBoundary)) { in ConstrainScore() 527 score = upperBoundary; in ConstrainScore() 529 if (LessOrEqual(score, lowerBoundary)) { in ConstrainScore() 530 score = lowerBoundary; in ConstrainScore()
|
H A D | render_rating.h | 156 static void ConstrainScore(double& score, double lowerBoundary, double upperBoundary);
|
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/ |
H A D | lnn_select_rule.c | 371 int32_t score = LnnGetCurrChannelScore(channel); in GetLinkedChannelScore() local 372 LNN_LOGI(LNN_LANE, "current channel=%{public}d, score=%{public}d", channel, score); in GetLinkedChannelScore() 373 if (score <= 0) { in GetLinkedChannelScore() 374 score = LNN_LINK_DEFAULT_SCORE; in GetLinkedChannelScore() 376 return score; in GetLinkedChannelScore()
|
/foundation/communication/wifi/wifi/frameworks/native/interfaces/ |
H A D | network_selection.h | 33 double score; member 36 ScoreResult() : score(0) {} in ScoreResult()
|
/foundation/communication/dsoftbus/interfaces/kits/transport/ |
H A D | session.h | 179 int32_t score; /**< Wi-Fi channel score */ member
|