Home
last modified time | relevance | path

Searched refs:permissionRecords (Results 1 – 9 of 9) sorted by relevance

/base/security/access_token/frameworks/privacy/src/
Dbundle_used_record_parcel.cpp31 RETURN_IF_FALSE(out.WriteUint32(this->bundleRecord.permissionRecords.size())); in Marshalling()
32 for (const auto& permRecord : this->bundleRecord.permissionRecords) { in Marshalling()
58 … bundleRecordParcel->bundleRecord.permissionRecords.emplace_back(permRecord->permissionRecord); in Unmarshalling()
/base/security/access_token/tools/accesstoken/src/
Dto_string.cpp45 const std::vector<PermissionUsedRecord>& permissionRecords, std::string& infos) in PermissionUsedRecordToString() argument
47 infos.append(R"( "permissionRecords": [)"); in PermissionUsedRecordToString()
50 for (const auto& perm : permissionRecords) { in PermissionUsedRecordToString()
78 ToString::PermissionUsedRecordToString(bundleRecord.permissionRecords, infos); in BundleUsedRecordToString()
/base/security/access_token/frameworks/test/unittest/
Dprivacy_parcel_test.cpp128 bundleUsedRecordParcel.bundleRecord.permissionRecords.emplace_back(g_permissionRecord1);
129 bundleUsedRecordParcel.bundleRecord.permissionRecords.emplace_back(g_permissionRecord2);
284 g_bundleUsedRecord1.permissionRecords.emplace_back(g_permissionRecord1);
285 g_bundleUsedRecord1.permissionRecords.emplace_back(g_permissionRecord2);
286 g_bundleUsedRecord2.permissionRecords.emplace_back(g_permissionRecord1);
287 g_bundleUsedRecord2.permissionRecords.emplace_back(g_permissionRecord2);
464 g_bundleUsedRecord1.permissionRecords.emplace_back(g_permissionRecord1);
465 g_bundleUsedRecord1.permissionRecords.emplace_back(g_permissionRecord2);
/base/security/access_token/tools/accesstoken/include/
Dto_string.h31 const std::vector<PermissionUsedRecord>& permissionRecords, std::string& infos);
/base/security/access_token/services/privacymanager/src/service/
Dprivacy_manager_service.cpp192 if (result.bundleRecords.empty() || result.bundleRecords[0].permissionRecords.empty()) { in ResponseDumpCommand()
196 for (size_t index = 0; index < result.bundleRecords[0].permissionRecords.size(); index++) { in ResponseDumpCommand()
203 …time_t lastAccessTime = static_cast<time_t>(result.bundleRecords[0].permissionRecords[index].lastA… in ResponseDumpCommand()
206 … std::to_string(result.bundleRecords[0].permissionRecords[index].lastAccessDuration) + ",\n"); in ResponseDumpCommand()
/base/security/access_token/interfaces/innerkits/privacy/include/
Dpermission_used_result.h96 std::vector<PermissionUsedRecord> permissionRecords; member
/base/security/access_token/services/privacymanager/src/record/
Dpermission_record_manager.cpp223 if (!bundleRecord.permissionRecords.empty()) { in GetRecordsFromLocalDB()
247 std::vector<PermissionUsedRecord> permissionRecords; in GetRecords() local
264 auto iter = std::find_if(permissionRecords.begin(), permissionRecords.end(), in GetRecords()
268 if (iter != permissionRecords.end()) { in GetRecords()
271 permissionRecords.emplace_back(tmpPermissionRecord); in GetRecords()
274 bundleRecord.permissionRecords = permissionRecords; in GetRecords()
/base/security/access_token/interfaces/innerkits/privacy/test/unittest/src/
Dprivacy_kit_test.cpp238 … ASSERT_EQ(permRecordSize, static_cast<int32_t>(result.bundleRecords[0].permissionRecords.size())); in CheckPermissionUsedResult()
240 successCount += result.bundleRecords[0].permissionRecords[i].accessCount; in CheckPermissionUsedResult()
241 failCount += result.bundleRecords[0].permissionRecords[i].rejectCount; in CheckPermissionUsedResult()
456 ASSERT_EQ(static_cast<uint32_t>(1), result.bundleRecords[0].permissionRecords.size());
457 …ASSERT_EQ(static_cast<uint32_t>(1), result.bundleRecords[0].permissionRecords[0].accessRecords.siz…
467 ASSERT_EQ(static_cast<uint32_t>(1), result.bundleRecords[0].permissionRecords.size());
468 …ASSERT_EQ(static_cast<uint32_t>(2), result.bundleRecords[0].permissionRecords[0].accessRecords.siz…
510 ASSERT_EQ(static_cast<uint32_t>(1), result.bundleRecords[0].permissionRecords.size());
511 …ASSERT_EQ(static_cast<uint32_t>(2), result.bundleRecords[0].permissionRecords[0].accessRecords.siz…
1181 ASSERT_EQ(static_cast<uint32_t>(1), result.bundleRecords[0].permissionRecords.size());
[all …]
/base/security/access_token/interfaces/kits/privacy/napi/src/
Dpermission_record_manager_napi.cpp295 for (const auto& permRecord : bundleRecord.permissionRecords) { in ConvertBundleUsedRecord()