/drivers/hdf_core/framework/test/unittest/pm/ |
H A D | hdf_pm_driver_test.c | 33 #define CHECK_VALUE(index, cnt) \ 34 (g_pmTestType[(index)].resumeCnt == (cnt) && g_pmTestType[(index)].suspendCnt == (cnt)) 238 uint32_t index; in HdfPmClearTestCnt() local 240 for (index = 0; index <= PM_TEST_DRIVER; index++) { in HdfPmClearTestCnt() 241 g_pmTestType[index].resumeCnt = 0; in HdfPmClearTestCnt() 242 g_pmTestType[index].suspendCnt = 0; in HdfPmClearTestCnt() 246 static void HdfPmRegisterTestListener(int32_t index) in HdfPmRegisterTestListener() argument 274 HdfPmBakListener(int32_t index) HdfPmBakListener() argument 283 HdfPmTestAcquire(uint32_t index) HdfPmTestAcquire() argument 288 HdfPmTestRelease(uint32_t index) HdfPmTestRelease() argument 293 HdfPmTestAcquireSync(uint32_t index) HdfPmTestAcquireSync() argument 298 HdfPmTestReleaseSync(uint32_t index) HdfPmTestReleaseSync() argument 305 uint32_t index; HdfPmTestBegin() local 319 uint32_t index; HdfPmTestEnd() local 334 uint32_t index; HdfPmTestOneDriver() local 358 uint32_t index; HdfPmTestTwoDriver() local 385 uint32_t index; HdfPmTestThreeDriver() local 431 uint32_t index; HdfPmTestThreeDriverSeqHundred() local 572 uint32_t index; HdfPmDriverDispatch() local [all...] |
/drivers/hdf_core/framework/model/audio/core/src/ |
H A D | audio_parse.c | 125 uint32_t index; in GetAudioRegGroupNameIndex() local 131 for (index = 0; index < AUDIO_GROUP_MAX; ++index) { in GetAudioRegGroupNameIndex() 132 if ((g_audioRegGroupName[index] != NULL) && (strcmp(name, g_audioRegGroupName[index]) == 0)) { in GetAudioRegGroupNameIndex() 137 return index; in GetAudioRegGroupNameIndex() 144 int32_t index; in GetRegArray() local 152 index = group->groupIndex; in GetRegArray() 153 if (index > in GetRegArray() 185 int32_t index; ParseAudioRegItem() local 228 int32_t index; ParseAudioEnumRegItem() local 272 int32_t index; ParseAudioSapmItem() local 314 int32_t index; ParseAudioCtrlItem() local 351 int32_t index; ParseAudioAddrItem() local 381 ParseAudioRegGroup(const struct DeviceResourceIface *parser, const struct DeviceResourceNode *regCfgNode, struct AudioRegCfgGroupNode **groupNode, uint32_t index) ParseAudioRegGroup() argument 437 int32_t index; ReleaseAudioAllRegConfig() local 577 uint16_t index; AudioGetRegConfig() local [all...] |
/drivers/peripheral/clearplay/hdi_service/common/ |
H A D | base64_utils.cpp | 77 for (size_t index = 0; index < CHAR_ARRAY_LENGTH_FOUR; ++index) { in MakeCharFour() 78 charArrayFour[index] = table[index]; in MakeCharFour() 93 for (size_t index = 0; index < CHAR_ARRAY_LENGTH_THREE; ++index) { in MakeCharTree() 94 charArrayThree[index] = table[index]; in MakeCharTree() 105 size_t index = 0; Encode() local 149 size_t index = 0; Decode() local [all...] |
/test/xts/acts/multimedia/camera/camera_ndk_xts/OHCameraNdk/entry/src/main/cpp/ |
H A D | mian.cpp | 52 int32_t index; in InitCamera() local 53 napi_get_value_int32(env, args[1], &index); in InitCamera() 55 ndkCamera = new NDKCamera(surfaceId, index); in InitCamera() 68 int32_t index; in CameraGetCameraManager() local 69 napi_get_value_int32(env, args[0], &index); in CameraGetCameraManager() 74 if (index == PARAMETER_OK) { in CameraGetCameraManager() 97 int32_t index; in OHCameraManagerRegisterCallback() local 98 napi_get_value_int32(env, args[0], &index); in OHCameraManagerRegisterCallback() 100 Camera_ErrorCode code = ndkCamera->CameraManagerRegisterCallback(index); in OHCameraManagerRegisterCallback() 114 int32_t index; in CameraDeleteCameraManager() local 129 int32_t index; CameraManagerGetSupportedCameras() local 164 int32_t index; CameraManagerDeleteSupportedCameras() local 180 int32_t index; GetSupportedCameraOutputCapability() local 196 int32_t index; OHCameraManagerCreatePreviewOutput() local 212 int32_t index; OHCameraManagerCreateCameraInput() local 260 int32_t index; OHCreateCameraInputWithPositionAndType() local 277 int32_t index; OHCameraManagerCreateCaptureSession() local 293 int32_t index; CameraManagerDeleteSupportedCameraOutputCapability() local 309 int32_t index; PreviewOutputRegisterCallback() local 332 int32_t index; OHCameraManagerCreatePhotoOutput() local 347 int32_t index; OHCameraManagerCreateMetadataOutput() local 363 int32_t index; OHCameraInputOpen() local 379 int32_t index; OHCameraInputClose() local 395 int32_t index; OHCameraInputRelease() local 411 int32_t index; OHCameraInputRegisterCallback() local 427 int32_t index; OHCameraInputUnregisterCallback() local 443 int32_t index; OHCaptureSessionBeginConfig() local 459 int32_t index; OHCaptureSessionCommitConfig() local 475 int32_t index; OHCaptureSessionStart() local 491 int32_t index; OHCaptureSessionStop() local 507 int32_t index; OHCaptureSessionRelease() local 523 int32_t index; OHCaptureSessionRegisterCallback() local 539 int32_t index; OHCaptureSessionUnregisterCallback() local 555 int32_t index; OHCaptureSessionGetExposureBias() local 571 int32_t index; OHCaptureSessionAddInput() local 587 int32_t index; OHCaptureSessionRemoveInput() local 603 int32_t index; OHCaptureSessionAddPreviewOutput() local 619 int32_t index; OHCaptureSessionAddPhotoOutput() local 635 int32_t index; OHCaptureSessionGetExposureBiasRange() local 651 int32_t index; OHCameraManagerIsCameraMuted() local 667 int32_t index; OHCaptureSessionGetExposureMode() local 686 int32_t index; OHCaptureSessionIsExposureModeSupported() local 704 int32_t index; OHCaptureSessionSetExposureMode() local 722 int32_t index; OHCaptureSessionSetExposureBias() local 740 int32_t index; OHCaptureSessionIsFlashModeSupported() local 755 int32_t index; OHCaptureSessionHasFlash() local 774 int32_t index; OHCaptureSessionSetFlashMode() local 789 int32_t index; OHCaptureSessionGetFlashMode() local 808 int32_t index; OHCaptureSessionIsFocusModeSupported() local 823 int32_t index; OHCaptureSessionGetFocusMode() local 839 int32_t index; OHCaptureSessionGetFocusPoint() local 864 int32_t index; OHCaptureSessionSetFocusPoint() local 879 int32_t index; OHCaptureSessionGetMeteringPoint() local 895 int32_t index; OHCaptureSessionGetZoomRatio() local 911 int32_t index; OHCaptureSessionGetZoomRatioRange() local 930 int32_t index; OHCaptureSessionSetZoomRatio() local 955 int32_t index; OHCaptureSessionSetMeteringPoint() local 973 int32_t index; OHCaptureSessionIsVideoStabilizationModeSupported() local 988 int32_t index; OHCaptureSessionGetVideoStabilizationMode() local 1007 int32_t index; OHCaptureSessionSetVideoStabilizationMode() local 1022 int32_t index; OHCaptureSessionRemovePreviewOutput() local 1038 int32_t index; OHCaptureSessionRemovePhotoOutput() local 1054 int32_t index; OHCaptureSessionAddVideoOutput() local 1076 int32_t index; OHCameraManagerCreateVideoOutput() local 1091 int32_t index; OHVideoOutputRegisterCallback() local 1107 int32_t index; OHVideoOutputUnregisterCallback() local 1123 int32_t index; OHVideoOutputStart() local 1139 int32_t index; OHVideoOutputStop() local 1155 int32_t index; OHCaptureSessionRemoveVideoOutput() local 1171 int32_t index; OHVideoOutputRelease() local 1187 int32_t index; OHCameraManagerUnregisterCallback() local 1203 int32_t index; OHPreviewOutputStart() local 1219 int32_t index; OHPreviewOutputStop() local 1235 int32_t index; OHPreviewOutputRelease() local 1251 int32_t index; OHPhotoOutputRegisterCallback() local 1267 int32_t index; OHPhotoOutputUnregisterCallback() local 1283 int32_t index; OHPhotoOutputIsMirrorSupported() local 1299 int32_t index; OHPhotoOutputCapture() local 1364 int32_t index; OHPhotoOutputCaptureWithCaptureSetting() local 1379 int32_t index; OHPhotoOutputRelease() local [all...] |
/test/xts/acts/security_lite/huks/liteos_a_adapter/ |
H A D | hks_generate_key_test.cpp | 82 uint32_t index = 0; in HWTEST_F() local 86 g_testGenKeyParams[index].keyAliasParams.blobExist, in HWTEST_F() 87 g_testGenKeyParams[index].keyAliasParams.blobSize, in HWTEST_F() 88 g_testGenKeyParams[index].keyAliasParams.blobDataExist, in HWTEST_F() 89 g_testGenKeyParams[index].keyAliasParams.blobDataSize); in HWTEST_F() 94 g_testGenKeyParams[index].paramSetParams.paramSetExist, in HWTEST_F() 95 g_testGenKeyParams[index].paramSetParams.setAlg, g_testGenKeyParams[index].paramSetParams.alg, in HWTEST_F() 96 g_testGenKeyParams[index].paramSetParams.setKeySize, g_testGenKeyParams[index] in HWTEST_F() [all...] |
H A D | hks_derive_test.cpp | 147 static int32_t BaseTestDerive(uint32_t index) in BaseTestDerive() argument 152 if (g_testDeriveParams[index].genKeyParamSetParams.setKeyStorageFlag && in BaseTestDerive() 153 (g_testDeriveParams[index].genKeyParamSetParams.keyStorageFlag == HKS_STORAGE_TEMP)) { in BaseTestDerive() 154 ret = GenerateLocalRandomKey(&keyAlias, &g_testDeriveParams[index].localKeyParams); in BaseTestDerive() 156 if (g_testDeriveParams[index].keyAliasParams.blobExist) { in BaseTestDerive() 157 ret = HuksGenerateKey(&keyAlias, &g_testDeriveParams[index].keyAliasParams, in BaseTestDerive() 158 &g_testDeriveParams[index].genKeyParamSetParams, NULL); in BaseTestDerive() 161 g_testDeriveParams[index].masterKeyParams.blobExist, in BaseTestDerive() 162 g_testDeriveParams[index].masterKeyParams.blobSize, in BaseTestDerive() 163 g_testDeriveParams[index] in BaseTestDerive() [all...] |
H A D | hks_mac_test.cpp | 131 static int32_t BaseTestMac(uint32_t index) in BaseTestMac() argument 137 if (g_testMacParams[index].macType == HKS_TEST_MAC_TYPE_REE) { in BaseTestMac() 139 g_testMacParams[index].keyParams.blobExist, in BaseTestMac() 140 g_testMacParams[index].keyParams.blobSize, in BaseTestMac() 141 g_testMacParams[index].keyParams.blobDataExist, in BaseTestMac() 142 g_testMacParams[index].keyParams.blobDataSize); in BaseTestMac() 144 if (g_testMacParams[index].keyAliasParams.blobExist) { in BaseTestMac() 145 ret = HuksGenerateKey(&key, &(g_testMacParams[index].keyAliasParams), in BaseTestMac() 146 &g_testMacParams[index].genKeyParamSetParams, NULL); in BaseTestMac() 149 g_testMacParams[index] in BaseTestMac() [all...] |
/test/xts/acts/telephony/networkmanager/ndk/networkndk/entry/src/main/cpp/ |
H A D | net_connection_ndk_test.cpp | 65 int32_t index;
in OHNetConnFreeDnsResult() local 66 napi_get_value_int32(env, args[PARAM_INDEX_0], &index);
in OHNetConnFreeDnsResult() 69 if (index == CASE_INDEX_1) {
in OHNetConnFreeDnsResult() 72 } else if (index == CASE_INDEX_2) {
in OHNetConnFreeDnsResult() 75 } else if (index == CASE_INDEX_3) {
in OHNetConnFreeDnsResult() 89 int32_t index;
in OHNetConnGetAllNets() local 90 napi_get_value_int32(env, args[PARAM_INDEX_0], &index);
in OHNetConnGetAllNets() 93 if (index == CASE_INDEX_1) {
in OHNetConnGetAllNets() 96 } else if (index == CASE_INDEX_2) {
in OHNetConnGetAllNets() 110 int32_t index;
in OHNetConnHasDefaultNet() local 131 int32_t index; OHNetConnIsDefaultNetMetered() local 152 int32_t index; OHNetConnGetDefaultNet() local 173 int32_t index; OHNetConnGetConnectionProperties() local 203 int32_t index; OHNetConnGetNetCapabilities() local 233 int32_t index; OHNetConnGetDefaultHttpProxy() local 260 int32_t index; OHOSNetConnRegisterDnsResolver() local 281 int32_t index; OHOSNetConnUnregisterDnsResolver() local 305 int32_t index; OHNetConnBindSocket() local 336 int32_t index; OHNetConnRegisterNetConnCallback() local 381 int32_t index; OHNetConnRegisterNetConnCallbackTimeout() local 425 int32_t index; OHNetConnRegisterDefaultNetConnCallback() local 453 int32_t index; OHNetConnUnregisterNetConnCallback() local 508 int32_t index; OHNetConnSetAppHttpProxy() local 541 int32_t index; OHOSNetConnRegisterAppHttpProxyCallback() local 577 int32_t index; OHOSNetConnUnregisterAppHttpProxyCallback() local [all...] |
H A D | net_stack_ndk_test.cpp | 97 static uint32_t TestCaseCertVerification(uint32_t index, char *pemCertPath, char *derCertPath)
in TestCaseCertVerification() argument 102 if (index == CASE_INDEX_1) {
in TestCaseCertVerification() 106 } else if (index == CASE_INDEX_2) {
in TestCaseCertVerification() 109 } else if (index == CASE_INDEX_3) {
in TestCaseCertVerification() 112 } else if (index == CASE_INDEX_4) {
in TestCaseCertVerification() 114 } else if (index == CASE_INDEX_5) {
in TestCaseCertVerification() 117 } else if (index == CASE_INDEX_6) {
in TestCaseCertVerification() 121 } else if (index == CASE_INDEX_7) {
in TestCaseCertVerification() 124 } else if (index == CASE_INDEX_8) {
in TestCaseCertVerification() 127 } else if (index in TestCaseCertVerification() 148 int32_t index; OHNetStackCertVerification() local 181 int32_t index; OHWebSocketClientConstruct() local 210 int32_t index; OHWebSocketClientAddHeader() local 239 int32_t index; OHWebSocketClientConnect() local 271 int32_t index; OHWebSocketClientSend() local 305 int32_t index; OHWebSocketClientClose() local 355 int32_t index; OHWebSocketClientDestroy() local 386 TestCaseGetPinSetForHostName(uint32_t index, const char *hostname) TestCaseGetPinSetForHostName() argument 418 int32_t index; OHNetStackGetPinSetForHostName() local 437 TestCaseGetCertificatesForHostName(uint32_t index, const char *hostname) TestCaseGetCertificatesForHostName() argument 471 int32_t index; OHNetStackGetCertificatesForHostName() local [all...] |
/test/xts/acts/useriam/face_auth/js_api_test/function_test/userauthpart2/entry/src/ohosTest/js/test/ |
H A D | Execute.test.js | 129 for (let index = 0; index < authParams.length; index++) { 130 console.info("Security_IAM_getUserAuthInstance_Func_0043 authParams: " + JSON.stringify(authParams[index])); 131 await userAuthPromise(authParams[index], widgetParamDefault, 176 for (let index = 0; index < widgetParams.length; index++) { 177 console.info("Security_IAM_getUserAuthInstance_Func_0043 widgetParams: " + JSON.stringify(widgetParams[index])); 181 }, widgetParams[index], [all...] |
/test/xts/acts/multimedia/photoAccess/photoAccess/entry/src/main/cpp/napi/ |
H A D | main.cpp | 31 int32_t index; in TestMediaAssetGetUri() local 32 napi_get_value_int32(env, args[0], &index); in TestMediaAssetGetUri() 34 MediaLibrary_ErrorCode code = ndkMediaLibrary->MediaAssetGetUri(index); in TestMediaAssetGetUri() 48 int32_t index; in TestMediaAssetGetDisplayName() local 49 napi_get_value_int32(env, args[0], &index); in TestMediaAssetGetDisplayName() 51 MediaLibrary_ErrorCode code = ndkMediaLibrary->MediaAssetGetDisplayName(index); in TestMediaAssetGetDisplayName() 65 int32_t index; in TestMediaAssetGetSize() local 66 napi_get_value_int32(env, args[0], &index); in TestMediaAssetGetSize() 68 MediaLibrary_ErrorCode code = ndkMediaLibrary->MediaAssetGetSize(index); in TestMediaAssetGetSize() 82 int32_t index; in TestMediaAssetGetDateModifiedMs() local 99 int32_t index; TestMediaAssetGetWidth() local 116 int32_t index; TestMediaAssetGetHeight() local 133 int32_t index; TestMediaAssetGetOrientation() local 150 int32_t index; TestMediaAssetGetMediaType() local 167 int32_t index; TestMediaAssetGetMediaSubType() local 184 int32_t index; TestMediaAssetGetDateAdded() local 201 int32_t index; TestMediaAssetGetDateModified() local 218 int32_t index; TestMediaAssetGetDateTaken() local 235 int32_t index; TestMediaAssetGetDateAddedMs() local 252 int32_t index; TestMediaAssetGetDuration() local 269 int32_t index; TestMediaAssetIsFavorite() local 286 int32_t index; TestMediaAssetGetTitle() local 303 int32_t index; TestMediaAssetRelease() local 320 int32_t index; TestChangeRequestAddResourceWithUri() local 337 int32_t index; TestChangeRequestGetWriteCacheHandler() local 354 int32_t index; TestChangeRequestAddResourceWithBuffer() local 371 int32_t index; TestChangeRequestSaveCameraPhoto() local 388 int32_t index; TestChangeRequestDiscardCameraPhoto() local 405 int32_t index; TestChangeRequestRelease() local 422 int32_t index; TestManagerRequestImage() local 439 int32_t index; TestManagerRequestMovingPhoto() local 456 int32_t index; TestMediaAccessHelperApplyChanges() local 473 int32_t index; TestManagerRelease() local 490 int32_t index; TestMovingPhotoGetUri() local 507 int32_t index; TestMovingPhotoRequestContentWithUris() local 524 int32_t index; TestMovingPhotoRequestContentWithUri() local 541 int32_t index; TestMovingPhotoRequestContentWithBuffer() local 558 int32_t index; TestMovingPhotoRelease() local [all...] |
/test/xts/acts/multimedia/av_codec/demuxer/src/ |
H A D | func_test.cpp | 243 for (int32_t index = 0; index < g_trackCount; index++) { in HWTEST_F() 244 ASSERT_EQ(AV_ERR_OK, OH_AVDemuxer_SelectTrackByID(demuxer, index)); in HWTEST_F() 248 for (int32_t index = 0; index < g_trackCount; index++) { in HWTEST_F() 250 trackFormat = OH_AVSource_GetTrackFormat(source, index); in HWTEST_F() 257 ASSERT_EQ(AV_ERR_OK, OH_AVDemuxer_ReadSample(demuxer, index, memory, &attr)); in HWTEST_F() 292 for (int32_t index in HWTEST_F() [all...] |
H A D | proc_test.cpp | 167 for (int32_t index = 0; index < g_trackCount; index++) { in HWTEST_F() 168 ASSERT_EQ(AV_ERR_OK, OH_AVDemuxer_SelectTrackByID(demuxer, index)); in HWTEST_F() 175 for (int32_t index = 0; index < g_trackCount; index++) { in HWTEST_F() 176 trackFormat = OH_AVSource_GetTrackFormat(source, index); in HWTEST_F() 182 ASSERT_EQ(AV_ERR_OK, OH_AVDemuxer_ReadSample(demuxer, index, memory, &attr)); in HWTEST_F() 186 SetAudioValue(attr, audioIsEnd, audioFrame[index in HWTEST_F() [all...] |
/test/xts/acts/security_lite/huks/liteos_m_adapter/ |
H A D | hks_generate_key_test.c | 107 uint32_t index = 0; in ExecHksGenerateKeyTest001() local 111 g_testGenKeyParams[index].keyAliasParams.blobExist, in ExecHksGenerateKeyTest001() 112 g_testGenKeyParams[index].keyAliasParams.blobSize, in ExecHksGenerateKeyTest001() 113 g_testGenKeyParams[index].keyAliasParams.blobDataExist, in ExecHksGenerateKeyTest001() 114 g_testGenKeyParams[index].keyAliasParams.blobDataSize); in ExecHksGenerateKeyTest001() 119 g_testGenKeyParams[index].paramSetParams.paramSetExist, in ExecHksGenerateKeyTest001() 120 g_testGenKeyParams[index].paramSetParams.setAlg, g_testGenKeyParams[index].paramSetParams.alg, in ExecHksGenerateKeyTest001() 121 g_testGenKeyParams[index].paramSetParams.setKeySize, g_testGenKeyParams[index] in ExecHksGenerateKeyTest001() [all...] |
/drivers/hdf_core/framework/model/audio/common/src/ |
H A D | audio_codec_base.c | 201 const struct AudioSapmCtrlConfig *sapmCompItem, uint16_t index) in SapmCtrlToSapmComp() 208 sapmComponents[index].componentName = in SapmCtrlToSapmComp() 209 g_audioSapmCompNameList[sapmCompItem[index].compNameIndex]; in SapmCtrlToSapmComp() 210 sapmComponents[index].reg = sapmCompItem[index].reg; in SapmCtrlToSapmComp() 211 sapmComponents[index].sapmType = sapmCompItem[index].sapmType; in SapmCtrlToSapmComp() 212 sapmComponents[index].mask = sapmCompItem[index].mask; in SapmCtrlToSapmComp() 213 sapmComponents[index] in SapmCtrlToSapmComp() 200 SapmCtrlToSapmComp(struct AudioSapmComponent *sapmComponents, const struct AudioSapmCtrlConfig *sapmCompItem, uint16_t index) SapmCtrlToSapmComp() argument 223 uint16_t index; CodecSetSapmKcontrolInfo() local 275 uint16_t index; CodecSetSapmConfigInfo() local 326 uint16_t index = 0; CodecSetKcontrolInfo() local 428 uint32_t index; CodecSetCtlFunc() local 736 uint32_t index; CodecDeviceInitRegConfig() local 772 uint16_t index; CodecDaiDeviceStartupRegConfig() local [all...] |
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/ |
H A D | v4l2_buffer.cpp | 129 uint64_t id = (uint64_t)buf.index; in SetAndPushBuffer() 158 queuedBuffers_.push(buf.index); in SetAndPushBuffer() 194 itr->second[buf.index] = frameSpec; in V4L2QueueBuffer() 195 CAMERA_LOGI("insert frameMap fd = %{public}d buf.index = %{public}d\n", fd, buf.index); in V4L2QueueBuffer() 198 frameMap.insert(std::make_pair(buf.index, frameSpec)); in V4L2QueueBuffer() 200 CAMERA_LOGI("insert fd = %{public}d buf.index = %{public}d\n", fd, buf.index); in V4L2QueueBuffer() 210 buf.index = (uint32_t)frameSpec->buffer_->GetIndex(); in MakeInqueueBuffer() 251 buf.m.planes[0].length = adapterBufferMap_[buf.index] in SetMmapInqueueBuffer() 397 int32_t index = (uint32_t)frameSpec->buffer_->GetIndex(); SetAdapterBuffer() local 451 int32_t index = (uint32_t)frameSpec->buffer_->GetIndex(); SetDmabufOn() local [all...] |
/drivers/hdf_core/adapter/khdf/liteos_m/model/storage/src/mmc/ |
H A D | mmc_block_lite.c | 171 uint16_t index; in MmcBlockAdd() local 177 index = mmcDevice->cntlr->index; in MmcBlockAdd() 178 if (index >= FF_VOLUMES) { in MmcBlockAdd() 182 g_diskDrv.drv[index] = &g_diskioMmcOps; in MmcBlockAdd() 183 g_diskDrv.lun[index] = (uint8_t)index; in MmcBlockAdd() 184 g_diskDrv.priv[index] = (void *)mb; in MmcBlockAdd() 185 VolToPart[index].di = (uint8_t)index; in MmcBlockAdd() 209 uint16_t index; MmcBlockRemove() local [all...] |
/test/xts/acts/security_lite/huks/common/ |
H A D | hks_test_cipher.c | 633 int32_t BaseTestCipher(uint32_t times, uint32_t index, uint32_t performTimes)
in BaseTestCipher() argument 638 if ((g_testCipherParams[index].genKeyParamSetParams.setKeyStorageFlag) &&
in BaseTestCipher() 639 g_testCipherParams[index].genKeyParamSetParams.keyStorageFlag == HKS_STORAGE_TEMP) {
in BaseTestCipher() 640 ret = GenerateLocalRandomKey(&keyAlias, &g_testCipherParams[index].localKeyParams);
in BaseTestCipher() 642 ret = HuksGenerateKey(&keyAlias, &g_testCipherParams[index].keyAliasParams,
in BaseTestCipher() 643 &g_testCipherParams[index].genKeyParamSetParams, &g_testCipherParams[index].genKeyParamSetParamsOut);
in BaseTestCipher() 649 &g_testCipherParams[index].plainTextParams, &g_testCipherParams[index].cipherTextParams);
in BaseTestCipher() 656 keyAlias, &g_testCipherParams[index] in BaseTestCipher() 687 BaseTestEncrypt(uint32_t times, uint32_t index, uint32_t performTimes) BaseTestEncrypt() argument 739 BaseTestDecrypt(uint32_t times, uint32_t index, uint32_t performTimes) BaseTestDecrypt() argument [all...] |
/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
H A D | pin_virtual.c | 25 uint32_t index; member 39 static int32_t VirtualPinSetPull(struct PinCntlr *cntlr, uint32_t index, enum PinPullType pullType) in VirtualPinSetPull() argument 48 if (index >= cntlr->pinCount) { in VirtualPinSetPull() 49 HDF_LOGE("VirtualPinSetPull: invalid index:%u!", index); in VirtualPinSetPull() 54 virtual->desc[index].pullType = pullType; in VirtualPinSetPull() 58 static int32_t VirtualPinGetPull(struct PinCntlr *cntlr, uint32_t index, enum PinPullType *pullType) in VirtualPinGetPull() argument 67 if (index >= cntlr->pinCount) { in VirtualPinGetPull() 68 HDF_LOGE("VirtualPinGetPull: invalid index:%u!", index); in VirtualPinGetPull() 77 VirtualPinSetStrength(struct PinCntlr *cntlr, uint32_t index, uint32_t strength) VirtualPinSetStrength() argument 96 VirtualPinGetStrength(struct PinCntlr *cntlr, uint32_t index, uint32_t *strength) VirtualPinGetStrength() argument 115 VirtualPinSetFunc(struct PinCntlr *cntlr, uint32_t index, const char *funcName) VirtualPinSetFunc() argument 144 VirtualPinGetFunc(struct PinCntlr *cntlr, uint32_t index, const char **funcName) VirtualPinGetFunc() argument 222 VirtualPinParsePinNode(const struct DeviceResourceNode *node, struct VirtualPinCntlr *virtual, int32_t index) VirtualPinParsePinNode() argument 313 int32_t index = 0; VirtualPinInit() local [all...] |
/test/xts/acts/multimedia/image_effect/OHImageEffectNDK/entry/src/main/cpp/ |
H A D | effect_filter_test.cpp | 71 int32_t index; in OHEffectBufferInfoSetAddr() local 72 napi_get_value_int32(env, args[0], &index); in OHEffectBufferInfoSetAddr() 76 switch (index) { in OHEffectBufferInfoSetAddr() 106 int32_t index; in OHEffectBufferInfoGetAddr() local 107 napi_get_value_int32(env, args[0], &index); in OHEffectBufferInfoGetAddr() 116 switch (index) { in OHEffectBufferInfoGetAddr() 145 int32_t index; in OHEffectBufferInfoSetEffectFormat() local 146 napi_get_value_int32(env, args[0], &index); in OHEffectBufferInfoSetEffectFormat() 150 switch (index) { in OHEffectBufferInfoSetEffectFormat() 193 int32_t index; in OHEffectBufferInfoGetEffectFormat() local 242 int32_t index; OHEffectBufferInfoSetHeight() local 277 int32_t index; OHEffectBufferInfoGetHeight() local 323 int32_t index; OHEffectBufferInfoSetRowSize() local 359 int32_t index; OHEffectBufferInfoGetRowSize() local 405 int32_t index; OHEffectBufferInfoSetWidth() local 442 int32_t index; OHEffectBufferInfoGetWidth() local 488 int32_t index; OHEffectBufferInfoSetTimestamp() local 522 int32_t index; OHEffectBufferInfoGetTimestamp() local 564 int32_t index; OHEffectBufferInfoRelease() local 604 int32_t index; OHEffectFilterInfoSetFilterName() local 634 int32_t index; OHEffectFilterInfoGetFilterName() local 671 int32_t index; OHEffectFilterInfoSetSupportedBufferTypes() local 705 int32_t index; OHEffectFilterInfoGetSupportedBufferTypes() local 750 int32_t index; OHEffectFilterInfoSetSupportedFormats() local 778 GetSupportedFormats(int32_t index, OH_EffectFilterInfo *filterInfo) GetSupportedFormats() argument 812 int32_t index; OHEffectFilterInfoGetSupportedFormats() local 860 int32_t index; OHEffectFilterInfoRelease() local 887 int32_t index; OHEffectFilterCreate() local 917 int32_t index; OHEffectFilterSetValue() local 962 int32_t index; OHEffectFilterGetValue() local 1010 int32_t index; OHEffectFilterLookupFilterInfo() local 1040 int32_t index; OHEffectFilterLookupFilters() local 1078 int32_t index; OHEffectFilterRegister() local 1115 int32_t index; OHEffectFilterRelease() local 1142 int32_t index; OHEffectFilterReleaseFilterNames() local [all...] |
/test/ostest/wukong/input_factory/src/ |
H A D | appswitch_input.cpp | 50 uint32_t index = util->FindElement(bundleList, bundlename); in OrderInput() local 51 if (index == INVALIDVALUE) { in OrderInput() 57 ErrCode result = AppManager::GetInstance()->StartAbilityByBundleInfo(abilityList[index], bundleList[index]); in OrderInput() 59 PrintResultOfStartAbility(result, index); in OrderInput() 73 uint32_t index = GetAbilityIndex(bundleList); in RandomInput() local 74 if (index == INVALIDVALUE) { in RandomInput() 79 ErrCode result = AppManager::GetInstance()->StartAbilityByBundleInfo(abilityList[index], bundleList[index]); in RandomInput() 81 PrintResultOfStartAbility(result, index); in RandomInput() 106 PrintResultOfStartAbility(const ErrCode result, uint32_t index) PrintResultOfStartAbility() argument 126 uint32_t index = INVALIDVALUE; GetAbilityIndex() local [all...] |
/drivers/hdf_core/framework/model/sensor/driver/common/src/ |
H A D | sensor_config_parser.c | 25 uint32_t index; in GetSensorRegGroupNameIndex() local 31 for (index = 0; index < SENSOR_GROUP_MAX; ++index) { in GetSensorRegGroupNameIndex() 32 if ((g_sensorRegGroupName[index] != NULL) && (strcmp(name, g_sensorRegGroupName[index]) == 0)) { in GetSensorRegGroupNameIndex() 37 return index; in GetSensorRegGroupNameIndex() 42 int32_t index; in ReleaseSensorAllRegConfig() local 48 for (index = 0; index < SENSOR_GROUP_MA in ReleaseSensorAllRegConfig() 65 uint32_t index; ParseSensorRegItem() local 160 uint32_t index; ParseSensorRegConfig() local 464 uint32_t index; ParseSensorDirection() local [all...] |
/test/ostest/wukong/component_event/src/ |
H A D | wukong_tree.cpp | 37 for (uint32_t index = count; index > 0; index--) { in GetSubName() 38 if (index > nameSize) { in GetSubName() 41 subName |= name[nameSize - index]; in GetSubName() 42 if (index > 1) { in GetSubName() 47 for (uint32_t index = count; index > 0; index--) { in GetSubName() 48 if (index > nameSiz in GetSubName() [all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_dot_config_file.py | 18 def __init__(self, index, line): 19 self.index = index 43 def _update_cache(self, item, index, line): 44 self.cache[item] = ConfigItem(index, line) 48 index = self.cache.get(item).index 50 return index, line 51 for index, line in enumerate(self.lines): 55 self._update_cache(item, index, line [all...] |
/test/xts/acts/multimedia/camera/camera_ndk_test/src/main/cpp/ |
H A D | main.cpp | 986 int32_t index; in OHCaptureSessionRegisterCallback() local 987 napi_get_value_int32(env, args[0], &index); in OHCaptureSessionRegisterCallback() 989 Camera_ErrorCode code = ndkCamera_->CaptureSessionRegisterCallback(index); in OHCaptureSessionRegisterCallback() 1002 int32_t index; in OHCaptureSessionUnregisterCallback() local 1003 napi_get_value_int32(env, args[0], &index); in OHCaptureSessionUnregisterCallback() 1005 Camera_ErrorCode code = ndkCamera_->CaptureSessionUnRegisterCallback(index); in OHCaptureSessionUnregisterCallback() 1017 int32_t index; in OHCameraManagerGetSupportedSceneModes() local 1018 napi_get_value_int32(env, args[0], &index); in OHCameraManagerGetSupportedSceneModes() 1020 Camera_ErrorCode code = ndkCamera_->GetSupportedSceneModes(index); in OHCameraManagerGetSupportedSceneModes() 1054 int32_t index; in OHCameraManagerDeleteSceneModes() local 1071 int32_t index; OHCameraManagerGetSupportedCameraOutputCapabilityWithSceneMode() local 1087 int32_t index; OHCaptureSessionSetSessionMode() local 1102 int32_t index; OHCaptureSessionCanAddInput() local 1127 int32_t index; OHCaptureSessionCanAddPreviewOutput() local 1152 int32_t index; OHCaptureSessionCanAddPhotoOutput() local 1177 int32_t index; OHCaptureSessionCanAddVideoOutput() local 1203 int32_t index; OHCaptureSessionAddSecureOutput() local 1217 int32_t index; OHCameraInputOpenSecureCamera() local 1242 int32_t index; OHCameraManagerSetSceneMode() local 1258 int32_t index; OHCameraManagerCreatePreviewOutputUsedInPreconfig() local 1281 int32_t index; OHCameraManagerCreatePhotoOutputUsedInPreconfig() local 1296 int32_t index; OHCaptureSessionCanPreconfig() local 1324 int32_t index; OHCaptureSessionCanPreconfigWithRatio() local 1352 int32_t index; OHCaptureSessionPreconfig() local 1371 int32_t index; OHCaptureSessionPreconfigWithRatio() local 1391 int32_t index; OHCameraManagerCreateVideoOutputUsedInPreconfig() local 1406 int32_t index; OHVideoOutputGetActiveProfile() local 1422 int32_t index; OHVideoOutputDeleteProfile() local 1438 int32_t index; OHPreviewOutputGetActiveProfile() local 1454 int32_t index; OHPreviewOutputDeleteProfile() local 1470 int32_t index; OHPhotoOutputGetActiveProfile() local 1486 int32_t index; OHPhotoOutputDeleteProfile() local 1502 int32_t index; OHCaptureSessionRegisterCallbackOn() local 1518 int32_t index; OHCaptureSessionUnregisterCallbackOff() local 1534 int32_t index; OHPhotoOutputRegisterPhotoAvailableCallback() local 1550 int32_t index; OHPhotoOutputUnregisterPhotoAvailableCallback() local 1566 int32_t index; OHPhotoOutputRegisterPhotoAssetAvailableCallback() local 1582 int32_t index; OHPhotoOutputUnregisterPhotoAssetAvailableCallback() local 1597 int32_t index; OHPhotoOutputIsMovingPhotoSupported() local 1623 int32_t index; OHPhotoOutputEnableMovingPhoto() local 1642 int32_t index; OHPhotoNativeGetMainImage() local 1658 int32_t index; OHPhotoNativeRelease() local 1674 int32_t index; OHCameraManagerCreatePhotoOutputWithoutSurface() local 1697 int32_t index; OHCameraManagerIsTorchSupported() local 1722 int32_t index; OHCameraManagerIsTorchSupportedByTorchMode() local 1748 int32_t index; OHCameraManagerSetTorchMode() local 1765 int32_t index; OHCaptureSessionGetExposureValue() local 1782 int32_t index; OHCaptureSessionGetFocalLength() local 1799 int32_t index; OHCaptureSessionSetSmoothZoom() local 1815 int32_t index; OHCaptureSessionGetSupportedColorSpaces() local 1840 int32_t index; OHCaptureSessionDeleteColorSpaces() local 1856 int32_t index; OHCaptureSessionGetActiveColorSpace() local 1901 int32_t index; OHCaptureSessionSetActiveColorSpace() local 1917 int32_t index; OHPreviewOutputGetSupportedFrameRates() local 1943 int32_t index; OHPreviewOutputSetFrameRate() local 1959 int32_t index; OHPreviewOutputGetActiveFrameRate() local 1986 int32_t index; OHVideoOutputGetSupportedFrameRates() local 2011 int32_t index; OHVideoOutputSetFrameRate() local 2027 int32_t index; OHVideoOutputGetActiveFrameRate() local 2055 int32_t index; OHVideoOutputDeleteFrameRates() local 2072 int32_t index; OHPreviewOutputDeleteFrameRates() local 2089 int32_t index; OHCameraManagerRegisterTorchStatusCallback() local 2106 int32_t index; OHCameraManagerUnregisterTorchStatusCallback() local 2123 int32_t index; OHCaptureSessionRegisterSmoothZoomInfoCallback() local 2140 int32_t index; OHCaptureSessionUnregisterSmoothZoomInfoCallback() local 2157 int32_t index; OHPhotoOutputRegisterCaptureStartWithInfoCallback() local 2174 int32_t index; OHPhotoOutputUnregisterCaptureStartWithInfoCallback() local 2191 int32_t index; OHPhotoOutputRegisterCaptureEndCallback() local 2208 int32_t index; OHPhotoOutputUnregisterCaptureEndCallback() local 2225 int32_t index; OHPhotoOutputRegisterFrameShutterEndCallback() local 2242 int32_t index; OHPhotoOutputUnregisterFrameShutterEndCallback() local 2259 int32_t index; OHPhotoOutputRegisterCaptureReadyCallback() local 2276 int32_t index; OHPhotoOutputUnregisterCaptureReadyCallback() local 2293 int32_t index; OHPhotoOutputRegisterEstimatedCaptureDurationCallback() local 2310 int32_t index; OHPhotoOutputUnregisterEstimatedCaptureDurationCallback() local 2327 int32_t index; OHCameraManagerTorchMode() local [all...] |