/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/udmf/permission/ |
H A D | uri_permission_manager.cpp | 41 int32_t instIndex = -1;
in GrantUriPermission() local 42 if (!PreProcessUtils::GetInstIndex(tokenId, instIndex)) {
in GrantUriPermission() 48 ZLOGI("GrantUriPermission begin, url size:%{public}zu, queryKey:%{public}s, instIndex:%{public}d.",
in GrantUriPermission() 49 allUri.size(), queryKey.c_str(), instIndex);
in GrantUriPermission() 54 uriLst, AAFwk::Want::FLAG_AUTH_READ_URI_PERMISSION, bundleName, instIndex);
in GrantUriPermission() 56 ZLOGE("GrantUriPermission failed, status:%{public}d, queryKey:%{public}s, instIndex:%{public}d.",
in GrantUriPermission() 57 status, queryKey.c_str(), instIndex);
in GrantUriPermission() 91 int32_t instIndex = -1;
in RevokeUriPermission() 92 if (!PreProcessUtils::GetInstIndex(tokenId, instIndex)) {
in RevokeUriPermission() 97 uri, bundleName, instIndex);
in RevokeUriPermission() [all...] |
/foundation/ability/form_fwk/test/mock/src/ |
H A D | mock_form_params.cpp | 22 int MockFormParams::instIndex = 0; member in OHOS::AppExecFwk::MockFormParams 28 instIndex = 0; in Reset()
|
/foundation/ability/form_fwk/test/unittest/fms_form_mgr_service_test/ |
H A D | mock_accesstoken_kit.cpp | 32 hapTokenInfo.instIndex = MockFormParams::instIndex; in GetHapTokenInfo()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/include/ |
H A D | accesstoken_kit.h | 44 static AccessTokenID GetHapTokenID(int userID, const std::string& bundleName, int instIndex); 45 static AccessTokenIDEx GetHapTokenIDEx(int userID, const std::string& bundleName, int instIndex);
|
/foundation/distributeddatamgr/data_share/test/native/unittest/mediadatashare_test/src/ |
H A D | permission_test.cpp | 56 .instIndex = 0, in SetUpTestCase() 90 info.userID, info.bundleName, info.instIndex); in SetUpTestCase() 225 .instIndex = 0, in HWTEST_F() 252 info.userID, info.bundleName, info.instIndex); in HWTEST_F() 268 .instIndex = 0, in HWTEST_F() 295 info.userID, info.bundleName, info.instIndex); in HWTEST_F()
|
H A D | errorcode_test.cpp | 74 .instIndex = 0, in SetUpTestCase() 104 info.userID, info.bundleName, info.instIndex); in SetUpTestCase()
|
H A D | slientaccess_test.cpp | 177 .instIndex = 0, in SetUpTestCase() 200 info.userID, info.bundleName, info.instIndex); in SetUpTestCase() 603 .instIndex = 0, in HWTEST_F() 623 info.userID, info.bundleName, info.instIndex); in HWTEST_F() 646 .instIndex = 0, in HWTEST_F() 666 info.userID, info.bundleName, info.instIndex); in HWTEST_F() 690 .instIndex = 0, in HWTEST_F() 710 info.userID, info.bundleName, info.instIndex); in HWTEST_F()
|
/foundation/ability/form_fwk/test/mock/include/ |
H A D | mock_form_params.h | 28 static int instIndex; member in OHOS::AppExecFwk::MockFormParams
|
/foundation/communication/netmanager_base/test/security/ |
H A D | netmanager_base_test_security.cpp | 29 .instIndex = 0, 37 .instIndex = 0, 44 .instIndex = 0,
|
/foundation/window/window_manager/test/common/utils/include/ |
H A D | common_test_utils.h | 25 static void InjectTokenInfoByHapName(int userID, const std::string& bundleName, int instIndex);
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/ |
H A D | accesstoken_kit.cpp | 146 AccessTokenID AccessTokenKit::GetHapTokenID(int userID, const std::string& bundleName, int instIndex) in GetHapTokenID() argument 151 AccessTokenIDEx AccessTokenKit::GetHapTokenIDEx(int userID, const std::string& bundleName, int instIndex) in GetHapTokenIDEx() argument
|
/foundation/window/window_manager/test/common/utils/src/ |
H A D | common_test_utils.cpp | 25 void CommonTestUtils::InjectTokenInfoByHapName(int userID, const std::string& bundleName, int instIndex) in InjectTokenInfoByHapName() argument 28 Security::AccessToken::AccessTokenKit::GetHapTokenID(userID, bundleName, instIndex); in InjectTokenInfoByHapName()
|
/foundation/multimedia/av_session/services/session/server/test/ |
H A D | session_listener_stub_test.cpp | 32 .instIndex = 0, 75 AccessTokenIDEx tokenID = AccessTokenKit::GetHapTokenIDEx(g_info.userID, g_info.bundleName, g_info.instIndex); in SetUpTestCase() 82 auto tokenId = AccessTokenKit::GetHapTokenID(g_info.userID, g_info.bundleName, g_info.instIndex); in TearDownTestCase()
|
H A D | avsession_callback_stub_test.cpp | 33 .instIndex = 0, 76 AccessTokenIDEx tokenID = AccessTokenKit::GetHapTokenIDEx(g_info.userID, g_info.bundleName, g_info.instIndex); in SetUpTestCase() 83 auto tokenId = AccessTokenKit::GetHapTokenID(g_info.userID, g_info.bundleName, g_info.instIndex); in TearDownTestCase()
|
H A D | avcast_controller_callback_stub_test.cpp | 34 .instIndex = 0, 77 AccessTokenIDEx tokenID = AccessTokenKit::GetHapTokenIDEx(g_info.userID, g_info.bundleName, g_info.instIndex); in SetUpTestCase() 84 auto tokenId = AccessTokenKit::GetHapTokenID(g_info.userID, g_info.bundleName, g_info.instIndex); in TearDownTestCase()
|
H A D | avcontroller_callback_proxy_test.cpp | 43 .instIndex = 0, 88 AccessTokenIDEx tokenID = AccessTokenKit::GetHapTokenIDEx(g_info.userID, g_info.bundleName, g_info.instIndex); in SetUpTestCase() 95 auto tokenId = AccessTokenKit::GetHapTokenID(g_info.userID, g_info.bundleName, g_info.instIndex); in TearDownTestCase()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/udmf/preprocess/ |
H A D | preprocess_utils.cpp | 242 bool PreProcessUtils::GetInstIndex(uint32_t tokenId, int32_t &instIndex) in GetInstIndex() argument 245 instIndex = 0; in GetInstIndex() 254 instIndex = tokenInfo.instIndex; in GetInstIndex()
|
H A D | preprocess_utils.h | 40 static bool GetInstIndex(uint32_t tokenId, int32_t &instIndex);
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/ |
H A D | spunge.c | 66 ftSock->netconn->osSocket[SPUNGE_GET_CUR_INSTANCE()->instIndex] = osSock; in SockSetOsSocket()
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/ |
H A D | sysio_udp.c | 492 FILLP_INT instIndex = SPUNGE_GET_CUR_INSTANCE()->instIndex; in SysioGetListenSocketByOssock() local 494 if ((instIndex < 0) || (instIndex >= MAX_SPUNGEINSTANCE_NUM)) { in SysioGetListenSocketByOssock() 501 if (osSock == sock->netconn->osSocket[instIndex]) { in SysioGetListenSocketByOssock()
|
H A D | pcb.c | 63 struct SockOsSocket *osSock = NETCONN_GET_OSSOCK(conn, SPUNGE_GET_CUR_INSTANCE()->instIndex); in SpungePcbSend() 169 osSock = NETCONN_GET_OSSOCK(conn, SPUNGE_GET_CUR_INSTANCE()->instIndex); in SpungePcbSendmsg() 306 osSock = NETCONN_GET_OSSOCK(conn, SPUNGE_GET_CUR_INSTANCE()->instIndex); in SpungePcbRemove()
|
/foundation/ability/form_fwk/test/fuzztest/formsupplycallback_fuzzer/ |
H A D | formsupplycallback_fuzzer.cpp | 95 int32_t instIndex = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local 96 formDumpMgr.DumpHasFormVisible(tokenId, bundleName, userId, instIndex, formInfo); in DoSomethingInterestingWithMyAPI()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | meta_data_test.cpp | 64 tokenInfo.instIndex = -1; in GetInstIndex() 69 return tokenInfo.instIndex; in GetInstIndex()
|
/foundation/distributeddatamgr/relational_store/test/native/clouddata/unittest/ |
H A D | cloud_data_test.cpp | 37 .instIndex = 0, in AllocSystemHapToken() 50 .instIndex = 0, in AllocNormalHapToken()
|
/foundation/bundlemanager/app_domain_verify/test/unittest/mock/src/ |
H A D | mock_access_token.cpp | 30 .instIndex = 0, in mockSystemApp()
|