Home
last modified time | relevance | path

Searched refs:appStrUids (Results 1 – 6 of 6) sorted by relevance

/system/netd/server/
DTrafficControllerTest.cpp222 void expectUidOwnerMapValues(const std::vector<std::string>& appStrUids, uint8_t expectedRule, in expectUidOwnerMapValues() argument
224 for (const std::string& strUid : appStrUids) { in expectUidOwnerMapValues()
663 std::vector<std::string> appStrUids = {"1000", "1001", "10012"}; in TEST_F() local
664 ASSERT_TRUE(isOk(mTc.updateUidOwnerMap(appStrUids, BandwidthController::IptJumpReject, in TEST_F()
666 expectUidOwnerMapValues(appStrUids, PENALTY_BOX_MATCH, 0); in TEST_F()
667 ASSERT_TRUE(isOk(mTc.updateUidOwnerMap(appStrUids, BandwidthController::IptJumpReject, in TEST_F()
675 std::vector<std::string> appStrUids = {"1000", "1001", "10012"}; in TEST_F() local
676 ASSERT_TRUE(isOk(mTc.updateUidOwnerMap(appStrUids, BandwidthController::IptJumpReturn, in TEST_F()
678 expectUidOwnerMapValues(appStrUids, HAPPY_BOX_MATCH, 0); in TEST_F()
679 ASSERT_TRUE(isOk(mTc.updateUidOwnerMap(appStrUids, BandwidthController::IptJumpReturn, in TEST_F()
[all …]
DBandwidthController.h99 int manipulateSpecialApps(const std::vector<std::string>& appStrUids, const std::string& chain,
DBandwidthController.cpp395 int BandwidthController::manipulateSpecialApps(const std::vector<std::string>& appStrUids, in manipulateSpecialApps() argument
399 Status status = gCtls->trafficCtrl.updateUidOwnerMap(appStrUids, jumpHandling, op); in manipulateSpecialApps()
406 for (const auto& appStrUid : appStrUids) { in manipulateSpecialApps()
DTrafficController.h115 netdutils::Status updateUidOwnerMap(const std::vector<std::string>& appStrUids,
DNetdNativeService.cpp321 std::vector<std::string> appStrUids = {std::to_string(abs(uid))}; in bandwidthAddNaughtyApp() local
322 int res = gCtls->bandwidthCtrl.addNaughtyApps(appStrUids); in bandwidthAddNaughtyApp()
328 std::vector<std::string> appStrUids = {std::to_string(abs(uid))}; in bandwidthRemoveNaughtyApp() local
329 int res = gCtls->bandwidthCtrl.removeNaughtyApps(appStrUids); in bandwidthRemoveNaughtyApp()
335 std::vector<std::string> appStrUids = {std::to_string(abs(uid))}; in bandwidthAddNiceApp() local
336 int res = gCtls->bandwidthCtrl.addNiceApps(appStrUids); in bandwidthAddNiceApp()
342 std::vector<std::string> appStrUids = {std::to_string(abs(uid))}; in bandwidthRemoveNiceApp() local
343 int res = gCtls->bandwidthCtrl.removeNiceApps(appStrUids); in bandwidthRemoveNiceApp()
DTrafficController.cpp588 Status TrafficController::updateUidOwnerMap(const std::vector<std::string>& appStrUids, in updateUidOwnerMap() argument
597 for (const auto& appStrUid : appStrUids) { in updateUidOwnerMap()