/test/xts/hats/hdf/external_device_manager/bus_extension_usb/include/ |
D | usb_impl_mock.h | 36 constexpr int32_t DEV_ADDR_OK = 2; 37 constexpr int32_t DEV_ADDR_OK_2 = 3; 38 constexpr int32_t DEV_ADDR_OK_ERR_DESC = 4; 39 constexpr int32_t DEV_ADDR_OK_NULL_DESC = 5; 41 constexpr int32_t BUS_NUM_OK = 6; 42 constexpr int32_t BUS_NUM_OK_2 = 7; 43 constexpr int32_t DEV_ADDR_INVALID = 255; 44 constexpr int32_t BUS_NUM_INVALID = 255; 45 constexpr int32_t DEFAULT_PORT_ID = 1; 46 constexpr int32_t RETVAL_INVALID = -1; [all …]
|
/test/xts/hats/hdf/hdf_lite/display/ |
D | display_test.h | 78 int32_t DisplayInit(void); 79 int32_t DisplayUninit(void); 80 int32_t InitDisplayTest(void); 81 int32_t DeinitDisplayTest(void); 82 int32_t GetDisplayInfoTest(void); 83 int32_t CreateLayerTest(void); 84 int32_t CloseLayerTest(void); 85 int32_t SetLayerVisibleTest(void); 86 int32_t SetLayerDirtyRegionTest(void); 87 int32_t GetLayerBufferTest(void); [all …]
|
/test/xts/device_attest/services/core/include/adapter/ |
D | attest_adapter.h | 46 int32_t AttestWriteTicket(const TicketInfo* ticketInfo); 48 int32_t AttestReadTicket(TicketInfo* ticketInfo); 50 int32_t AttestWriteAuthStatus(const char* data, uint32_t len); 52 int32_t AttestReadAuthStatus(char* buffer, uint32_t bufferLen); 54 int32_t AttestGetAuthStatusFileSize(uint32_t* len); 56 int32_t AttestCreateResetFlag(void); 60 int32_t AttestGetManufacturekey(uint8_t manufacturekey[], uint32_t len); 62 int32_t AttestGetProductId(uint8_t productId[], uint32_t len); 64 int32_t AttestReadToken(TokenInfo* tokenInfo); 66 int32_t AttestWriteToken(TokenInfo* tokenInfo); [all …]
|
D | attest_adapter_oem.h | 40 int32_t OEMWriteTicket(const TicketInfo* ticketInfo); 42 int32_t OEMReadTicket(TicketInfo* ticketInfo); 44 int32_t OEMWriteAuthStatus(const char* data, uint32_t len); 46 int32_t OEMReadAuthStatus(char* buffer, uint32_t bufferLen); 48 int32_t OEMGetAuthStatusFileSize(uint32_t* len); 50 int32_t OEMCreateFlag(OEM_FLAG_TYPE type); 56 int32_t OEMWriteNetworkConfig(const char* buffer, uint32_t bufferLen); 58 int32_t OEMReadNetworkConfig(char* buffer, uint32_t bufferLen); 60 int32_t OEMReadDefaultNetworkConfig(char* buffer, uint32_t bufferLen); 62 int32_t OEMWriteAuthResultCode(const char* data, uint32_t len); [all …]
|
/test/xts/hats/powermgr/thermal/hdi_thermal_additional/common/ |
D | HDIThermalTest.cpp | 42 using ThermalEventCallback = std::function<int32_t(const HdfThermalCallbackInfo &event)>; 43 static int32_t RegisterThermalEvent(const ThermalEventCallback &eventCb) in RegisterThermalEvent() 48 int32_t OnThermalDataEvent(const HdfThermalCallbackInfo &event) override in OnThermalDataEvent() 59 using FanEventCallback = std::function<int32_t(const HdfThermalCallbackInfo &event)>; 60 static int32_t RegisterFanEvent(const FanEventCallback &eventCb) in RegisterFanEvent() 65 int32_t OnFanDataEvent(const HdfThermalCallbackInfo &event) override in OnFanDataEvent() 104 int32_t cpuFreq = 1994100; 105 int32_t ret = 0; 119 int32_t cpuFreq = -1; 120 int32_t ret = g_thermalInterface->SetCpuFreq(cpuFreq); [all …]
|
/test/xts/device_attest_lite/services/core/include/adapter/ |
D | attest_adapter.h | 46 int32_t AttestWriteTicket(const TicketInfo* ticketInfo); 48 int32_t AttestReadTicket(TicketInfo* ticketInfo); 50 int32_t AttestWriteAuthStatus(const char* data, uint32_t len); 52 int32_t AttestReadAuthStatus(char* buffer, uint32_t bufferLen); 54 int32_t AttestGetAuthStatusFileSize(uint32_t* len); 56 int32_t AttestCreateResetFlag(void); 60 int32_t AttestGetManufacturekey(uint8_t manufacturekey[], uint32_t len); 62 int32_t AttestGetProductId(uint8_t productId[], uint32_t len); 64 int32_t AttestReadToken(TokenInfo* tokenInfo); 66 int32_t AttestWriteToken(TokenInfo* tokenInfo); [all …]
|
D | attest_adapter_oem.h | 40 int32_t OEMWriteTicket(const TicketInfo* ticketInfo); 42 int32_t OEMReadTicket(TicketInfo* ticketInfo); 44 int32_t OEMWriteAuthStatus(const char* data, uint32_t len); 46 int32_t OEMReadAuthStatus(char* buffer, uint32_t bufferLen); 48 int32_t OEMGetAuthStatusFileSize(uint32_t* len); 50 int32_t OEMCreateFlag(OEM_FLAG_TYPE type); 54 int32_t OEMWriteNetworkConfig(const char* buffer, uint32_t bufferLen); 56 int32_t OEMReadNetworkConfig(char* buffer, uint32_t bufferLen); 58 int32_t OEMWriteAuthResultCode(const char* data, uint32_t len); 60 int32_t OEMReadAuthResultCode(char* buffer, uint32_t bufferLen);
|
/test/xts/acts/multimedia_lite/media_lite_posix/recorder_native/src/ |
D | ActsMediaRecorderTest.cpp | 29 const int32_t RET_OK = 0; 30 const int32_t RET_NOK = -1; 31 static int32_t g_recorderSourceMaxCount = 4; // max recorder source setting 41 void RecoderLiteTest::OnError(const int32_t errorType, const int32_t errorCode) in OnError() 46 void RecoderLiteTest::OnInfo(const int32_t type, const int32_t extra) in OnInfo() 52 void TestVideoRecorderCallback::OnError(int32_t errorType, int32_t errorCode) in OnError() 57 void TestVideoRecorderCallback::OnInfo(int32_t type, int32_t extra) in OnInfo() 70 int32_t retStatus = 0; in HWTEST_F() 71 int32_t sourceId = 0; in HWTEST_F() 72 int32_t audioSourceId = 0; in HWTEST_F() [all …]
|
/test/xts/device_attest/services/core/attest/ |
D | attest_service.c | 40 static int32_t GetAuthResultCode(void) in GetAuthResultCode() 42 int32_t ret; in GetAuthResultCode() 58 static int32_t ResetDevice(void) in ResetDevice() 61 int32_t ret = ATTEST_OK; in ResetDevice() 98 static int32_t AuthDevice(AuthResult* authResult) in AuthDevice() 106 int32_t ret; in AuthDevice() 143 static int32_t ActiveToken(AuthResult* authResult) in ActiveToken() 151 int32_t ret = FlushToken(authResult); in ActiveToken() 211 static int32_t AttestStartup(AuthResult *authResult) in AttestStartup() 217 int32_t ret = ATTEST_OK; in AttestStartup() [all …]
|
/test/xts/device_attest_lite/services/core/attest/ |
D | attest_service.c | 40 static int32_t GetAuthResultCode(void) in GetAuthResultCode() 42 int32_t ret; in GetAuthResultCode() 58 static int32_t ConnectWiseDevice(void) in ConnectWiseDevice() 61 int32_t ret = 0; in ConnectWiseDevice() 62 for (int32_t i = 0; i <= WISE_RETRY_CNT; i++) { in ConnectWiseDevice() 86 static int32_t ResetDevice(void) in ResetDevice() 89 int32_t ret = ATTEST_OK; in ResetDevice() 126 static int32_t AuthDevice(AuthResult* authResult) in AuthDevice() 134 int32_t ret; in AuthDevice() 171 static int32_t ActiveToken(AuthResult* authResult) in ActiveToken() [all …]
|
/test/xts/acts/ai/neural_network_runtime/v1_0/common/ |
D | mock_idevice.h | 45 int32_t GetSupportedOperation(const Model& model, std::vector<bool>& ops) override; 47 int32_t IsFloat16PrecisionSupported(bool& isSupported) override; 49 int32_t IsPerformanceModeSupported(bool& isSupported) override; 51 int32_t IsPrioritySupported(bool& isSupported) override; 53 int32_t IsDynamicInputSupported(bool& isSupported) override; 55 int32_t IsModelCacheSupported(bool& isSupported) override; 57 int32_t AllocateBuffer(uint32_t length, SharedBuffer &buffer) override; 59 int32_t ReleaseBuffer(const SharedBuffer &buffer) override; 61 int32_t GetDeviceName(std::string& name) override; 63 int32_t GetVendorName(std::string& name) override; [all …]
|
/test/xts/acts/ai/nncore/common/ |
D | mock_idevice.h | 45 int32_t GetSupportedOperation(const Model& model, std::vector<bool>& ops) override; 47 int32_t IsFloat16PrecisionSupported(bool& isSupported) override; 49 int32_t IsPerformanceModeSupported(bool& isSupported) override; 51 int32_t IsPrioritySupported(bool& isSupported) override; 53 int32_t IsDynamicInputSupported(bool& isSupported) override; 55 int32_t IsModelCacheSupported(bool& isSupported) override; 57 int32_t AllocateBuffer(uint32_t length, SharedBuffer &buffer) override; 59 int32_t ReleaseBuffer(const SharedBuffer &buffer) override; 61 int32_t GetDeviceName(std::string& name) override; 63 int32_t GetVendorName(std::string& name) override; [all …]
|
/test/xts/acts/ai/neural_network_runtime/v2_0/common/ |
D | mock_idevice.h | 45 int32_t GetSupportedOperation(const Model& model, std::vector<bool>& ops) override; 47 int32_t IsFloat16PrecisionSupported(bool& isSupported) override; 49 int32_t IsPerformanceModeSupported(bool& isSupported) override; 51 int32_t IsPrioritySupported(bool& isSupported) override; 53 int32_t IsDynamicInputSupported(bool& isSupported) override; 55 int32_t IsModelCacheSupported(bool& isSupported) override; 57 int32_t AllocateBuffer(uint32_t length, SharedBuffer &buffer) override; 59 int32_t ReleaseBuffer(const SharedBuffer &buffer) override; 61 int32_t GetDeviceName(std::string& name) override; 63 int32_t GetVendorName(std::string& name) override; [all …]
|
/test/xts/acts/multimedia/media/media_cpp_standard/videoDecEncNdk/include/ |
D | VDecEncNdkSample.h | 59 int32_t errorNum_ = 0; 72 int32_t ConfigureDec(struct OH_AVFormat *format); 73 int32_t SetParameterDec(struct OH_AVFormat *format); 74 int32_t SetOutputSurface(); 75 int32_t PrepareDec(); 76 int32_t StartDec(); 77 int32_t StopDec(); 78 int32_t FlushDec(); 79 int32_t ResetDec(); 80 int32_t ReleaseDec(); [all …]
|
/test/xts/hats/telephony/ril/hdi_v1.0/ |
D | hdf_ril_hdiService_test.cpp | 238 void WaitFor(int32_t timeoutSecond); 243 int32_t CallStateUpdated(const RilRadioResponseInfo &responseInfo) override; 244 int32_t CallRingbackVoiceNotice( 246 …int32_t CallSrvccStatusNotice(const RilRadioResponseInfo &responseInfo, const SrvccStatus &srvccSt… 247 …int32_t CallUssdNotice(const RilRadioResponseInfo &responseInfo, const UssdNoticeInfo &ussdNoticeI… 248 …int32_t CallSsNotice(const RilRadioResponseInfo &responseInfo, const SsNoticeInfo &ssNoticeInfo) o… 249 int32_t CallEmergencyNotice( 251 int32_t CallRsrvccStatusNotify(const RilRadioResponseInfo &responseInfo) override; 252 int32_t SetEmergencyCallListResponse(const RilRadioResponseInfo &responseInfo) override; 253 int32_t GetEmergencyCallListResponse( [all …]
|
/test/xts/acts/multimedia/media/media_cpp_standard/audioDecEncNdk/include/ |
D | ADecEncNdkSample.h | 58 int32_t errorNum_ = 0; 69 int32_t ConfigureDec(struct OH_AVFormat *format); 70 int32_t SetParameterDec(struct OH_AVFormat *format); 71 int32_t PrepareDec(); 72 int32_t StartDec(); 73 int32_t StopDec(); 74 int32_t FlushDec(); 75 int32_t ResetDec(); 76 int32_t ReleaseDec(); 80 int32_t ConfigureEnc(struct OH_AVFormat *format); [all …]
|
/test/xts/device_attest/services/devattest_ability/test/tdd/gtest/src/ |
D | attest_tdd_mock_hal.c | 49 int32_t AttestGetManufacturekey(uint8_t manufacturekey[], uint32_t len) in AttestGetManufacturekey() 55 int32_t AttestGetProductId(uint8_t productId[], uint32_t len) in AttestGetProductId() 71 int32_t AttestGetProductKey(uint8_t productKey[], uint32_t len) in AttestGetProductKey() 76 int32_t AttestWriteToken(TokenInfo* tokenInfo) in AttestWriteToken() 81 int32_t AttestReadToken(TokenInfo* tokenInfo) in AttestReadToken() 120 int32_t AttestWriteTicket(const TicketInfo* ticketInfo) in AttestWriteTicket() 125 int32_t AttestReadTicket(TicketInfo* ticketInfo) in AttestReadTicket() 130 int32_t WriteTicketToDevice(const char* ticket, uint8_t len) in WriteTicketToDevice() 135 int32_t ReadTicketFromDevice(char* ticket, uint8_t ticketLen) in ReadTicketFromDevice() 137 int32_t ret = memcpy_s(ticket, ticketLen, ATTEST_TICKET, ticketLen); in ReadTicketFromDevice() [all …]
|
/test/xts/device_attest/services/core/adapter/ |
D | attest_adapter.c | 29 int32_t AttestCreateResetFlag(void) in AttestCreateResetFlag() 35 int32_t AttestWriteAuthStatus(const char* data, uint32_t len) in AttestWriteAuthStatus() 41 int32_t AttestReadAuthStatus(char* buffer, uint32_t bufferLen) in AttestReadAuthStatus() 47 int32_t AttestGetAuthStatusFileSize(uint32_t* len) in AttestGetAuthStatusFileSize() 53 int32_t AttestReadTicket(TicketInfo* ticketInfo) in AttestReadTicket() 59 int32_t AttestWriteTicket(const TicketInfo* ticketInfo) in AttestWriteTicket() 64 int32_t AttestSetParameter(const char *key, const char *value) in AttestSetParameter() 69 int32_t AttestGetParameter(const char *key, const char *def, char *value, uint32_t len) in AttestGetParameter() 79 int32_t AttestWriteNetworkConfig(const char* buffer, uint32_t bufferLen) in AttestWriteNetworkConfig() 84 int32_t AttestReadNetworkConfig(char* buffer, uint32_t bufferLen) in AttestReadNetworkConfig() [all …]
|
/test/xts/device_attest_lite/services/core/include/attest/ |
D | attest_service_auth.h | 29 int32_t FlushAuthResult(const char* ticket, const char* authStatus); 31 int32_t DecodeAuthStatus(const char* infoByBase64, AuthStatus* authStats); 33 int32_t GetAuthStatus(char** result); 35 int32_t CheckVersionChanged(AuthStatus* authStatus); 39 int32_t CheckExpireTime(AuthStatus* authStatus, uint64_t currentTime); 41 int32_t CheckAuthResult(AuthStatus* authStatus); 53 int32_t GenAuthMsg(const ChallengeResult* challengeResult, DevicePacket** devPacket); 55 int32_t SendAuthMsg(const DevicePacket* devicePacket, char** respMsg); 57 int32_t ParseAuthResultResp(const char* msg, AuthResult* authResult); 59 int32_t FlushAttestStatusPara(const char* authStatusBase64); [all …]
|
/test/xts/device_attest/services/core/ |
D | attest_entry.c | 24 int32_t AttestTask(void) in AttestTask() 28 int32_t ret = ProcAttest(); in AttestTask() 36 int32_t QueryAttest(int32_t** resultArray, int32_t arraySize, char** ticket, int32_t* ticketLength) in QueryAttest() 41 int32_t AttestWaitTaskOver(void) in AttestWaitTaskOver() 46 int32_t AttestCreateTimerTask(void) in AttestCreateTimerTask() 52 int32_t ret = AttestStartTimerTask(ATTEST_TIMER_TYPE_PERIOD, in AttestCreateTimerTask() 63 int32_t AttestDestroyTimerTask(void) in AttestDestroyTimerTask()
|
D | attest_entry.h | 27 int32_t AttestTask(void); 29 int32_t QueryAttest(int32_t** resultArray, int32_t arraySize, char** ticket, int32_t* ticketLength); 31 int32_t AttestWaitTaskOver(void); 33 int32_t AttestCreateTimerTask(void); 35 int32_t AttestDestroyTimerTask(void);
|
/test/xts/hats/hdf/external_device_manager/bus_extension_usb/src/ |
D | usb_impl_mock.cpp | 45 int32_t UsbImplMock::GetRawDescriptor(const UsbDev &dev, std::vector<uint8_t> &descriptor) in GetRawDescriptor() 67 int32_t UsbImplMock::GetDeviceDescriptor(const UsbDev& dev, std::vector<uint8_t>& descriptor) in GetDeviceDescriptor() 71 int32_t UsbImplMock::GetStringDescriptor(const UsbDev &dev, uint8_t descId, std::vector<uint8_t> &d… in GetStringDescriptor() 81 int32_t UsbImplMock::QueryPort(int32_t &portId, int32_t &powerRole, int32_t &dataRole, int32_t &mod… in QueryPort() 86 int32_t UsbImplMock::BindUsbdSubscriber(const sptr<IUsbdSubscriber> &subscriber) in BindUsbdSubscriber() 92 int32_t UsbImplMock::UnbindUsbdSubscriber(const sptr<IUsbdSubscriber> &subscriber) in UnbindUsbdSubscriber() 99 int32_t UsbImplMock::SetPortRole(int32_t portId, int32_t powerRole, int32_t dataRole) in SetPortRole() 108 int32_t UsbImplMock::SubscriberDeviceEvent(const USBDeviceInfo &info) in SubscriberDeviceEvent()
|
/test/xts/device_attest/services/core/include/attest/ |
D | attest_service_auth.h | 30 int32_t FlushAuthResult(const char* ticket, const char* authStatus); 32 int32_t DecodeAuthStatus(const char* infoByBase64, AuthStatus* authStats); 34 int32_t GetAuthStatus(char** result); 36 int32_t CheckVersionChanged(AuthStatus* authStatus); 40 int32_t CheckExpireTime(AuthStatus* authStatus, uint64_t currentTime); 42 int32_t CheckAuthResult(AuthStatus* authStatus); 54 int32_t GenAuthMsg(ChallengeResult* challengeResult, DevicePacket** devPacket); 56 int32_t SendAuthMsg(DevicePacket* devicePacket, char** respMsg); 58 int32_t ParseAuthResultResp(const char* msg, AuthResult* authResult); 60 int32_t FlushAttestStatusPara(const char* authStatusBase64);
|
/test/xts/acts/security/huks_napi_BasicTest/src/ |
D | huks_cipher_rsa_test_common.cpp | 26 EXPECT_EQ(ret.errorCode, (int32_t)OH_HUKS_SUCCESS) << "Init failed."; in HksRsaCipherTestEncryptAbnormal() 27 if (ret.errorCode != (int32_t)OH_HUKS_SUCCESS) { in HksRsaCipherTestEncryptAbnormal() 32 …EXPECT_EQ(ret.errorCode, (int32_t)OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT) << "TestUpdateFinish should f… in HksRsaCipherTestEncryptAbnormal() 33 if (ret.errorCode != (int32_t)OH_HUKS_SUCCESS) { in HksRsaCipherTestEncryptAbnormal() 35 EXPECT_EQ(abortRet.errorCode, (int32_t)OH_HUKS_SUCCESS) << "Abort failed."; in HksRsaCipherTestEncryptAbnormal() 38 int32_t ret1 = HksMemCmp(inData->data, cipherText->data, inData->size); in HksRsaCipherTestEncryptAbnormal() 39 EXPECT_NE(ret1, (int32_t)OH_HUKS_SUCCESS) << "cipherText equals inData"; in HksRsaCipherTestEncryptAbnormal() 50 EXPECT_EQ(ret.errorCode, (int32_t)OH_HUKS_SUCCESS) << "Init failed."; in HksRsaCipherTestEncrypt() 51 if (ret.errorCode != (int32_t)OH_HUKS_SUCCESS) { in HksRsaCipherTestEncrypt() 56 EXPECT_EQ(ret.errorCode, (int32_t)OH_HUKS_SUCCESS) << "TestUpdateFinish failed."; in HksRsaCipherTestEncrypt() [all …]
|
/test/xts/hats/hdf/sensor/hdiService/ |
D | hdf_sensor_hdiService_test.cpp | 41 int32_t sensorTypeId; 43 int32_t dataForm; // 0: fixed, 1: range 44 int32_t dataDimension; 72 int32_t IsSuppprtedSensorId(int32_t sensorTypeId) in IsSuppprtedSensorId() 85 constexpr int32_t SENSOR_INTERVAL1 = 200000000; 86 constexpr int32_t SENSOR_INTERVAL2 = 20000000; 87 constexpr int32_t SENSOR_POLL_TIME = 1; 88 constexpr int32_t SENSOR_WAIT_TIME = 100; 89 constexpr int32_t ABNORMAL_SENSORID = -1; 138 int32_t ret = g_sensorInterface->GetAllSensorInfo(g_info); [all …]
|