Home
last modified time | relevance | path

Searched refs:instIndex (Results 1 - 25 of 99) sorted by relevance

1234

/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/udmf/permission/
H A Duri_permission_manager.cpp41 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 Dmock_form_params.cpp22 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 Dmock_accesstoken_kit.cpp32 hapTokenInfo.instIndex = MockFormParams::instIndex; in GetHapTokenInfo()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/include/
H A Daccesstoken_kit.h44 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 Dpermission_test.cpp56 .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 Derrorcode_test.cpp74 .instIndex = 0, in SetUpTestCase()
104 info.userID, info.bundleName, info.instIndex); in SetUpTestCase()
H A Dslientaccess_test.cpp177 .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 Dmock_form_params.h28 static int instIndex; member in OHOS::AppExecFwk::MockFormParams
/foundation/communication/netmanager_base/test/security/
H A Dnetmanager_base_test_security.cpp29 .instIndex = 0,
37 .instIndex = 0,
44 .instIndex = 0,
/foundation/window/window_manager/test/common/utils/include/
H A Dcommon_test_utils.h25 static void InjectTokenInfoByHapName(int userID, const std::string& bundleName, int instIndex);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/
H A Daccesstoken_kit.cpp146 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 Dcommon_test_utils.cpp25 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 Dsession_listener_stub_test.cpp32 .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 Davsession_callback_stub_test.cpp33 .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 Davcast_controller_callback_stub_test.cpp34 .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 Davcontroller_callback_proxy_test.cpp43 .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 Dpreprocess_utils.cpp242 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 Dpreprocess_utils.h40 static bool GetInstIndex(uint32_t tokenId, int32_t &instIndex);
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/
H A Dspunge.c66 ftSock->netconn->osSocket[SPUNGE_GET_CUR_INSTANCE()->instIndex] = osSock; in SockSetOsSocket()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/
H A Dsysio_udp.c492 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 Dpcb.c63 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 Dformsupplycallback_fuzzer.cpp95 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 Dmeta_data_test.cpp64 tokenInfo.instIndex = -1; in GetInstIndex()
69 return tokenInfo.instIndex; in GetInstIndex()
/foundation/distributeddatamgr/relational_store/test/native/clouddata/unittest/
H A Dcloud_data_test.cpp37 .instIndex = 0, in AllocSystemHapToken()
50 .instIndex = 0, in AllocNormalHapToken()
/foundation/bundlemanager/app_domain_verify/test/unittest/mock/src/
H A Dmock_access_token.cpp30 .instIndex = 0, in mockSystemApp()

Completed in 12 milliseconds

1234