/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
D | mbedtls_pkcs7.c | 47 #define PKCS7_ERR_RETURN_WITH_LOG(rc) \ argument 49 if ((rc) != PKCS7_SUCC) \ 51 LOG_ERROR("%s:%u, error occurred, ret:%d", __FUNCTION__, __LINE__, (rc)); \ 52 return rc; \ 122 int rc; in GetContentInfoType() local 124 rc = mbedtls_asn1_get_tag(p, end, &seqLen, MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE); in GetContentInfoType() 125 if (rc) { in GetContentInfoType() 126 return rc; in GetContentInfoType() 130 rc = mbedtls_asn1_get_tag(p, end, &len, MBEDTLS_ASN1_OID); in GetContentInfoType() 131 if (rc) { in GetContentInfoType() [all …]
|
/base/hiviewdfx/hiview/adapter/dbstore/ |
D | doc_db.cpp | 56 iwrc rc = ejdb_init(); in OpenDB() local 57 if (rc) { in OpenDB() 58 iwlog_ecode_error3(rc); in OpenDB() 59 HiLog::Error(LABEL, "ejdb init failed, reason:%{public}s", iwlog_ecode_explained(rc)); in OpenDB() 60 return MapErrorCode(rc); in OpenDB() 63 rc = ejdb_open(&opts, &db_); in OpenDB() 64 if (rc) { in OpenDB() 65 iwlog_ecode_error3(rc); in OpenDB() 66 HiLog::Error(LABEL, "open ejdb failed, reason:%{public}s", iwlog_ecode_explained(rc)); in OpenDB() 67 return MapErrorCode(rc); in OpenDB() [all …]
|
D | doc_store.cpp | 77 iwrc rc = 0; in Put() local 78 rc = jbl_from_json(&jbl, entry.value.c_str()); in Put() 79 RCGO(rc, FINISH); in Put() 81 rc = ejdb_put_new(dbPtr->db_, COLLECTION, jbl, const_cast<int64_t*>(&entry.id)); in Put() 82 RCGO(rc, FINISH); in Put() 88 if (rc != 0) { in Put() 89 iwlog_ecode_error3(rc); in Put() 90 … HiLog::Error(LABEL, "put data to doc store failed, reason:%{public}s", iwlog_ecode_explained(rc)); in Put() 91 return MapErrorCode(rc); in Put() 119 iwrc rc = ejdb_patch(dbPtr->db_, COLLECTION, entry.value.c_str(), entry.id); in Merge() local [all …]
|
D | doc_util.cpp | 21 int MapErrorCode(iwrc rc) in MapErrorCode() argument 23 switch (rc) { in MapErrorCode()
|
/base/update/updater/test/unittest/applypatch_test/ |
D | imagepatch_unittest.cpp | 64 auto rc = ReadContentFromFile("/data/updater/applypatch/source.zip", sourceData); in TestZipModeImagePatch() local 65 EXPECT_TRUE(rc); in TestZipModeImagePatch() 70 rc = ReadContentFromFile(patchFile, patchContent); in TestZipModeImagePatch() 71 EXPECT_TRUE(rc); in TestZipModeImagePatch() 83 auto rc = ReadContentFromFile("/data/updater/diffpatch/patchtest.old", sourceData); in TestNormalModeImagePatch() local 84 EXPECT_TRUE(rc); in TestNormalModeImagePatch() 87 rc = ReadContentFromFile(patchFile, patchContent); in TestNormalModeImagePatch() 88 EXPECT_TRUE(rc); in TestNormalModeImagePatch() 100 …auto rc = ReadContentFromFile("/data/updater/applypatch/TestGZipModeImagePatch.old.gz", sourceData… in TestGZipModeImagePatch() local 101 EXPECT_TRUE(rc); in TestGZipModeImagePatch() [all …]
|
D | all_cmd_unittest.cpp | 72 bool rc = updater::utils::ReadFileToString(fd, contents); in GetTransferContents() local 74 return rc; in GetTransferContents() 116 …bool rc = GetTransferContents("/data/updater/applypatch/cmd_001_correct.transfer.list", transferCo… variable 117 EXPECT_TRUE(rc); 127 rc = tm->CommandsParser(fd, transferLines); 128 EXPECT_FALSE(rc);
|
/base/global/resmgr_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
D | hap_manager_test.cpp | 97 ResConfig *rc = CreateResConfig(); variable 98 if (rc == nullptr) { 102 rc->SetLocaleInfo("en", nullptr, "US"); 107 delete (rc); 111 hapManager->UpdateResConfig(*rc); 120 delete (rc); 133 delete (rc); 153 delete (rc);
|
D | res_config_test.cpp | 66 ResConfigImpl *rc = new ResConfigImpl; variable 67 rc->SetLocaleInfo("en", nullptr, "AU"); 72 EXPECT_TRUE(rc->Match(current)); 73 EXPECT_TRUE(rc->Match(target) == false); 76 delete rc;
|
D | resource_manager_test.cpp | 106 auto rc = CreateResConfig(); in AddResource() local 107 if (rc == nullptr) { in AddResource() 111 rc->SetLocaleInfo(language, script, region); in AddResource() 112 rm->UpdateResConfig(*rc); in AddResource() 113 delete rc; in AddResource() 219 ResConfig *rc = CreateResConfig(); variable 220 if (rc == nullptr) { 224 rc->SetLocaleInfo("en", nullptr, "US"); 225 rc->SetDeviceType(DeviceType::DEVICE_CAR); 226 state = rm->UpdateResConfig(*rc); [all …]
|
D | global_test.cpp | 65 auto rc = new ResConfigImpl; in GetResId() local 66 rc->SetLocaleInfo("en", nullptr, "US"); in GetResId() 70 const HapResource *pResource = HapResource::LoadFromIndex(path, rc); in GetResId() 74 delete rc; in GetResId()
|
/base/global/resmgr_standard/frameworks/resmgr/test/unittest/common/ |
D | hap_manager_test.cpp | 97 ResConfig *rc = CreateResConfig(); variable 98 if (rc == nullptr) { 102 rc->SetLocaleInfo("en", nullptr, "US"); 107 delete (rc); 111 hapManager->UpdateResConfig(*rc); 120 delete (rc); 133 delete (rc); 153 delete (rc);
|
D | res_config_test.cpp | 66 ResConfigImpl *rc = new ResConfigImpl; variable 67 rc->SetLocaleInfo("en", nullptr, "AU"); 72 EXPECT_TRUE(rc->Match(current)); 73 EXPECT_TRUE(rc->Match(target) == false); 76 delete rc;
|
D | resource_manager_test.cpp | 113 auto rc = CreateResConfig(); in AddResource() local 114 if (rc == nullptr) { in AddResource() 118 rc->SetLocaleInfo(language, script, region); in AddResource() 119 rm->UpdateResConfig(*rc); in AddResource() 120 delete rc; in AddResource() 129 auto rc = CreateResConfig(); in AddColorModeResource() local 130 if (rc == nullptr) { in AddColorModeResource() 134 rc->SetLocaleInfo("zh", nullptr, nullptr); in AddColorModeResource() 135 rc->SetDeviceType(deviceType); in AddColorModeResource() 136 rc->SetColorMode(colorMode); in AddColorModeResource() [all …]
|
/base/startup/init_lite/test/unittest/ueventd/ |
D | ueventd_config_unittest.cpp | 114 size_t rc = 0; in GenerateConfigFiles() local 116 rc = WriteAll(fd, section.c_str(), section.size()); in GenerateConfigFiles() 117 if (rc != section.size()) { in GenerateConfigFiles() 122 rc = WriteAll(fd, contents.c_str(), contents.size()); in GenerateConfigFiles() 123 if (rc != section.size()) { in GenerateConfigFiles() 135 int rc = mkdir(TEST_PATH, S_IRWXU | S_IRWXG | S_IRWXO); in SetUpTestCase() local 136 if (rc < 0) { in SetUpTestCase() 191 int rc = ParseUeventConfig(const_cast<char*>(file.c_str())); // Invalid section variable 192 EXPECT_EQ(rc, -1); 194 rc = ParseUeventConfig(const_cast<char*>(file.c_str())); // Unknown section [all …]
|
/base/startup/init_lite/interfaces/innerkits/fs_manager/ |
D | fstab_mount.c | 256 int rc = -1; in Mount() local 276 while ((rc = mount(source, target, fsType, flags, data)) != 0) { in Mount() 282 rc = 0; in Mount() 286 return rc; in Mount() 327 int rc = Mount(item->deviceName, item->mountPoint, item->fsType, mountFlags, fsSpecificData); in MountOneItem() local 328 if (rc != 0) { in MountOneItem() 333 return rc; in MountOneItem() 338 int rc = 0; in CheckRequiredAndMount() local 344 rc = MountOneItem(item); in CheckRequiredAndMount() 348 rc = MountOneItem(item); in CheckRequiredAndMount() [all …]
|
/base/startup/init_lite/services/init/standard/ |
D | init_mount.c | 23 int rc; in MountRequriedPartitions() local 25 rc = MountAllWithFstab(fstab, 1); in MountRequriedPartitions() 26 return rc; in MountRequriedPartitions()
|
/base/startup/init_lite/ueventd/ |
D | ueventd_device_handler.c | 60 int rc = symlink(deviceNode, linkName); in CreateSymbolLinks() local 61 if (rc != 0) { in CreateSymbolLinks() 88 int rc = 0; in SetDeviceLable() local 90 rc = RestoreconRecurse(dir); in SetDeviceLable() 93 rc += Restorecon(path); in SetDeviceLable() 94 if (rc != 0) { in SetDeviceLable() 102 int rc = -1; in CreateDeviceNode() local 111 return rc; in CreateDeviceNode() 117 return rc; in CreateDeviceNode() 123 return rc; in CreateDeviceNode() [all …]
|
/base/startup/appspawn_standard/src/ |
D | appspawn_server.cpp | 771 int rc = 0; in DoAppSandboxMountOnce() local 773 rc = mount(originPath.c_str(), destinationPath.c_str(), NULL, MS_BIND | MS_REC, NULL); in DoAppSandboxMountOnce() 774 if (rc) { in DoAppSandboxMountOnce() 777 return rc; in DoAppSandboxMountOnce() 780 rc = mount(NULL, destinationPath.c_str(), NULL, MS_PRIVATE, NULL); in DoAppSandboxMountOnce() 781 if (rc) { in DoAppSandboxMountOnce() 783 return rc; in DoAppSandboxMountOnce() 804 int rc = 0; in DoAppSandboxMount() local 821 rc = DoAppSandboxMountOnce(iter->second.c_str(), iter->first.c_str()); in DoAppSandboxMount() 822 if (rc) { in DoAppSandboxMount() [all …]
|
/base/update/updater/services/fs_manager/ |
D | mount.cpp | 93 MountStatus rc = GetMountStatusForMountPoint(item->mountPoint); in UmountForPath() local 94 if (rc == MOUNT_ERROR) { in UmountForPath() 96 } else if (rc == MOUNT_UMOUNTED) { in UmountForPath() 118 MountStatus rc = GetMountStatusForMountPoint(item->mountPoint); in MountForPath() local 119 if (rc == MountStatus::MOUNT_ERROR) { in MountForPath() 121 } else if (rc == MountStatus::MOUNT_MOUNTED) { in MountForPath()
|
/base/powermgr/thermal_manager/etc/init/ |
D | BUILD.gn | 15 ## Install thermal.rc to /system/etc/init/thermal.rc 16 ohos_prebuilt_etc("thermal.rc") {
|
/base/security/deviceauth/common_lib/impl/src/ |
D | hc_parcel.c | 114 errno_t rc; in ParcelRead() local 124 rc = memmove_s(dst, dataSize, parcel->data + parcel->beginPos, dataSize); in ParcelRead() 125 if (rc != EOK) { in ParcelRead() 134 errno_t rc; in ParcelEraseBlock() local 148 rc = memmove_s(dst, dataSize, beginCopy, dataSize); in ParcelEraseBlock() 149 if (rc != EOK) { in ParcelEraseBlock() 153 rc = memmove_s(beginCopy, copySize, beginCopy + dataSize, copySize); in ParcelEraseBlock() 154 if (rc != EOK) { in ParcelEraseBlock() 174 errno_t rc; in ParcelWriteRevert() local 179 rc = memmove_s(srcCopy, dataSize, src, dataSize); in ParcelWriteRevert() [all …]
|
/base/security/selinux/scripts/ |
D | build_contexts.py | 48 rc = os.system(cmdstr) 49 if rc: 50 raise Exception(rc) 189 rc = os.system(" ".join(check_cmd)) 190 if rc: 192 raise Exception(rc)
|
D | build_policy.py | 84 rc = os.system(cmdstr) 85 if rc: 86 raise Exception(rc)
|
/base/startup/init_lite/services/utils/ |
D | init_utils.c | 312 int rc = -1; in MakeDir() local 315 return rc; in MakeDir() 317 rc = mkdir(dir, mode); in MakeDir() 318 INIT_ERROR_CHECK(!(rc < 0 && errno != EEXIST), return rc, in MakeDir() 326 int rc = -1; in MakeDirRecursive() local 331 return rc; in MakeDirRecursive() 346 rc = MakeDir(buffer, mode); in MakeDirRecursive() 347 INIT_CHECK_RETURN_VALUE(rc >= 0, rc); in MakeDirRecursive()
|
/base/global/i18n_lite/frameworks/i18n/src/ |
D | str_util.cpp | 54 errno_t rc = strcpy_s(out, len + 1, source); in NewArrayAndCopy() local 55 if (rc != EOK) { in NewArrayAndCopy() 72 errno_t rc = memcpy_s(out, len + 1, source, len); in I18nNewCharString() local 73 if (rc != EOK) { in I18nNewCharString()
|