/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannexthree_fuzzer/ |
H A D | ansmanagerstubannexthree_fuzzer.cpp | 44 MessageParcel datas;
in DoSomethingInterestingWithMyAPI() local 48 ansManagerStub.HandleIsNeedSilentInDoNotDisturbMode(datas, reply);
in DoSomethingInterestingWithMyAPI() 51 ansManagerStub.HandleRegisterSwingCallback(datas, reply);
in DoSomethingInterestingWithMyAPI() 53 ansManagerStub.OnRemoteRequest(0, datas, reply, flags);
in DoSomethingInterestingWithMyAPI() 55 datas, reply, flags);
in DoSomethingInterestingWithMyAPI() 79 datas.WriteString(stringData);
in DoSomethingInterestingWithMyAPI() 80 datas.WriteParcelable(notification);
in DoSomethingInterestingWithMyAPI() 81 ansManagerStub.HandlePublish(datas, reply);
in DoSomethingInterestingWithMyAPI() 82 datas.WriteInt32(intData);
in DoSomethingInterestingWithMyAPI() 83 datas in DoSomethingInterestingWithMyAPI() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannex_fuzzer/ |
H A D | ansmanagerstubannex_fuzzer.cpp | 52 MessageParcel datas;
in DoSomethingInterestingWithMyAPI() local 56 ansManagerStub.HandleIsNeedSilentInDoNotDisturbMode(datas, reply);
in DoSomethingInterestingWithMyAPI() 59 ansManagerStub.HandleRegisterSwingCallback(datas, reply);
in DoSomethingInterestingWithMyAPI() 61 ansManagerStub.OnRemoteRequest(0, datas, reply, flags);
in DoSomethingInterestingWithMyAPI() 63 datas, reply, flags);
in DoSomethingInterestingWithMyAPI() 87 datas.WriteString(stringData);
in DoSomethingInterestingWithMyAPI() 88 datas.WriteParcelable(notification);
in DoSomethingInterestingWithMyAPI() 89 ansManagerStub.HandlePublish(datas, reply);
in DoSomethingInterestingWithMyAPI() 90 datas.WriteInt32(intData);
in DoSomethingInterestingWithMyAPI() 91 datas in DoSomethingInterestingWithMyAPI() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/ |
H A D | ansmanagerstub_fuzzer.cpp | 51 MessageParcel datas;
in DoSomethingInterestingWithMyAPI() local 55 ansManagerStub.HandleIsNeedSilentInDoNotDisturbMode(datas, reply);
in DoSomethingInterestingWithMyAPI() 58 ansManagerStub.HandleRegisterSwingCallback(datas, reply);
in DoSomethingInterestingWithMyAPI() 60 ansManagerStub.OnRemoteRequest(0, datas, reply, flags);
in DoSomethingInterestingWithMyAPI() 62 datas, reply, flags);
in DoSomethingInterestingWithMyAPI() 88 datas.WriteString(stringData);
in DoSomethingInterestingWithMyAPI() 89 datas.WriteParcelable(notification);
in DoSomethingInterestingWithMyAPI() 90 ansManagerStub.HandlePublish(datas, reply);
in DoSomethingInterestingWithMyAPI() 91 datas.WriteInt32(intData);
in DoSomethingInterestingWithMyAPI() 92 datas in DoSomethingInterestingWithMyAPI() [all...] |
/base/print/print_fwk/test/fuzztest/scanservicestub_fuzzer/ |
H A D | scanservicestub_fuzzer.cpp | 27 bool WriteInterfaceToken(MessageParcel &datas) in WriteInterfaceToken() argument 29 if (!datas.WriteInterfaceToken(ScanServiceAbility::GetInstance()->GetDescriptor())) { in WriteInterfaceToken() 37 MessageParcel datas; in TestOnOpenScanner() local 40 if (!WriteInterfaceToken(datas)) { in TestOnOpenScanner() 44 datas.WriteString(scannerId); in TestOnOpenScanner() 45 ScanServiceAbility::GetInstance()->OnRemoteRequest(CMD_GET_SCANNER_LIST, datas, reply, option); in TestOnOpenScanner() 46 ScanServiceAbility::GetInstance()->OnRemoteRequest(CMD_STOP_DISCOVER, datas, reply, option); in TestOnOpenScanner() 47 ScanServiceAbility::GetInstance()->OnRemoteRequest(CMD_INIT_SCAN, datas, reply, option); in TestOnOpenScanner() 48 ScanServiceAbility::GetInstance()->OnRemoteRequest(CMD_OPEN_SCANNER, datas, reply, option); in TestOnOpenScanner() 49 ScanServiceAbility::GetInstance()->OnRemoteRequest(CMD_EXIT_SCAN, datas, repl in TestOnOpenScanner() 55 MessageParcel datas; TestOnCloseScanner() local 69 MessageParcel datas; TestOnGetScanOptionDesc() local 85 MessageParcel datas; TestOnOpScanOptionValue() local 105 MessageParcel datas; TestOnGetScanParameters() local 119 MessageParcel datas; TestOnStartScan() local 133 MessageParcel datas; TestOnGetSingleFrameFD() local 149 MessageParcel datas; TestOnCancelScan() local 163 MessageParcel datas; TestOnSetScanIOMode() local 179 MessageParcel datas; TestOnGetScanSelectFd() local 193 MessageParcel datas; TestOnGetScanProgress() local 208 MessageParcel datas; TestOnEventOn() local 223 MessageParcel datas; TestOnEventOff() local [all...] |
/base/account/os_account/test/fuzztest/osaccount_stub/activateosaccountstub_fuzzer/ |
H A D | activateosaccountstub_fuzzer.cpp | 39 MessageParcel datas; in ActivateOsAccountStubFuzzTest() local 41 datas.WriteInterfaceToken(IOS_ACCOUNT_DESCRIPTOR); in ActivateOsAccountStubFuzzTest() 43 if (!datas.WriteInt32(fuzzData.GetData<int32_t>())) { in ActivateOsAccountStubFuzzTest() 51 static_cast<int32_t>(OsAccountInterfaceCode::ACTIVATE_OS_ACCOUNT), datas, reply, option); in ActivateOsAccountStubFuzzTest() local 62 MessageParcel datas; in ProcCreateOsAccountWithFullInfoStubFuzzTest() local 63 if (!datas.WriteInterfaceToken(IOS_ACCOUNT_DESCRIPTOR)) { in ProcCreateOsAccountWithFullInfoStubFuzzTest() 84 if (!datas.WriteParcelable(&osAccountInfo)) { in ProcCreateOsAccountWithFullInfoStubFuzzTest() 92 static_cast<int32_t>(OsAccountInterfaceCode::CREATE_OS_ACCOUNT_WITH_FULL_INFO), datas, reply, option); in ProcCreateOsAccountWithFullInfoStubFuzzTest() local 103 MessageParcel datas; in ProcDeactivateAllOsAccountsStubFuzzTest() local 104 if (!datas in ProcDeactivateAllOsAccountsStubFuzzTest() 112 static_cast<int32_t>(OsAccountInterfaceCode::DEACTIVATE_ALL_OS_ACCOUNTS), datas, reply, option); ProcDeactivateAllOsAccountsStubFuzzTest() local 123 MessageParcel datas; ProcGetBackgroundOsAccountLocalIdsStubFuzzTest() local 132 static_cast<int32_t>(OsAccountInterfaceCode::GET_BACKGROUND_OS_ACCOUNT_LOCAL_IDS), datas, reply, option); ProcGetBackgroundOsAccountLocalIdsStubFuzzTest() local 143 MessageParcel datas; ProcGetCreatedOsAccountNumFromDatabaseStubFuzzTest() local 157 static_cast<int32_t>(OsAccountInterfaceCode::GET_CREATED_OS_ACCOUNT_NUM_FROM_DATABASE), datas, reply, option); ProcGetCreatedOsAccountNumFromDatabaseStubFuzzTest() local 168 MessageParcel datas; ProcGetDefaultActivatedOsAccountStubFuzzTest() local 177 static_cast<int32_t>(OsAccountInterfaceCode::GET_DEFAULT_ACTIVATED_OS_ACCOUNT), datas, reply, option); ProcGetDefaultActivatedOsAccountStubFuzzTest() local 188 MessageParcel datas; ProcGetForegroundOsAccountsStubFuzzTest() local 197 static_cast<int32_t>(OsAccountInterfaceCode::GET_FOREGROUND_OS_ACCOUNTS), datas, reply, option); ProcGetForegroundOsAccountsStubFuzzTest() local 208 MessageParcel datas; ProcGetMaxAllowCreateIdFromDatabaseStubFuzzTest() local 222 static_cast<int32_t>(OsAccountInterfaceCode::GET_MAX_ALLOW_CREATE_ID_FROM_DATABASE), datas, reply, option); ProcGetMaxAllowCreateIdFromDatabaseStubFuzzTest() local 233 MessageParcel datas; ProcGetOsAccountFromDatabaseStubFuzzTest() local 251 static_cast<int32_t>(OsAccountInterfaceCode::GET_OS_ACCOUNT_FROM_DATABASE), datas, reply, option); ProcGetOsAccountFromDatabaseStubFuzzTest() local 262 MessageParcel datas; ProcGetOsAccountListFromDatabaseStubFuzzTest() local 276 static_cast<int32_t>(OsAccountInterfaceCode::GET_OS_ACCOUNT_LIST_FROM_DATABASE), datas, reply, option); ProcGetOsAccountListFromDatabaseStubFuzzTest() local 287 MessageParcel datas; ProcGetOsAccountShortNameStubFuzzTest() local 296 static_cast<int32_t>(OsAccountInterfaceCode::GET_OS_ACCOUNT_SHORT_NAME), datas, reply, option); ProcGetOsAccountShortNameStubFuzzTest() local 307 MessageParcel datas; ProcGetOsAccountTypeFromProcessStubFuzzTest() local 316 static_cast<int32_t>(OsAccountInterfaceCode::GET_OS_ACCOUNT_TYPE_FROM_PROCESS), datas, reply, option); ProcGetOsAccountTypeFromProcessStubFuzzTest() local 327 MessageParcel datas; ProcGetSerialNumberFromDatabaseStubFuzzTest() local 341 static_cast<int32_t>(OsAccountInterfaceCode::GET_SERIAL_NUM_FROM_DATABASE), datas, reply, option); ProcGetSerialNumberFromDatabaseStubFuzzTest() local 352 MessageParcel datas; ProcIsCurrentOsAccountVerifiedStubFuzzTest() local 361 static_cast<int32_t>(OsAccountInterfaceCode::IS_CURRENT_OS_ACCOUNT_VERIFIED), datas, reply, option); ProcIsCurrentOsAccountVerifiedStubFuzzTest() local 372 MessageParcel datas; ProcIsMultiOsAccountEnableStubFuzzTest() local 381 static_cast<int32_t>(OsAccountInterfaceCode::IS_MULTI_OS_ACCOUNT_ENABLE), datas, reply, option); ProcIsMultiOsAccountEnableStubFuzzTest() local [all...] |
/base/security/security_guard/test/fuzztest/ipc/datacollectmanager_fuzzer/ |
H A D | data_collect_manager_fuzzer.cpp | 38 void OnRemoteCollectRequest(const uint8_t* data, size_t size, MessageParcel* datas, 40 void OnRemoteRequestRequest(const uint8_t* data, size_t size, MessageParcel* datas, 42 void OnRemoteSubscribeRequest(const uint8_t* data, size_t size, MessageParcel* datas, 44 void OnRemoteUnsubscribeRequest(const uint8_t* data, size_t size, MessageParcel* datas, 46 void OnRemoteSecurityEventQuery(const uint8_t* data, size_t size, MessageParcel* datas, 48 void OnRemoteStart(const uint8_t* data, size_t size, MessageParcel* datas, 50 void OnRemoteStop(const uint8_t* data, size_t size, MessageParcel* datas, 52 void OnRemoteConfigUpdate(const uint8_t* data, size_t size, MessageParcel* datas, 54 void OnRemoteSecurityEventConfigQuery(const uint8_t* data, size_t size, MessageParcel* datas, 59 MessageParcel datas; in OnRemoteRequestFuzzTest() local 102 OnRemoteCollectRequest(const uint8_t* data, size_t size, MessageParcel* datas, MessageParcel* reply, MessageOption* option) OnRemoteCollectRequest() argument 119 OnRemoteRequestRequest(const uint8_t* data, size_t size, MessageParcel* datas, MessageParcel* reply, MessageOption* option) OnRemoteRequestRequest() argument 138 OnRemoteSubscribeRequest(const uint8_t* data, size_t size, MessageParcel* datas, MessageParcel* reply, MessageOption* option) OnRemoteSubscribeRequest() argument 166 OnRemoteUnsubscribeRequest(const uint8_t* data, size_t size, MessageParcel* datas, MessageParcel* reply, MessageOption* option) OnRemoteUnsubscribeRequest() argument 179 OnRemoteSecurityEventQuery(const uint8_t* data, size_t size, MessageParcel* datas, MessageParcel* reply, MessageOption* option) OnRemoteSecurityEventQuery() argument 208 OnRemoteStart(const uint8_t* data, size_t size, MessageParcel* datas, MessageParcel* reply, MessageOption* option) OnRemoteStart() argument 232 OnRemoteStop(const uint8_t* data, size_t size, MessageParcel* datas, MessageParcel* reply, MessageOption* option) OnRemoteStop() argument 256 OnRemoteConfigUpdate(const uint8_t* data, size_t size, MessageParcel* datas, MessageParcel* reply, MessageOption* option) OnRemoteConfigUpdate() argument 266 OnRemoteSecurityEventConfigQuery(const uint8_t* data, size_t size, MessageParcel* datas, MessageParcel* reply, MessageOption* option) OnRemoteSecurityEventConfigQuery() argument [all...] |
/base/account/os_account/test/fuzztest/osaccount_stub/checkosaccountconstraintenabledstub_fuzzer/ |
H A D | checkosaccountconstraintenabledstub_fuzzer.cpp | 35 MessageParcel datas; in CheckOsAccountConstraintEnabledStubFuzzTest() local 36 if ((data == nullptr) || (size == 0) || (!datas.WriteInterfaceToken(IOS_ACCOUNT_DESCRIPTOR))) { in CheckOsAccountConstraintEnabledStubFuzzTest() 40 if (!datas.WriteInt32(fuzzData.GetData<int32_t>())) { in CheckOsAccountConstraintEnabledStubFuzzTest() 43 if (!datas.WriteString(fuzzData.GenerateRandomString())) { in CheckOsAccountConstraintEnabledStubFuzzTest() 51 static_cast<int32_t>(OsAccountInterfaceCode::CHECK_OS_ACCOUNT_CONSTRAINT_ENABLED), datas, reply, option); in CheckOsAccountConstraintEnabledStubFuzzTest() local 62 MessageParcel datas; in ProcQueryActiveOsAccountIdsStubFuzzTest() local 63 if (!datas.WriteInterfaceToken(IOS_ACCOUNT_DESCRIPTOR)) { in ProcQueryActiveOsAccountIdsStubFuzzTest() 71 static_cast<int32_t>(OsAccountInterfaceCode::QUERY_ACTIVE_OS_ACCOUNT_IDS), datas, reply, option); in ProcQueryActiveOsAccountIdsStubFuzzTest() local 82 MessageParcel datas; in ProcQueryAllCreatedOsAccountsStubFuzzTest() local 83 if (!datas in ProcQueryAllCreatedOsAccountsStubFuzzTest() 91 static_cast<int32_t>(OsAccountInterfaceCode::QUERY_ALL_CREATED_OS_ACCOUNTS), datas, reply, option); ProcQueryAllCreatedOsAccountsStubFuzzTest() local 102 MessageParcel datas; ProcQueryCurrentOsAccountStubFuzzTest() local 111 static_cast<int32_t>(OsAccountInterfaceCode::QUERY_CURRENT_OS_ACCOUNT), datas, reply, option); ProcQueryCurrentOsAccountStubFuzzTest() local 122 MessageParcel datas; ProcQueryMaxLoggedInOsAccountNumberStubFuzzTest() local 131 static_cast<int32_t>(OsAccountInterfaceCode::QUERY_MAX_LOGGED_IN_OS_ACCOUNT_NUMBER), datas, reply, option); ProcQueryMaxLoggedInOsAccountNumberStubFuzzTest() local 142 MessageParcel datas; ProcUpdateOsAccountWithFullInfoStubFuzzTest() local 172 static_cast<int32_t>(OsAccountInterfaceCode::UPDATE_OS_ACCOUNT_WITH_FULL_INFO), datas, reply, option); ProcUpdateOsAccountWithFullInfoStubFuzzTest() local [all...] |
/base/notification/distributed_notification_service/test/fuzztest/anssubscriberstub_fuzzer/ |
H A D | anssubscriberstub_fuzzer.cpp | 32 MessageParcel datas;
in DoSomethingInterestingWithMyAPI() local 36 ansSubscriberStub.OnRemoteRequest(code, datas, reply, flags);
in DoSomethingInterestingWithMyAPI() 38 ansSubscriberStub.HandleOnConnected(datas, reply);
in DoSomethingInterestingWithMyAPI() 40 ansSubscriberStub.HandleOnDisconnected(datas, reply);
in DoSomethingInterestingWithMyAPI() 42 ansSubscriberStub.HandleOnConsumedMap(datas, reply);
in DoSomethingInterestingWithMyAPI() 44 ansSubscriberStub.HandleOnCanceledMap(datas, reply);
in DoSomethingInterestingWithMyAPI() 46 ansSubscriberStub.HandleOnUpdated(datas, reply);
in DoSomethingInterestingWithMyAPI() 48 ansSubscriberStub.HandleOnDoNotDisturbDateChange(datas, reply);
in DoSomethingInterestingWithMyAPI() 50 ansSubscriberStub.HandleOnEnabledNotificationChanged(datas, reply);
in DoSomethingInterestingWithMyAPI() 70 ansSubscriberStub.HandleOnBadgeEnabledChanged(datas, repl in DoSomethingInterestingWithMyAPI() [all...] |
/base/security/security_guard/test/fuzztest/ipc/securitycollectormanager_fuzzer/ |
H A D | security_collector_manager_fuzzer.cpp | 33 void OnRemoteSubscribeRequest(const uint8_t* data, size_t size, MessageParcel* datas, 35 void OnRemoteUnsubscribeRequest(const uint8_t* data, size_t size, MessageParcel* datas, 37 void OnRemoteStartRequest(const uint8_t* data, size_t size, MessageParcel* datas, 39 void OnRemoteStopRequest(const uint8_t* data, size_t size, MessageParcel* datas, 41 void OnRemoteSecurityEventQuery(const uint8_t* data, size_t size, MessageParcel* datas, 46 MessageParcel datas; in OnRemoteRequestFuzzTest() local 49 datas.WriteInterfaceToken(ISecurityCollectorManager::GetDescriptor()); in OnRemoteRequestFuzzTest() 52 OnRemoteSubscribeRequest(data, size, &datas, &reply, &option); in OnRemoteRequestFuzzTest() 56 OnRemoteUnsubscribeRequest(data, size, &datas, &reply, &option); in OnRemoteRequestFuzzTest() 60 OnRemoteStartRequest(data, size, &datas, in OnRemoteRequestFuzzTest() 73 OnRemoteSubscribeRequest(const uint8_t* data, size_t size, MessageParcel* datas, MessageParcel* reply, MessageOption* option) OnRemoteSubscribeRequest() argument 98 OnRemoteUnsubscribeRequest(const uint8_t* data, size_t size, MessageParcel* datas, MessageParcel* reply, MessageOption* option) OnRemoteUnsubscribeRequest() argument 121 OnRemoteStartRequest(const uint8_t* data, size_t size, MessageParcel* datas, MessageParcel* reply, MessageOption* option) OnRemoteStartRequest() argument 146 OnRemoteStopRequest(const uint8_t* data, size_t size, MessageParcel* datas, MessageParcel* reply, MessageOption* option) OnRemoteStopRequest() argument 169 OnRemoteSecurityEventQuery(const uint8_t* data, size_t size, MessageParcel* datas, MessageParcel* reply, MessageOption* option) OnRemoteSecurityEventQuery() argument [all...] |
/base/account/os_account/test/fuzztest/osaccount_stub/setspecificosaccountconstraintsstub_fuzzer/ |
H A D | setspecificosaccountconstraintsstub_fuzzer.cpp | 40 MessageParcel datas; in SetSpecificOsAccountConstraintsStubFuzzTest() local 41 datas.WriteInterfaceToken(IOS_ACCOUNT_DESCRIPTOR); in SetSpecificOsAccountConstraintsStubFuzzTest() 43 if (!datas.WriteInt32(ENFORCER_ID)) { in SetSpecificOsAccountConstraintsStubFuzzTest() 46 if (!datas.WriteInt32(TARGET_ID)) { in SetSpecificOsAccountConstraintsStubFuzzTest() 54 if (!datas.WriteStringVector(constraints)) { in SetSpecificOsAccountConstraintsStubFuzzTest() 60 if (!datas.WriteBool(enable)) { in SetSpecificOsAccountConstraintsStubFuzzTest() 63 if (!datas.WriteBool(isDeviceOwner)) { in SetSpecificOsAccountConstraintsStubFuzzTest() 73 static_cast<int32_t>(OsAccountInterfaceCode::SET_SPECIFIC_OS_ACCOUNT_CONSTRAINTS), datas, reply, option); in SetSpecificOsAccountConstraintsStubFuzzTest() local
|
/base/security/security_guard/test/fuzztest/ipc/riskanalysismanager_fuzzer/ |
H A D | risk_analysis_manager_fuzzer.cpp | 37 MessageParcel datas; in OnRemoteRequestFuzzTest() local 40 datas.WriteInterfaceToken(IRiskAnalysisManager::GetDescriptor()); in OnRemoteRequestFuzzTest() 44 datas.WriteUint32(modelId); in OnRemoteRequestFuzzTest() 50 datas.WriteRemoteObject(callback); in OnRemoteRequestFuzzTest() 51 g_service.OnRemoteRequest(RiskAnalysisManagerStub::CMD_GET_SECURITY_MODEL_RESULT, datas, reply, option); in OnRemoteRequestFuzzTest() 55 datas.WriteUint32(modelId); in OnRemoteRequestFuzzTest() 56 datas.WriteBool(size % REMAINDER_VALUE == 0); in OnRemoteRequestFuzzTest() 57 g_service.OnRemoteRequest(RiskAnalysisManagerStub::CMD_SET_MODEL_STATE, datas, reply, option); in OnRemoteRequestFuzzTest()
|
/base/security/asset/services/db_operator/src/test/ |
H A D | test_table.rs | 97 let mut datas = DbMap::new(); in insert_test_data() variables 98 datas.insert_attr("Owner", b"owner1".to_vec()); in insert_test_data() 99 datas.insert_attr("Alias", b"alias1".to_vec()); in insert_test_data() 100 datas.insert_attr("value", b"aaaa".to_vec()); in insert_test_data() 101 assert_eq!(1, table.insert_row(&datas).unwrap()); in insert_test_data() 103 datas.insert_attr("Owner", b"owner2".to_vec()); in insert_test_data() 104 datas.insert_attr("Alias", b"alias2".to_vec()); in insert_test_data() 105 datas.insert_attr("value", b"bbbb".to_vec()); in insert_test_data() 106 assert_eq!(1, table.insert_row(&datas).unwrap()); in insert_test_data() 108 datas in insert_test_data() 135 let mut datas = DbMap::new(); data_life_circle() variables [all...] |
/base/security/device_auth/test/fuzztest/devauth_fuzzer/ |
H A D | devauth_fuzzer.cpp | 80 MessageParcel datas; in FuzzDoRegCallback() local 81 datas.WriteInterfaceToken(DEV_AUTH_SERVICE_INTERFACE_TOKEN); in FuzzDoRegCallback() 82 datas.WriteInt32(i); in FuzzDoRegCallback() 83 datas.WriteInt32(size + sizeof(int32_t)); in FuzzDoRegCallback() 84 datas.WriteInt32(0); in FuzzDoRegCallback() 85 datas.WriteInt32(size); in FuzzDoRegCallback() 86 datas.WriteBuffer(data, size); in FuzzDoRegCallback() 87 datas.RewindRead(0); in FuzzDoRegCallback() 90 (void)serviceObj->OnRemoteRequest(1, datas, reply, option); in FuzzDoRegCallback()
|
/base/account/os_account/test/fuzztest/osaccount_stub/setglobalosaccountconstraintsstub_fuzzer/ |
H A D | setglobalosaccountconstraintsstub_fuzzer.cpp | 39 MessageParcel datas; in SetGlobalOsAccountConstraintsStubFuzzTest() local 41 datas.WriteInterfaceToken(IOS_ACCOUNT_DESCRIPTOR); in SetGlobalOsAccountConstraintsStubFuzzTest() 43 if (!datas.WriteInt32(ENFORCER_ID)) { in SetGlobalOsAccountConstraintsStubFuzzTest() 51 if (!datas.WriteStringVector(constraints)) { in SetGlobalOsAccountConstraintsStubFuzzTest() 57 if (!datas.WriteBool(enable)) { in SetGlobalOsAccountConstraintsStubFuzzTest() 60 if (!datas.WriteBool(isDeviceOwner)) { in SetGlobalOsAccountConstraintsStubFuzzTest() 70 static_cast<int32_t>(OsAccountInterfaceCode::SET_GLOBAL_OS_ACCOUNT_CONSTRAINTS), datas, reply, option); in SetGlobalOsAccountConstraintsStubFuzzTest() local
|
/base/security/access_token/test/fuzztest/services/privacy/startusingpermissioncallbackstub_fuzzer/ |
H A D | startusingpermissioncallbackstub_fuzzer.cpp | 62 MessageParcel datas; in StartUsingPermissionCallbackStubFuzzTest() local 63 datas.WriteInterfaceToken(IPrivacyManager::GetDescriptor()); in StartUsingPermissionCallbackStubFuzzTest() 64 if (!datas.WriteUint32(static_cast<AccessTokenID>(fuzzData.GetData<uint32_t>()))) { in StartUsingPermissionCallbackStubFuzzTest() 67 if (!datas.WriteInt32(fuzzData.GetData<int32_t>())) { in StartUsingPermissionCallbackStubFuzzTest() 70 if (!datas.WriteString(fuzzData.GenerateRandomString())) { in StartUsingPermissionCallbackStubFuzzTest() 73 if (!datas.WriteRemoteObject(callbackWrap->AsObject())) { in StartUsingPermissionCallbackStubFuzzTest() 81 DelayedSingleton<PrivacyManagerService>::GetInstance()->OnRemoteRequest(code, datas, reply, option); in StartUsingPermissionCallbackStubFuzzTest()
|
/base/account/os_account/test/fuzztest/osaccount_stub/proccreateosaccountwithshortnamestub_fuzzer/ |
H A D | proccreateosaccountwithshortnamestub_fuzzer.cpp | 37 MessageParcel datas; in ProcCreateOsAccountWithShortNameStubFuzzTest() local 38 datas.WriteInterfaceToken(IOS_ACCOUNT_DESCRIPTOR); in ProcCreateOsAccountWithShortNameStubFuzzTest() 40 if (!datas.WriteString(fuzzData.GenerateRandomString())) { in ProcCreateOsAccountWithShortNameStubFuzzTest() 43 if (!datas.WriteString(fuzzData.GenerateRandomString())) { in ProcCreateOsAccountWithShortNameStubFuzzTest() 47 if (!datas.WriteInt32(testType)) { in ProcCreateOsAccountWithShortNameStubFuzzTest() 57 static_cast<int32_t>(OsAccountInterfaceCode::CREATE_OS_ACCOUNT_WITH_SHORT_NAME), datas, reply, option); in ProcCreateOsAccountWithShortNameStubFuzzTest() local
|
/base/msdp/device_status/test/fuzztest/updatepreviewstyle_fuzzer/ |
H A D | updatepreviewstyle_fuzzer.cpp | 39 MessageParcel datas; in UpdatePreviewStyleFuzzTest() local 40 if (!datas.WriteInterfaceToken(FORMMGR_DEVICE_TOKEN)) { in UpdatePreviewStyleFuzzTest() 48 if (PreviewStylePacker::Marshalling(previewStyle, datas) != RET_OK) { in UpdatePreviewStyleFuzzTest() 52 if (!datas.WriteBuffer(data, size) || !datas.RewindRead(0)) { in UpdatePreviewStyleFuzzTest() 59 static_cast<uint32_t>(Msdp::DeviceInterfaceCode::UPDATE_PREVIEW_STYLE), datas, reply, option); in UpdatePreviewStyleFuzzTest() local
|
/base/security/access_token/test/fuzztest/services/privacy/startusingpermissionstub_fuzzer/ |
H A D | startusingpermissionstub_fuzzer.cpp | 39 MessageParcel datas; in StartUsingPermissionStubFuzzTest() local 40 datas.WriteInterfaceToken(IPrivacyManager::GetDescriptor()); in StartUsingPermissionStubFuzzTest() 41 if (!datas.WriteUint32(static_cast<AccessTokenID>(fuzzData.GetData<uint32_t>()))) { in StartUsingPermissionStubFuzzTest() 44 if (!datas.WriteInt32(fuzzData.GetData<int32_t>())) { in StartUsingPermissionStubFuzzTest() 47 if (!datas.WriteString(fuzzData.GenerateRandomString())) { in StartUsingPermissionStubFuzzTest() 55 DelayedSingleton<PrivacyManagerService>::GetInstance()->OnRemoteRequest(code, datas, reply, option); in StartUsingPermissionStubFuzzTest()
|
/base/security/access_token/test/fuzztest/services/privacy/stopusingpermissionstub_fuzzer/ |
H A D | stopusingpermissionstub_fuzzer.cpp | 39 MessageParcel datas; in StopUsingPermissionStubFuzzTest() local 40 datas.WriteInterfaceToken(IPrivacyManager::GetDescriptor()); in StopUsingPermissionStubFuzzTest() 41 if (!datas.WriteUint32(static_cast<AccessTokenID>(fuzzData.GetData<uint32_t>()))) { in StopUsingPermissionStubFuzzTest() 44 if (!datas.WriteInt32(fuzzData.GetData<int32_t>())) { in StopUsingPermissionStubFuzzTest() 47 if (!datas.WriteString(fuzzData.GenerateRandomString())) { in StopUsingPermissionStubFuzzTest() 55 DelayedSingleton<PrivacyManagerService>::GetInstance()->OnRemoteRequest(code, datas, reply, option); in StopUsingPermissionStubFuzzTest()
|
/base/security/device_auth/test/fuzztest/devauthcb_fuzzer/ |
H A D | devauthcb_fuzzer.cpp | 69 MessageParcel datas; in FuzzDoCallback() local 70 datas.WriteInterfaceToken(DEV_AUTH_CB_INTERFACE_TOKEN); in FuzzDoCallback() 71 datas.WriteInt32(0); in FuzzDoCallback() 72 datas.WritePointer(0x0); in FuzzDoCallback() 73 datas.RewindRead(0); in FuzzDoCallback() 76 (void)remoteObj->OnRemoteRequest(1, datas, reply, option); in FuzzDoCallback()
|
/base/account/os_account/test/fuzztest/osaccount_stub/isosaccountconstraintenablestub_fuzzer/ |
H A D | isosaccountconstraintenablestub_fuzzer.cpp | 32 MessageParcel datas; in IsOsAccountConstraintEnableStubFuzzTest() local 33 if ((data == nullptr) || (size == 0) || (!datas.WriteInterfaceToken(IOS_ACCOUNT_DESCRIPTOR))) { in IsOsAccountConstraintEnableStubFuzzTest() 37 if (!datas.WriteInt32(fuzzData.GetData<int32_t>())) { in IsOsAccountConstraintEnableStubFuzzTest() 40 if (!datas.WriteString(fuzzData.GenerateRandomString())) { in IsOsAccountConstraintEnableStubFuzzTest() 50 static_cast<int32_t>(OsAccountInterfaceCode::IS_OS_ACCOUNT_CONSTRAINT_ENABLE), datas, reply, option); in IsOsAccountConstraintEnableStubFuzzTest() local
|
/base/account/os_account/test/fuzztest/osaccount_stub/queryosaccountconstraintsourcetypesstub_fuzzer/ |
H A D | queryosaccountconstraintsourcetypesstub_fuzzer.cpp | 32 MessageParcel datas; in QueryOsAccountConstraintSourceTypesStubFuzzTest() local 33 if ((data == nullptr) || (size == 0) || (!datas.WriteInterfaceToken(IOS_ACCOUNT_DESCRIPTOR))) { in QueryOsAccountConstraintSourceTypesStubFuzzTest() 37 if (!datas.WriteInt32(fuzzData.GetData<int32_t>())) { in QueryOsAccountConstraintSourceTypesStubFuzzTest() 41 if (!datas.WriteString(fuzzData.GenerateRandomString())) { in QueryOsAccountConstraintSourceTypesStubFuzzTest() 51 static_cast<int32_t>(OsAccountInterfaceCode::QUERY_OS_ACCOUNT_CONSTRAINT_SOURCE_TYPES), datas, reply, option); in QueryOsAccountConstraintSourceTypesStubFuzzTest() local
|
/base/account/os_account/test/fuzztest/osaccount_stub/setosaccountprofilephotostub_fuzzer/ |
H A D | setosaccountprofilephotostub_fuzzer.cpp | 32 MessageParcel datas; in SetOsAccountProfilePhotoStubFuzzTest() local 33 if ((data == nullptr) || (size == 0) || (!datas.WriteInterfaceToken(IOS_ACCOUNT_DESCRIPTOR))) { in SetOsAccountProfilePhotoStubFuzzTest() 37 if (!datas.WriteInt32(fuzzData.GetData<int32_t>())) { in SetOsAccountProfilePhotoStubFuzzTest() 41 if (!datas.WriteString(fuzzData.GenerateRandomString())) { in SetOsAccountProfilePhotoStubFuzzTest() 51 static_cast<int32_t>(OsAccountInterfaceCode::SET_OS_ACCOUNT_PROFILE_PHOTO), datas, reply, option); in SetOsAccountProfilePhotoStubFuzzTest() local
|
/base/account/os_account/test/fuzztest/osaccount_stub/procsetosaccountnamestub_fuzzer/ |
H A D | procsetosaccountnamestub_fuzzer.cpp | 35 MessageParcel datas; in ProcSetOsAccountNameStubFuzzTest() local 36 if (!datas.WriteInterfaceToken(IOS_ACCOUNT_DESCRIPTOR)) { in ProcSetOsAccountNameStubFuzzTest() 41 if (!datas.WriteInt32(fuzzData.GetData<int32_t>())) { in ProcSetOsAccountNameStubFuzzTest() 45 if (!datas.WriteString(fuzzData.GenerateRandomString())) { in ProcSetOsAccountNameStubFuzzTest() 55 static_cast<int32_t>(OsAccountInterfaceCode::SET_OS_ACCOUNT_NAME), datas, reply, option); in ProcSetOsAccountNameStubFuzzTest() local
|
/base/account/os_account/test/fuzztest/osaccount_stub/getosaccountlocalidfromdomainstub_fuzzer/ |
H A D | getosaccountlocalidfromdomainstub_fuzzer.cpp | 36 MessageParcel datas; in GetOsAccountLocalIdFromDomainStubFuzzTest() local 37 datas.WriteInterfaceToken(IOS_ACCOUNT_DESCRIPTOR); in GetOsAccountLocalIdFromDomainStubFuzzTest() 39 if (!datas.WriteString(fuzzData.GenerateRandomString())) { in GetOsAccountLocalIdFromDomainStubFuzzTest() 43 if (!datas.WriteString(fuzzData.GenerateRandomString())) { in GetOsAccountLocalIdFromDomainStubFuzzTest() 53 static_cast<int32_t>(OsAccountInterfaceCode::GET_OS_ACCOUNT_LOCAL_ID_FROM_DOMAIN), datas, reply, option); in GetOsAccountLocalIdFromDomainStubFuzzTest() local
|