/system/core/storaged/tools/ |
D | ranker.py | 95 uids = {} 107 if task in uids[cur_uid][1]: 108 task_io = uids[cur_uid][1][task] 115 uids[cur_uid][1][task] = task_io 125 if uid in uids and args.combine: 126 uid_io = uids[uid][0] 129 uids[uid][0] = uid_io 132 uids[uid] = [uid_io] 134 uids[uid].append({}) 137 return uids [all …]
|
/system/extras/simpleperf/ |
D | RecordFilter.cpp | 48 if (auto uids = ParseUintVector<uid_t>(*value.str_value); uids) { in ParseOptions() local 49 AddUids(uids.value(), exclude); in ParseOptions() 82 void RecordFilter::AddUids(const std::set<uid_t>& uids, bool exclude) { in AddUids() argument 85 cond.uids.insert(uids.begin(), uids.end()); in AddUids() 125 if (!condition.uids.empty()) { in CheckCondition() 127 if (condition.uids.count(uid_value.value()) == 1) { in CheckCondition()
|
D | RecordFilter.h | 56 std::set<uid_t> uids; member 70 void AddUids(const std::set<uid_t>& uids, bool exclude);
|
/system/core/storaged/ |
D | storaged_utils.cpp | 64 void sort_running_uids_info(std::vector<UidInfo> &uids) { in sort_running_uids_info() argument 65 std::sort(uids.begin(), uids.end(), cmp_uid_info); in sort_running_uids_info() 69 void log_console_running_uids_info(const std::vector<UidInfo>& uids, bool flag_dump_task) { in log_console_running_uids_info() argument 73 for (const auto& uid : uids) { in log_console_running_uids_info()
|
/system/netd/server/ |
D | TrafficController.h | 95 const std::vector<int32_t>& uids); 102 netdutils::Status replaceRulesInMap(UidOwnerMatchType match, const std::vector<int32_t>& uids) 105 netdutils::Status addUidInterfaceRules(const int ifIndex, const std::vector<int32_t>& uids) 107 netdutils::Status removeUidInterfaceRules(const std::vector<int32_t>& uids) EXCLUDES(mMutex); 118 void setPermissionForUids(int permission, const std::vector<uid_t>& uids) EXCLUDES(mMutex);
|
D | FirewallController.cpp | 301 bool isAllowlist, const std::vector<int32_t>& uids) { in makeUidRules() argument 307 for (auto uid : uids) { in makeUidRules() 338 for (auto uid : uids) { in makeUidRules() 355 const std::vector<int32_t>& uids) { in replaceUidChain() argument 357 return gCtls->trafficCtrl.replaceUidOwnerMap(name, isAllowlist, uids); in replaceUidChain() 359 std::string commands4 = makeUidRules(V4, name.c_str(), isAllowlist, uids); in replaceUidChain() 360 std::string commands6 = makeUidRules(V6, name.c_str(), isAllowlist, uids); in replaceUidChain()
|
D | NetdNativeService.h | 41 const std::vector<int32_t>& uids, bool* ret) override; 49 const std::vector<int32_t>& uids) override; 50 binder::Status firewallRemoveUidInterfaceRules(const std::vector<int32_t>& uids) override; 74 const std::vector<UidRangeParcel>& uids) override; 76 const std::vector<UidRangeParcel>& uids) override; 82 const std::vector<UidRangeParcel>& uids) override; 102 const std::vector<int32_t>& uids) override; 103 binder::Status networkClearPermissionForUser(const std::vector<int32_t>& uids) override; 111 const std::vector<int32_t>& uids) override; 114 binder::Status socketDestroy(const std::vector<UidRangeParcel>& uids,
|
D | FirewallControllerTest.cpp | 188 std::vector<int32_t> uids = { 10023, 10059, 10124, 10111, 110122, 210153, 210024 }; in TEST_F() local 189 EXPECT_EQ(expected, makeUidRules(V6, "FW_allowchain", true, uids)); in TEST_F() 204 std::vector<int32_t> uids = { 10023, 10059, 10124 }; in TEST_F() local 205 EXPECT_EQ(expected, makeUidRules(V4, "FW_denychain", false, uids)); in TEST_F()
|
D | NetworkController.h | 117 void setPermissionForUsers(Permission permission, const std::vector<uid_t>& uids); 146 void allowProtect(const std::vector<uid_t>& uids); 147 void denyProtect(const std::vector<uid_t>& uids);
|
D | TrafficControllerTest.cpp | 197 void checkEachUidValue(const std::vector<int32_t>& uids, UidOwnerMatchType match) { in checkEachUidValue() argument 198 for (uint32_t uid : uids) { in checkEachUidValue() 203 std::set<uint32_t> uidSet(uids.begin(), uids.end()); in checkEachUidValue() 212 void checkUidMapReplace(const std::string& name, const std::vector<int32_t>& uids, in checkUidMapReplace() argument 215 EXPECT_EQ(0, mTc.replaceUidOwnerMap(name, isAllowlist, uids)); in checkUidMapReplace() 216 checkEachUidValue(uids, match); in checkUidMapReplace() 219 EXPECT_EQ(0, mTc.replaceUidOwnerMap(name, isAllowlist, uids)); in checkUidMapReplace() 220 checkEachUidValue(uids, match); in checkUidMapReplace() 603 std::vector<int32_t> uids = {TEST_UID, TEST_UID2, TEST_UID3}; in TEST_F() local 604 checkUidMapReplace("fw_dozable", uids, DOZABLE_MATCH); in TEST_F() [all …]
|
D | NetdNativeService.cpp | 275 const std::vector<int32_t>& uids, in firewallReplaceUidChain() argument 278 int err = gCtls->firewallCtrl.replaceUidChain(chainName, isAllowlist, uids); in firewallReplaceUidChain() 451 binder::Status NetdNativeService::socketDestroy(const std::vector<UidRangeParcel>& uids, in socketDestroy() argument 461 UidRanges uidRanges(uids); in socketDestroy() 1150 const std::vector<int32_t>& uids) { in networkSetPermissionForUser() argument 1152 gCtls->netCtrl.setPermissionForUsers(convertPermission(permission), intsToUids(uids)); in networkSetPermissionForUser() 1156 binder::Status NetdNativeService::networkClearPermissionForUser(const std::vector<int32_t>& uids) { in networkClearPermissionForUser() argument 1159 gCtls->netCtrl.setPermissionForUsers(permission, intsToUids(uids)); in networkClearPermissionForUser() 1165 std::vector<uid_t> uids = {(uid_t) uid}; in networkSetProtectAllow() local 1166 gCtls->netCtrl.allowProtect(uids); in networkSetProtectAllow() [all …]
|
D | TrafficController.cpp | 599 const std::vector<int32_t>& uids) { in replaceRulesInMap() argument 601 std::set<int32_t> uidSet(uids.begin(), uids.end()); in replaceRulesInMap() 616 for (auto uid : uids) { in replaceRulesInMap() 651 const std::vector<int32_t>& uids) { in replaceUidOwnerMap() argument 656 res = replaceRulesInMap(DOZABLE_MATCH, uids); in replaceUidOwnerMap() 658 res = replaceRulesInMap(STANDBY_MATCH, uids); in replaceUidOwnerMap() 660 res = replaceRulesInMap(POWERSAVE_MATCH, uids); in replaceUidOwnerMap() 662 res = replaceRulesInMap(RESTRICTED_MATCH, uids); in replaceUidOwnerMap() 749 void TrafficController::setPermissionForUids(int permission, const std::vector<uid_t>& uids) { in setPermissionForUids() argument 752 for (uid_t uid : uids) { in setPermissionForUids() [all …]
|
D | NetworkController.cpp | 569 const std::vector<uid_t>& uids) { in setPermissionForUsers() argument 571 for (uid_t uid : uids) { in setPermissionForUsers() 712 void NetworkController::allowProtect(const std::vector<uid_t>& uids) { in allowProtect() argument 714 mProtectableUsers.insert(uids.begin(), uids.end()); in allowProtect() 717 void NetworkController::denyProtect(const std::vector<uid_t>& uids) { in denyProtect() argument 719 for (uid_t uid : uids) { in denyProtect()
|
/system/core/storaged/include/ |
D | storaged_utils.h | 37 void sort_running_uids_info(std::vector<UidInfo> &uids); 40 void log_console_running_uids_info(const std::vector<UidInfo>& uids, bool flag_dump_task);
|
/system/netd/server/aidl_api/netd_aidl_interface/2/android/net/ |
D | INetd.aidl | 21 …oolean firewallReplaceUidChain(in @utf8InCpp String chainName, boolean isWhitelist, in int[] uids); in firewallReplaceUidChain() argument 89 void networkSetPermissionForUser(int permission, in int[] uids); in networkSetPermissionForUser() argument 90 void networkClearPermissionForUser(in int[] uids); in networkClearPermissionForUser() argument 91 void trafficSetNetPermForUids(int permission, in int[] uids); in trafficSetNetPermForUids() argument 110 void firewallAddUidInterfaceRules(in @utf8InCpp String ifName, in int[] uids); in firewallAddUidInterfaceRules() argument 111 void firewallRemoveUidInterfaceRules(in int[] uids); in firewallRemoveUidInterfaceRules() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/3/android/net/ |
D | INetd.aidl | 22 …oolean firewallReplaceUidChain(in @utf8InCpp String chainName, boolean isWhitelist, in int[] uids); in firewallReplaceUidChain() argument 90 void networkSetPermissionForUser(int permission, in int[] uids); in networkSetPermissionForUser() argument 91 void networkClearPermissionForUser(in int[] uids); in networkClearPermissionForUser() argument 92 void trafficSetNetPermForUids(int permission, in int[] uids); in trafficSetNetPermForUids() argument 111 void firewallAddUidInterfaceRules(in @utf8InCpp String ifName, in int[] uids); in firewallAddUidInterfaceRules() argument 112 void firewallRemoveUidInterfaceRules(in int[] uids); in firewallRemoveUidInterfaceRules() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/4/android/net/ |
D | INetd.aidl | 22 …oolean firewallReplaceUidChain(in @utf8InCpp String chainName, boolean isWhitelist, in int[] uids); in firewallReplaceUidChain() argument 90 void networkSetPermissionForUser(int permission, in int[] uids); in networkSetPermissionForUser() argument 91 void networkClearPermissionForUser(in int[] uids); in networkClearPermissionForUser() argument 92 void trafficSetNetPermForUids(int permission, in int[] uids); in trafficSetNetPermForUids() argument 111 void firewallAddUidInterfaceRules(in @utf8InCpp String ifName, in int[] uids); in firewallAddUidInterfaceRules() argument 112 void firewallRemoveUidInterfaceRules(in int[] uids); in firewallRemoveUidInterfaceRules() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/7/android/net/ |
D | INetd.aidl | 38 …oolean firewallReplaceUidChain(in @utf8InCpp String chainName, boolean isAllowlist, in int[] uids); in firewallReplaceUidChain() argument 112 void networkSetPermissionForUser(int permission, in int[] uids); in networkSetPermissionForUser() argument 113 void networkClearPermissionForUser(in int[] uids); in networkClearPermissionForUser() argument 114 void trafficSetNetPermForUids(int permission, in int[] uids); in trafficSetNetPermForUids() argument 133 void firewallAddUidInterfaceRules(in @utf8InCpp String ifName, in int[] uids); in firewallAddUidInterfaceRules() argument 134 void firewallRemoveUidInterfaceRules(in int[] uids); in firewallRemoveUidInterfaceRules() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/6/android/net/ |
D | INetd.aidl | 38 …oolean firewallReplaceUidChain(in @utf8InCpp String chainName, boolean isAllowlist, in int[] uids); in firewallReplaceUidChain() argument 112 void networkSetPermissionForUser(int permission, in int[] uids); in networkSetPermissionForUser() argument 113 void networkClearPermissionForUser(in int[] uids); in networkClearPermissionForUser() argument 114 void trafficSetNetPermForUids(int permission, in int[] uids); in trafficSetNetPermForUids() argument 133 void firewallAddUidInterfaceRules(in @utf8InCpp String ifName, in int[] uids); in firewallAddUidInterfaceRules() argument 134 void firewallRemoveUidInterfaceRules(in int[] uids); in firewallRemoveUidInterfaceRules() argument
|
/system/netd/server/binder/android/net/ |
D | INetd.aidl | 52 in int[] uids); in firewallReplaceUidChain() argument 959 void networkSetPermissionForUser(int permission, in int[] uids); in networkSetPermissionForUser() argument 966 void networkClearPermissionForUser(in int[] uids); in networkClearPermissionForUser() argument 977 void trafficSetNetPermForUids(int permission, in int[] uids); in trafficSetNetPermForUids() argument 1206 void firewallAddUidInterfaceRules(in @utf8InCpp String ifName, in int[] uids); in firewallAddUidInterfaceRules() argument 1218 void firewallRemoveUidInterfaceRules(in int[] uids); in firewallRemoveUidInterfaceRules() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/current/android/net/ |
D | INetd.aidl | 38 …oolean firewallReplaceUidChain(in @utf8InCpp String chainName, boolean isAllowlist, in int[] uids); in firewallReplaceUidChain() argument 112 void networkSetPermissionForUser(int permission, in int[] uids); in networkSetPermissionForUser() argument 113 void networkClearPermissionForUser(in int[] uids); in networkClearPermissionForUser() argument 114 void trafficSetNetPermForUids(int permission, in int[] uids); in trafficSetNetPermForUids() argument 133 void firewallAddUidInterfaceRules(in @utf8InCpp String ifName, in int[] uids); in firewallAddUidInterfaceRules() argument 134 void firewallRemoveUidInterfaceRules(in int[] uids); in firewallRemoveUidInterfaceRules() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/5/android/net/ |
D | INetd.aidl | 22 …oolean firewallReplaceUidChain(in @utf8InCpp String chainName, boolean isAllowlist, in int[] uids); in firewallReplaceUidChain() argument 90 void networkSetPermissionForUser(int permission, in int[] uids); in networkSetPermissionForUser() argument 91 void networkClearPermissionForUser(in int[] uids); in networkClearPermissionForUser() argument 92 void trafficSetNetPermForUids(int permission, in int[] uids); in trafficSetNetPermForUids() argument 111 void firewallAddUidInterfaceRules(in @utf8InCpp String ifName, in int[] uids); in firewallAddUidInterfaceRules() argument 112 void firewallRemoveUidInterfaceRules(in int[] uids); in firewallRemoveUidInterfaceRules() argument
|
/system/core/libstats/push_compat/ |
D | StatsEventCompat.cpp | 162 void StatsEventCompat::writeAttributionChain(const int32_t* uids, size_t numUids, in writeAttributionChain() argument 165 mAStatsEventApi.writeAttributionChain(mEventR, (const uint32_t*)uids, tags.data(), in writeAttributionChain() 171 mEventQ << uids[i]; in writeAttributionChain()
|
/system/netd/server/aidl_api/netd_aidl_interface/1/android/net/ |
D | INetd.aidl | 4 …oolean firewallReplaceUidChain(in @utf8InCpp String chainName, boolean isWhitelist, in int[] uids); in firewallReplaceUidChain() argument 72 void networkSetPermissionForUser(int permission, in int[] uids); in networkSetPermissionForUser() argument 73 void networkClearPermissionForUser(in int[] uids); in networkClearPermissionForUser() argument 74 void trafficSetNetPermForUids(int permission, in int[] uids); in trafficSetNetPermForUids() argument
|
/system/core/libstats/socket_lazy/ |
D | libstatssocket_lazy.cpp | 182 void AStatsEvent_writeAttributionChain(AStatsEvent* event, const uint32_t* uids, in AStatsEvent_writeAttributionChain() argument 184 INVOKE_METHOD(AStatsEvent_writeAttributionChain, event, uids, tags, numNodes); in AStatsEvent_writeAttributionChain()
|