/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/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()
|
D | storaged_uid_monitor.cpp | 120 void get_uid_names(const vector<int>& uids, const vector<std::string*>& uid_names) in get_uid_names() argument 136 binder::Status status = package_mgr->getNamesForUids(uids, &names); in get_uid_names() 164 vector<int> uids; in get_uid_io_stats_locked() local 177 uids.push_back(u.uid); in get_uid_io_stats_locked() 192 if (!uids.empty() && refresh_uid_names) { in get_uid_io_stats_locked() 193 get_uid_names(uids, uid_names); in get_uid_io_stats_locked()
|
/system/netd/server/ |
D | TrafficController.h | 101 const std::vector<int32_t>& uids); 108 netdutils::Status replaceRulesInMap(UidOwnerMatchType match, const std::vector<int32_t>& uids) 111 netdutils::Status addUidInterfaceRules(const int ifIndex, const std::vector<int32_t>& uids) 113 netdutils::Status removeUidInterfaceRules(const std::vector<int32_t>& uids) EXCLUDES(mMutex); 124 void setPermissionForUids(int permission, const std::vector<uid_t>& uids) EXCLUDES(mMutex);
|
D | FirewallController.cpp | 294 bool isAllowlist, const std::vector<int32_t>& uids) { in makeUidRules() argument 300 for (auto uid : uids) { in makeUidRules() 331 for (auto uid : uids) { in makeUidRules() 348 const std::vector<int32_t>& uids) { in replaceUidChain() argument 350 return gCtls->trafficCtrl.replaceUidOwnerMap(name, isAllowlist, uids); in replaceUidChain() 352 std::string commands4 = makeUidRules(V4, name.c_str(), isAllowlist, uids); in replaceUidChain() 353 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; 73 const std::vector<UidRangeParcel>& uids) override; 75 const std::vector<UidRangeParcel>& uids) override; 77 const std::vector<UidRangeParcel>& uids) override; 97 const std::vector<int32_t>& uids) override; 98 binder::Status networkClearPermissionForUser(const std::vector<int32_t>& uids) override; 106 const std::vector<int32_t>& uids) override; 109 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 | 114 void setPermissionForUsers(Permission permission, const std::vector<uid_t>& uids); 141 void allowProtect(const std::vector<uid_t>& uids); 142 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() 644 std::vector<int32_t> uids = {TEST_UID, TEST_UID2, TEST_UID3}; in TEST_F() local 645 checkUidMapReplace("fw_dozable", uids, DOZABLE_MATCH); in TEST_F() [all …]
|
D | NetdNativeService.cpp | 272 const std::vector<int32_t>& uids, in firewallReplaceUidChain() argument 275 int err = gCtls->firewallCtrl.replaceUidChain(chainName, isAllowlist, uids); in firewallReplaceUidChain() 413 binder::Status NetdNativeService::socketDestroy(const std::vector<UidRangeParcel>& uids, in socketDestroy() argument 423 UidRanges uidRanges(uids); in socketDestroy() 1112 const std::vector<int32_t>& uids) { in networkSetPermissionForUser() argument 1114 gCtls->netCtrl.setPermissionForUsers(convertPermission(permission), intsToUids(uids)); in networkSetPermissionForUser() 1118 binder::Status NetdNativeService::networkClearPermissionForUser(const std::vector<int32_t>& uids) { in networkClearPermissionForUser() argument 1121 gCtls->netCtrl.setPermissionForUsers(permission, intsToUids(uids)); in networkClearPermissionForUser() 1127 std::vector<uid_t> uids = {(uid_t) uid}; in networkSetProtectAllow() local 1128 gCtls->netCtrl.allowProtect(uids); in networkSetProtectAllow() [all …]
|
D | TrafficController.cpp | 647 const std::vector<int32_t>& uids) { in replaceRulesInMap() argument 649 std::set<int32_t> uidSet(uids.begin(), uids.end()); in replaceRulesInMap() 664 for (auto uid : uids) { in replaceRulesInMap() 707 const std::vector<int32_t>& uids) { in replaceUidOwnerMap() argument 712 res = replaceRulesInMap(DOZABLE_MATCH, uids); in replaceUidOwnerMap() 714 res = replaceRulesInMap(STANDBY_MATCH, uids); in replaceUidOwnerMap() 716 res = replaceRulesInMap(POWERSAVE_MATCH, uids); in replaceUidOwnerMap() 808 void TrafficController::setPermissionForUids(int permission, const std::vector<uid_t>& uids) { in setPermissionForUids() argument 811 for (uid_t uid : uids) { in setPermissionForUids() 828 for (uid_t uid : uids) { in setPermissionForUids()
|
D | NetworkController.cpp | 544 const std::vector<uid_t>& uids) { in setPermissionForUsers() argument 546 for (uid_t uid : uids) { in setPermissionForUsers() 685 void NetworkController::allowProtect(const std::vector<uid_t>& uids) { in allowProtect() argument 687 mProtectableUsers.insert(uids.begin(), uids.end()); in allowProtect() 690 void NetworkController::denyProtect(const std::vector<uid_t>& uids) { in denyProtect() argument 692 for (uid_t uid : uids) { in denyProtect()
|
D | FirewallController.h | 96 const std::vector<int32_t>& uids);
|
/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/current/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/binder/android/net/ |
D | INetd.aidl | 50 in int[] uids); in firewallReplaceUidChain() argument 939 void networkSetPermissionForUser(int permission, in int[] uids); in networkSetPermissionForUser() argument 946 void networkClearPermissionForUser(in int[] uids); in networkClearPermissionForUser() argument 957 void trafficSetNetPermForUids(int permission, in int[] uids); in trafficSetNetPermForUids() argument 1174 void firewallAddUidInterfaceRules(in @utf8InCpp String ifName, in int[] uids); in firewallAddUidInterfaceRules() argument 1186 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/core/libstats/push_compat/ |
D | StatsEventCompat.cpp | 129 void StatsEventCompat::writeAttributionChain(const int32_t* uids, size_t numUids, in writeAttributionChain() argument 132 mStatsEventApi->write_attribution_chain(mEventR, (const uint32_t*)uids, tags.data(), in writeAttributionChain() 138 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/push_compat/include/ |
D | StatsEventCompat.h | 43 void writeAttributionChain(const int32_t* uids, size_t numUids,
|
/system/core/libstats/socket/tests/ |
D | stats_event_test.cpp | 181 uint32_t uids[numNodes]; in TEST() local 185 uids[i] = i; in TEST() 193 stats_event_write_attribution_chain(event, uids, cTags, numNodes); in TEST() 206 checkScalar(&buffer, uids[i]); in TEST()
|
/system/core/libstats/socket/include/ |
D | stats_event.h | 104 void stats_event_write_attribution_chain(struct stats_event* event, const uint32_t* uids,
|
/system/security/keystore/ |
D | keystore_cli_v2.cpp | 387 ::std::vector<::std::string> uids; in ListAppsWithKeys() 388 android::binder::Status status = service->listUidsOfAuthBoundKeys(&uids, &aidl_return); in ListAppsWithKeys() 399 for (auto i = uids.begin(); i != uids.end(); ++i) { in ListAppsWithKeys()
|