Home
last modified time | relevance | path

Searched refs:bundleRecords (Results 1 – 12 of 12) sorted by relevance

/base/security/access_token/frameworks/privacy/src/
Dpermission_used_result_parcel.cpp29 RETURN_IF_FALSE(out.WriteUint32(this->result.bundleRecords.size())); in Marshalling()
30 for (const auto& bundRecord : this->result.bundleRecords) { in Marshalling()
54 resultParcel->result.bundleRecords.emplace_back(bunRecordParcel->bundleRecord); in Unmarshalling()
/base/security/access_token/interfaces/innerkits/privacy/test/unittest/src/
Dprivacy_kit_test.cpp234 ASSERT_EQ(request.tokenId, result.bundleRecords[0].tokenId); in CheckPermissionUsedResult()
235 ASSERT_EQ(request.isRemote, result.bundleRecords[0].isRemote); in CheckPermissionUsedResult()
236 ASSERT_EQ(request.deviceId, result.bundleRecords[0].deviceId); in CheckPermissionUsedResult()
237 ASSERT_EQ(request.bundleName, result.bundleRecords[0].bundleName); in CheckPermissionUsedResult()
238 … 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()
305 ASSERT_EQ(static_cast<uint32_t>(0), result.bundleRecords.size());
328 ASSERT_EQ(static_cast<uint32_t>(0), result.bundleRecords.size());
332 ASSERT_EQ(static_cast<uint32_t>(0), result.bundleRecords.size());
[all …]
Dprivacy_kit_test.h46 …ST_LOG_(INFO) << "TestCallBack, code :" << code << ", bundleSize :" << result.bundleRecords.size(); in OnQueried()
Dpermission_deny_test.cpp130 …ST_LOG_(INFO) << "TestCallBack, code :" << code << ", bundleSize :" << result.bundleRecords.size(); in OnQueried()
/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()
199 infos.append(R"( "bundleName": )" + result.bundleRecords[0].bundleName + ",\n"); in ResponseDumpCommand()
200 … infos.append(R"( "isRemote": )" + std::to_string(result.bundleRecords[0].isRemote) + ",\n"); 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/tools/accesstoken/src/
Dto_string.cpp86 if (result.bundleRecords.empty()) { in PermissionUsedResultToString()
92 for (const auto& res : result.bundleRecords) { in PermissionUsedResultToString()
/base/security/access_token/interfaces/innerkits/privacy/include/
Dpermission_used_result.h108 std::vector<BundleUsedRecord> bundleRecords; member
/base/security/access_token/frameworks/test/unittest/
Dprivacy_parcel_test.cpp289 permissionUsedResultParcel.result.bundleRecords.emplace_back(g_bundleUsedRecord1);
290 permissionUsedResultParcel.result.bundleRecords.emplace_back(g_bundleUsedRecord2);
468 permissionUsedResultParcel.result.bundleRecords.emplace_back(g_bundleUsedRecord1);
482 permissionUsedResultParcel.result.bundleRecords.emplace_back(g_bundleUsedRecord1);
/base/security/access_token/interfaces/innerkits/privacy/test/unittest/privacy_mock_test/
Dprivacy_kit_test.cpp156 …ST_LOG_(INFO) << "TestCallBack, code :" << code << ", bundleSize :" << result.bundleRecords.size(); in OnQueried()
/base/security/access_token/services/privacymanager/src/record/
Dpermission_record_manager.cpp224 result.bundleRecords.emplace_back(bundleRecord); in GetRecordsFromLocalDB()
/base/security/access_token/interfaces/kits/privacy/napi/src/
Dpermission_record_manager_napi.cpp318 for (const auto& bundleRecord : result.bundleRecords) { in ProcessRecordResult()
/base/security/access_token/services/privacymanager/test/unittest/
Dprivacy_manager_service_test.cpp790 …ST_LOG_(INFO) << "TestCallBack, code :" << code << ", bundleSize :" << result.bundleRecords.size(); in OnQueried()