/foundation/ability/ability_runtime/test/fuzztest/abilitystubunregisterconnectionobserver_fuzzer/ |
H A D | abilitystubunregisterconnectionobserver_fuzzer.cpp | 34 const std::u16string ABILITYMGR_INTERFACE_TOKEN = u"ohos.aafwk.AbilityManager"; 47 std::make_shared<SubManagersHelper>(nullptr, nullptr); in DoSomethingInterestingWithMyAPI() 49 std::make_shared<UIAbilityLifecycleManager>(); in DoSomethingInterestingWithMyAPI() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 72 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 78 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubunregistercollaborator_fuzzer/ |
H A D | abilitystubunregistercollaborator_fuzzer.cpp | 34 const std::u16string ABILITYMGR_INTERFACE_TOKEN = u"ohos.aafwk.AbilityManager"; 47 std::make_shared<SubManagersHelper>(nullptr, nullptr); in DoSomethingInterestingWithMyAPI() 49 std::make_shared<UIAbilityLifecycleManager>(); in DoSomethingInterestingWithMyAPI() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 72 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 78 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/releasedataability_fuzzer/ |
H A D | releasedataability_fuzzer.cpp | 40 std::shared_ptr<AbilityRecord> abilityRecord = AbilityRecord::CreateAbilityRecord(abilityRequest); in GetFuzzAbilityToken() 58 std::cout << "Get ability token failed." << std::endl; in DoSomethingInterestingWithMyAPI() 75 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 86 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 92 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/startcontinuation_fuzzer/ |
H A D | startcontinuation_fuzzer.cpp | 43 std::shared_ptr<AbilityRecord> abilityRecord = AbilityRecord::CreateAbilityRecord(abilityRequest); in GetFuzzAbilityToken() 61 std::cout << "Get ability token failed." << std::endl; in DoSomethingInterestingWithMyAPI() 90 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 101 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 107 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_native_test/ |
H A D | extension_second_test.cpp | 42 std::shared_ptr<AbilityRuntime::Extension> extension_; 55 std::shared_ptr<AbilityInfo> info = std::make_shared<AbilityInfo>(); in SetUp() 57 auto record = std::make_shared<AbilityLocalRecord>(info, token, nullptr, 0); in SetUp() 58 auto application = std::make_shared<AppExecFwk::OHOSApplication>(); in SetUp() 59 std::shared_ptr<EventRunner> runner; in SetUp() 60 auto handler = std::make_shared<AppExecFwk::AbilityHandler>(runner); in SetUp() 61 extension_ = std::make_shared<AbilityRuntime::Extension>(); in SetUp() 77 auto extension = std::make_shared<AbilityRuntime::Extension>(); in HWTEST_F()
|
H A D | ability_local_record_test.cpp | 62 auto record = std::make_shared<OHOS::AppExecFwk::AbilityLocalRecord>(nullptr, nullptr, nullptr, 0); in HWTEST_F() 77 std::shared_ptr<AAFwk::Want> want; in HWTEST_F() 78 auto record = std::make_shared<OHOS::AppExecFwk::AbilityLocalRecord>(nullptr, nullptr, want, 0); in HWTEST_F() 91 auto info = std::make_shared<OHOS::AppExecFwk::AbilityInfo>(); in HWTEST_F() 92 sptr<IRemoteObject> token = new (std::nothrow) MockAbilityToken(); in HWTEST_F() 93 auto record = std::make_shared<OHOS::AppExecFwk::AbilityLocalRecord>(info, token, nullptr, 0); in HWTEST_F() 106 auto info = std::make_shared<OHOS::AppExecFwk::AbilityInfo>(); in HWTEST_F() 107 sptr<IRemoteObject> token = new (std::nothrow) MockAbilityToken(); in HWTEST_F() 108 auto record = std::make_shared<OHOS::AppExecFwk::AbilityLocalRecord>(info, token, nullptr, 0); in HWTEST_F()
|
/foundation/ability/ability_runtime/interfaces/inner_api/uri_permission/include/ |
H A D | uri_permission_manager_proxy.h | 31 const std::string targetBundleName, int32_t appIndex = 0, uint32_t initiatorTokenId = 0, 34 virtual int GrantUriPermission(const std::vector<Uri> &uriVec, unsigned int flag, 35 const std::string targetBundleName, int32_t appIndex = 0, uint32_t initiatorTokenId = 0, 38 virtual int32_t GrantUriPermissionPrivileged(const std::vector<Uri> &uriVec, uint32_t flag, 39 const std::string &targetBundleName, int32_t appIndex, uint32_t initiatorTokenId, 43 virtual int RevokeUriPermissionManually(const Uri &uri, const std::string bundleName, 46 virtual std::vector<bool> CheckUriAuthorization(const std::vector<std::string> &uriVec,
|
/foundation/ability/ability_runtime/services/appmgr/include/ |
H A D | ability_running_record.h | 31 AbilityRunningRecord(std::shared_ptr<AbilityInfo> info, sptr<IRemoteObject> token, 40 const std::string &GetName() const; 47 const std::string &GetBundleName() const; 54 const std::string &GetModuleName() const; 61 const std::shared_ptr<AbilityInfo> &GetAbilityInfo() const; 68 const std::shared_ptr<AAFwk::Want> &GetWant() const; 70 void SetWant(const std::shared_ptr<AAFwk::Want> &want); 157 std::shared_ptr<AbilityInfo> info_; 158 std::shared_ptr<AAFwk::Want> want_ = nullptr;
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubabilityrecovery_fuzzer/ |
H A D | abilitystubabilityrecovery_fuzzer.cpp | 34 const std::u16string ABILITYMGR_INTERFACE_TOKEN = u"ohos.aafwk.AbilityManager"; 47 std::make_shared<SubManagersHelper>(nullptr, nullptr); in DoSomethingInterestingWithMyAPI() 49 std::make_shared<UIAbilityLifecycleManager>(); in DoSomethingInterestingWithMyAPI() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 72 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 78 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubconnectabilitywithtype_fuzzer/ |
H A D | abilitystubconnectabilitywithtype_fuzzer.cpp | 34 const std::u16string ABILITYMGR_INTERFACE_TOKEN = u"ohos.aafwk.AbilityManager"; 47 std::make_shared<SubManagersHelper>(nullptr, nullptr); in DoSomethingInterestingWithMyAPI() 49 std::make_shared<UIAbilityLifecycleManager>(); in DoSomethingInterestingWithMyAPI() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 72 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 78 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubgetabilitystatebypersistentid_fuzzer/ |
H A D | abilitystubgetabilitystatebypersistentid_fuzzer.cpp | 34 const std::u16string ABILITYMGR_INTERFACE_TOKEN = u"ohos.aafwk.AbilityManager"; 47 std::make_shared<SubManagersHelper>(nullptr, nullptr); in DoSomethingInterestingWithMyAPI() 49 std::make_shared<UIAbilityLifecycleManager>(); in DoSomethingInterestingWithMyAPI() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 72 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 78 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubgetprocessrunninginfo_fuzzer/ |
H A D | abilitystubgetprocessrunninginfo_fuzzer.cpp | 34 const std::u16string ABILITYMGR_INTERFACE_TOKEN = u"ohos.aafwk.AbilityManager"; 47 std::make_shared<SubManagersHelper>(nullptr, nullptr); in DoSomethingInterestingWithMyAPI() 49 std::make_shared<UIAbilityLifecycleManager>(); in DoSomethingInterestingWithMyAPI() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 72 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 78 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubgettopability_fuzzer/ |
H A D | abilitystubgettopability_fuzzer.cpp | 34 const std::u16string ABILITYMGR_INTERFACE_TOKEN = u"ohos.aafwk.AbilityManager"; 47 std::make_shared<SubManagersHelper>(nullptr, nullptr); in DoSomethingInterestingWithMyAPI() 49 std::make_shared<UIAbilityLifecycleManager>(); in DoSomethingInterestingWithMyAPI() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 72 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 78 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubnotifycontinuationresult_fuzzer/ |
H A D | abilitystubnotifycontinuationresult_fuzzer.cpp | 34 const std::u16string ABILITYMGR_INTERFACE_TOKEN = u"ohos.aafwk.AbilityManager"; 47 std::make_shared<SubManagersHelper>(nullptr, nullptr); in DoSomethingInterestingWithMyAPI() 49 std::make_shared<UIAbilityLifecycleManager>(); in DoSomethingInterestingWithMyAPI() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 72 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 78 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubnotifysaveasresult_fuzzer/ |
H A D | abilitystubnotifysaveasresult_fuzzer.cpp | 34 const std::u16string ABILITYMGR_INTERFACE_TOKEN = u"ohos.aafwk.AbilityManager"; 47 std::make_shared<SubManagersHelper>(nullptr, nullptr); in DoSomethingInterestingWithMyAPI() 49 std::make_shared<UIAbilityLifecycleManager>(); in DoSomethingInterestingWithMyAPI() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 72 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 78 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubsendresulttoability_fuzzer/ |
H A D | abilitystubsendresulttoability_fuzzer.cpp | 34 const std::u16string ABILITYMGR_INTERFACE_TOKEN = u"ohos.aafwk.AbilityManager"; 47 std::make_shared<SubManagersHelper>(nullptr, nullptr); in DoSomethingInterestingWithMyAPI() 49 std::make_shared<UIAbilityLifecycleManager>(); in DoSomethingInterestingWithMyAPI() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 72 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 78 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubsendwantsender_fuzzer/ |
H A D | abilitystubsendwantsender_fuzzer.cpp | 34 const std::u16string ABILITYMGR_INTERFACE_TOKEN = u"ohos.aafwk.AbilityManager"; 47 std::make_shared<SubManagersHelper>(nullptr, nullptr); in DoSomethingInterestingWithMyAPI() 49 std::make_shared<UIAbilityLifecycleManager>(); in DoSomethingInterestingWithMyAPI() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 72 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 78 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubstartusertest_fuzzer/ |
H A D | abilitystubstartusertest_fuzzer.cpp | 34 const std::u16string ABILITYMGR_INTERFACE_TOKEN = u"ohos.aafwk.AbilityManager"; 47 std::make_shared<SubManagersHelper>(nullptr, nullptr); in DoSomethingInterestingWithMyAPI() 49 std::make_shared<UIAbilityLifecycleManager>(); in DoSomethingInterestingWithMyAPI() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 72 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 78 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubstartuser_fuzzer/ |
H A D | abilitystubstartuser_fuzzer.cpp | 34 const std::u16string ABILITYMGR_INTERFACE_TOKEN = u"ohos.aafwk.AbilityManager"; 47 std::make_shared<SubManagersHelper>(nullptr, nullptr); in DoSomethingInterestingWithMyAPI() 49 std::make_shared<UIAbilityLifecycleManager>(); in DoSomethingInterestingWithMyAPI() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 72 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 78 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubunregistermissionlistener_fuzzer/ |
H A D | abilitystubunregistermissionlistener_fuzzer.cpp | 34 const std::u16string ABILITYMGR_INTERFACE_TOKEN = u"ohos.aafwk.AbilityManager"; 47 std::make_shared<SubManagersHelper>(nullptr, nullptr); in DoSomethingInterestingWithMyAPI() 49 std::make_shared<UIAbilityLifecycleManager>(); in DoSomethingInterestingWithMyAPI() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 72 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 78 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/delegatordoabilityforeground_fuzzer/ |
H A D | delegatordoabilityforeground_fuzzer.cpp | 40 std::shared_ptr<AbilityRecord> abilityRecord = AbilityRecord::CreateAbilityRecord(abilityRequest); in GetFuzzAbilityToken() 62 std::cout << "Get ability token failed." << std::endl; in DoSomethingInterestingWithMyAPI() 79 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 90 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 96 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/getmissionidbytoken_fuzzer/ |
H A D | getmissionidbytoken_fuzzer.cpp | 40 std::shared_ptr<AbilityRecord> abilityRecord = AbilityRecord::CreateAbilityRecord(abilityRequest); in GetFuzzAbilityToken() 62 std::cout << "Get ability token failed." << std::endl; in DoSomethingInterestingWithMyAPI() 80 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 91 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 97 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/renderstateobserverproxy_fuzzer/ |
H A D | renderstateobserverproxy_fuzzer.cpp | 46 const std::u16string APPMGR_INTERFACE_TOKEN = u"ohos.aafwk.AppManager"; 57 auto renderStateObserverProxy = std::make_shared<RenderStateObserverProxy>(impl); in DoSomethingInterestingWithMyAPI() 58 std::string bundle(data, size); in DoSomethingInterestingWithMyAPI() 81 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 92 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 98 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilityconnectionstub_fuzzer/ |
H A D | abilityconnectionstub_fuzzer.cpp | 39 const std::u16string ABILITYMGR_INTERFACE_TOKEN = u"ohos.abilityshell.DistributedConnection"; 71 std::shared_ptr<AbilityConnectionStub> abilityconnectionstub = std::make_shared<AbilityConnectionStubFuzzTest>(); in DoSomethingInterestingWithMyAPI() 84 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 95 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 101 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilityfirstframestateobservermanager_fuzzer/ |
H A D | abilityfirstframestateobservermanager_fuzzer.cpp | 52 std::string strParam(data, size); in DoSomethingInterestingWithMyAPI() 53 std::shared_ptr<AbilityRecord> abilityRecord; in DoSomethingInterestingWithMyAPI() 57 std::make_shared<AbilityFirstFrameStateObserverSet>(boolParam); in DoSomethingInterestingWithMyAPI() 79 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 88 std::cout << "malloc failed." << std::endl; in LLVMFuzzerTestOneInput() 93 std::cout << "copy failed." << std::endl; in LLVMFuzzerTestOneInput()
|