Home
last modified time | relevance | path

Searched refs:label (Results 1 – 25 of 88) sorted by relevance

1234

/base/startup/init_lite/test/unittest/param/
Dselinux_unittest.cpp55 ParamSecurityLabel *label = nullptr; in TestSelinuxInitLocalLabel() local
56 ret = initParamSercurityOps.securityInitLabel(&label, LABEL_INIT_FOR_INIT); in TestSelinuxInitLocalLabel()
58 ret = initParamSercurityOps.securityFreeLabel(label); in TestSelinuxInitLocalLabel()
70 ParamSecurityLabel *label = nullptr; in TestSelinuxCheckFilePermission() local
71 ret = initParamSercurityOps.securityInitLabel(&label, LABEL_INIT_FOR_INIT); in TestSelinuxCheckFilePermission()
73 ret = initParamSercurityOps.securityCheckFilePermission(label, fileName, DAC_WRITE); in TestSelinuxCheckFilePermission()
75 ret = initParamSercurityOps.securityFreeLabel(label); in TestSelinuxCheckFilePermission()
80 int TestSelinuxCheckParaPermission(const char *name, const char *label) in TestSelinuxCheckParaPermission() argument
93 auditData.label = label; in TestSelinuxCheckParaPermission()
116 ParamSecurityLabel *label = nullptr; in TestClientSelinuxCheckFilePermission() local
[all …]
Ddac_unittest.cpp54 ParamSecurityLabel *label = nullptr; in TestDacInitLocalLabel() local
55 ret = initParamSercurityOps.securityInitLabel(&label, LABEL_INIT_FOR_INIT); in TestDacInitLocalLabel()
57 ret = initParamSercurityOps.securityFreeLabel(label); in TestDacInitLocalLabel()
69 ParamSecurityLabel *label = nullptr; in TestDacCheckFilePermission() local
70 ret = initParamSercurityOps.securityInitLabel(&label, LABEL_INIT_FOR_INIT); in TestDacCheckFilePermission()
72 ret = initParamSercurityOps.securityCheckFilePermission(label, fileName, DAC_WRITE); in TestDacCheckFilePermission()
74 ret = initParamSercurityOps.securityFreeLabel(label); in TestDacCheckFilePermission()
92 auditData.label = nullptr; in TestDacCheckParaPermission()
113 ParamSecurityLabel *label = nullptr; in TestClientDacCheckFilePermission() local
114 ret = clientParamSercurityOps.securityInitLabel(&label, 0); in TestClientDacCheckFilePermission()
[all …]
/base/security/appverify/interfaces/innerkits/appverify/include/common/
Dhap_verify_log.h27 #define HAPVERIFY_LOG_DEBUG(label, fmt, ...) \ argument
28 OHOS::HiviewDFX::HiLog::Debug(label, "%{public}s: " fmt, __func__, ##__VA_ARGS__)
29 #define HAPVERIFY_LOG_INFO(label, fmt, ...) \ argument
30 OHOS::HiviewDFX::HiLog::Info(label, "%{public}s: " fmt, __func__, ##__VA_ARGS__)
31 #define HAPVERIFY_LOG_WARN(label, fmt, ...) \ argument
32 OHOS::HiviewDFX::HiLog::Warn(label, "%{public}s: " fmt, __func__, ##__VA_ARGS__)
33 #define HAPVERIFY_LOG_ERROR(label, fmt, ...) \ argument
34 OHOS::HiviewDFX::HiLog::Error(label, "%{public}s: " fmt, __func__, ##__VA_ARGS__)
35 #define HAPVERIFY_LOG_FATAL(label, fmt, ...) \ argument
36 OHOS::HiviewDFX::HiLog::Fatal(label, "%{public}s: " fmt, __func__, ##__VA_ARGS__)
/base/security/access_token/frameworks/com.ohos.permissionmanager/permissionmanager/src/main/ets/GrantAbility/common/model/
DpermissionGroup.ets20 "label": "后台定位权限",
27 "label": "前台定位权限",
34 "label": "拍摄照片和录制视频",
41 "label": "录制音频",
48 "label": "接听电话",
55 "label": "语音信箱",
62 "label": "读取小区广播",
69 "label": "读取短彩信",
76 "label": "接收彩信",
83 "label": "接收短信",
[all …]
/base/startup/init_lite/services/param/include/
Dparam_security.h37 #define LABEL_IS_CLIENT_CHECK_PERMITTED(label) … argument
38 …((label) != NULL) && ((((label)->flags & (LABEL_CHECK_FOR_ALL_PROCESS)) == (LABEL_CHECK_FOR_ALL_PR…
39 (((label)->flags & (LABEL_ALL_PERMISSION)) != (LABEL_ALL_PERMISSION)))
41 #define LABEL_IS_ALL_PERMITTED(label) \ argument
42 (((label) == NULL) || ((label)->flags & LABEL_ALL_PERMISSION) == (LABEL_ALL_PERMISSION))
71 const char *label; member
77 int (*securityInitLabel)(ParamSecurityLabel **label, int isInit);
78 int (*securityGetLabel)(SecurityLabelFunc label, const char *path, void *context);
79 …int (*securityCheckFilePermission)(const ParamSecurityLabel *label, const char *fileName, int flag…
92 SecurityLabelFunc label; member
/base/hiviewdfx/hilog_lite/frameworks/featured/
Dhilog.cpp27 (ret) = ::HiLogPrintArgs(label.type, (level), label.domain, label.tag, fmt, args); \
31 int HiLog::Debug(const HiLogLabel &label, const char *fmt, ...) in Debug() argument
38 int HiLog::Info(const HiLogLabel &label, const char *fmt, ...) in Info() argument
45 int HiLog::Warn(const HiLogLabel &label, const char *fmt, ...) in Warn() argument
52 int HiLog::Error(const HiLogLabel &label, const char *fmt, ...) in Error() argument
59 int HiLog::Fatal(const HiLogLabel &label, const char *fmt, ...) in Fatal() argument
/base/hiviewdfx/hilog/frameworks/native/
Dhilog.cpp28 (ret) = ::HiLogPrintArgs(label.type, (level), label.domain, label.tag, fmt, args); \
32 int HiLog::Debug(const HiLogLabel &label, const char *fmt, ...) in Debug() argument
39 int HiLog::Info(const HiLogLabel &label, const char *fmt, ...) in Info() argument
46 int HiLog::Warn(const HiLogLabel &label, const char *fmt, ...) in Warn() argument
53 int HiLog::Error(const HiLogLabel &label, const char *fmt, ...) in Error() argument
60 int HiLog::Fatal(const HiLogLabel &label, const char *fmt, ...) in Fatal() argument
/base/security/permission/frameworks/permission_standard/permissioninfrastructure/main/cpp/include/
Dpermission_log.h33 #define PERMISSION_LOG_DEBUG(label, fmt, ...) OHOS::HiviewDFX::HiLog::Debug(label, fmt, ##__VA_ARGS… argument
34 #define PERMISSION_LOG_INFO(label, fmt, ...) OHOS::HiviewDFX::HiLog::Info(label, fmt, ##__VA_ARGS__) argument
35 #define PERMISSION_LOG_WARN(label, fmt, ...) OHOS::HiviewDFX::HiLog::Warn(label, fmt, ##__VA_ARGS__) argument
36 #define PERMISSION_LOG_ERROR(label, fmt, ...) OHOS::HiviewDFX::HiLog::Error(label, fmt, ##__VA_ARGS… argument
37 #define PERMISSION_LOG_FATAL(label, fmt, ...) OHOS::HiviewDFX::HiLog::Fatal(label, fmt, ##__VA_ARGS… argument
/base/security/selinux/interfaces/policycoreutils/include/
Dselinux_log.h33 #define SELINUX_LOG_DEBUG(label, fmt, ...) OHOS::HiviewDFX::HiLog::Debug(label, fmt, ##__VA_ARGS__) argument
34 #define SELINUX_LOG_INFO(label, fmt, ...) OHOS::HiviewDFX::HiLog::Info(label, fmt, ##__VA_ARGS__) argument
35 #define SELINUX_LOG_WARN(label, fmt, ...) OHOS::HiviewDFX::HiLog::Warn(label, fmt, ##__VA_ARGS__) argument
36 #define SELINUX_LOG_ERROR(label, fmt, ...) OHOS::HiviewDFX::HiLog::Error(label, fmt, ##__VA_ARGS__) argument
37 #define SELINUX_LOG_FATAL(label, fmt, ...) OHOS::HiviewDFX::HiLog::Fatal(label, fmt, ##__VA_ARGS__) argument
/base/security/access_token/frameworks/common/include/
Daccesstoken_log.h33 #define ACCESSTOKEN_LOG_DEBUG(label, fmt, ...) \ argument
34 OHOS::HiviewDFX::HiLog::Debug(label, "[%{public}s]:" fmt, __func__, ##__VA_ARGS__)
35 #define ACCESSTOKEN_LOG_INFO(label, fmt, ...) \ argument
36 OHOS::HiviewDFX::HiLog::Info(label, "[%{public}s]:" fmt, __func__, ##__VA_ARGS__)
37 #define ACCESSTOKEN_LOG_WARN(label, fmt, ...) \ argument
38 OHOS::HiviewDFX::HiLog::Warn(label, "[%{public}s]:" fmt, __func__, ##__VA_ARGS__)
39 #define ACCESSTOKEN_LOG_ERROR(label, fmt, ...) \ argument
40 OHOS::HiviewDFX::HiLog::Error(label, "[%{public}s]:" fmt, __func__, ##__VA_ARGS__)
41 #define ACCESSTOKEN_LOG_FATAL(label, fmt, ...) \ argument
42 OHOS::HiviewDFX::HiLog::Fatal(label, "[%{public}s]:" fmt, __func__, ##__VA_ARGS__)
/base/location/utils/include/
Dlocation_log.h59 #define LBSLOGD(label, ...) (void)OHOS::HiviewDFX::HiLog::Debug(label, __VA_ARGS__) argument
63 #define LBSLOGE(label, ...) (void)OHOS::HiviewDFX::HiLog::Error(label, __VA_ARGS__) argument
67 #define LBSLOGF(label, ...) (void)OHOS::HiviewDFX::HiLog::Fatal(label, __VA_ARGS__) argument
71 #define LBSLOGI(label, ...) (void)OHOS::HiviewDFX::HiLog::Info(label, __VA_ARGS__) argument
75 #define LBSLOGW(label, ...) (void)OHOS::HiviewDFX::HiLog::Warn(label, __VA_ARGS__) argument
/base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/
Dhilog_cp.h33 …static int Debug(const HiLogLabel &label, const char *fmt, ...) __attribute__((__format__(printf, …
34 …static int Info(const HiLogLabel &label, const char *fmt, ...) __attribute__((__format__(printf, 2…
35 …static int Warn(const HiLogLabel &label, const char *fmt, ...) __attribute__((__format__(printf, 2…
36 …static int Error(const HiLogLabel &label, const char *fmt, ...) __attribute__((__format__(printf, …
37 …static int Fatal(const HiLogLabel &label, const char *fmt, ...) __attribute__((__format__(printf, …
/base/hiviewdfx/hilog/interfaces/native/innerkits/include/hilog/
Dlog_cpp.h34 …static int Debug(const HiLogLabel &label, const char *fmt, ...) __attribute__((__format__(os_log, …
35 …static int Info(const HiLogLabel &label, const char *fmt, ...) __attribute__((__format__(os_log, 2…
36 …static int Warn(const HiLogLabel &label, const char *fmt, ...) __attribute__((__format__(os_log, 2…
37 …static int Error(const HiLogLabel &label, const char *fmt, ...) __attribute__((__format__(os_log, …
38 …static int Fatal(const HiLogLabel &label, const char *fmt, ...) __attribute__((__format__(os_log, …
/base/notification/ans_standard/services/test/moduletest/
Dans_module_test.cpp134 std::string label = "testLabel"; variable
141 req1->SetLabel(label);
146 EXPECT_EQ((int)g_advancedNotificationService->Publish(label, req), (int)ERR_OK);
147 EXPECT_EQ((int)g_advancedNotificationService->Publish(label, req1), (int)ERR_OK);
148 EXPECT_EQ((int)g_advancedNotificationService->Cancel(1, label), (int)ERR_OK);
163 std::string label = "testLabel"; variable
165 req->SetLabel(label);
167 req1->SetLabel(label);
174 EXPECT_EQ((int)g_advancedNotificationService->Publish(label, req), (int)ERR_OK);
175 EXPECT_EQ((int)g_advancedNotificationService->Publish(label, req1), (int)ERR_OK);
[all …]
/base/security/access_token/frameworks/com.ohos.permissionmanager/permissionmanager/src/main/ets/MainAbility/common/model/
DpermissionGroup.ets20 "label": "后台定位权限",
27 "label": "前台定位权限",
34 "label": "拍摄照片和录制视频",
41 "label": "录制音频",
48 "label": "接听电话",
55 "label": "语音信箱",
62 "label": "读取小区广播",
69 "label": "读取短彩信",
76 "label": "接收彩信",
83 "label": "接收短信",
[all …]
/base/notification/ans_standard/services/distributed/include/
Ddistributed_notification_manager.h43 … const std::string &deviceId, const std::string &bundleName, const std::string &label, int32_t id)>
48 …const std::string &bundleName, const std::string &label, int32_t id, const sptr<NotificationReques…
50 …const std::string &bundleName, const std::string &label, int32_t id, const sptr<NotificationReques…
51 ErrCode Delete(const std::string &bundleName, const std::string &label, int32_t id);
53 … const std::string &deviceId, const std::string &bundleName, const std::string &label, int32_t id);
71 std::string label; member
75 …istributedKey(const std::string &deviceId, const std::string &bundleName, const std::string &label,
78 const std::string &bundleName, const std::string &label, int32_t id, std::string &key);
87 … const std::string &deviceId, const std::string &bundleName, const std::string &label, int32_t id);
/base/notification/ans_standard/services/distributed/test/unittest/
Ddistributed_notification_manager_test.cpp36 …const std::string &deviceId, const std::string &bundleName, const std::string &label, int32_t id) … in OnDelete() argument
64 std::string label = request->GetLabel(); variable
67 EXPECT_EQ(distributedManager_->Publish(bundleName, label, id, request), ERR_OK);
81 std::string label = request->GetLabel(); variable
84 EXPECT_EQ(distributedManager_->Update(bundleName, label, id, request), ERR_OK);
98 std::string label = request->GetLabel(); variable
101 EXPECT_EQ(distributedManager_->Delete(bundleName, label, id), ERR_OK);
116 std::string label = request->GetLabel(); variable
119 … EXPECT_EQ(distributedManager_->DeleteRemoteNotification(deviceId, bundleName, label, id), ERR_OK);
/base/startup/init_lite/services/param/adapter/
Dparam_selinux.c25 char label[SELINUX_LABEL_LEN]; member
66 static int LoadParamLabels(const char *fileName, SecurityLabelFunc label, void *context) in LoadParamLabels() argument
82 auditData.label = info[SUBSTR_INFO_LABEL].value; in LoadParamLabels()
83 int ret = label(&auditData, context); in LoadParamLabels()
101 return LoadParamLabels(fileName, cxt->label, cxt->context); in ProcessParamFile()
104 static int GetParamSecurityLabel(SecurityLabelFunc label, const char *path, void *context) in GetParamSecurityLabel() argument
106 PARAM_CHECK(label != NULL, return -1, "Invalid param"); in GetParamSecurityLabel()
109 LabelFuncContext cxt = { label, context }; in GetParamSecurityLabel()
Dparam_dac.c119 static int LoadParamLabels(const char *fileName, SecurityLabelFunc label, void *context) in LoadParamLabels() argument
137 auditData.label = info[SUBSTR_INFO_NAME].value; in LoadParamLabels()
141 ret = label(&auditData, context); in LoadParamLabels()
167 return LoadParamLabels(fileName, cxt->label, cxt->context); in ProcessParamFile()
170 static int GetParamSecurityLabel(SecurityLabelFunc label, const char *path, void *context) in GetParamSecurityLabel() argument
172 PARAM_CHECK(label != NULL && path != NULL, return -1, "Invalid param"); in GetParamSecurityLabel()
174 LabelFuncContext cxt = {label, context}; in GetParamSecurityLabel()
/base/miscservices/inputmethod/services/src/
Dinput_method_property.cpp50 label = property.label; in InputMethodProperty()
76 label = property.label; in operator =()
101 && parcel.WriteString16(label) in Marshalling()
121 info->label = parcel.ReadString16(); in Unmarshalling()
/base/global/i18n_standard/frameworks/intl/src/
Dindex_util.cpp45 std::string label; in GetIndexList() local
46 unicodeString.toUTF8String(label); in GetIndexList()
47 indexList.push_back(label); in GetIndexList()
75 icu::UnicodeString label = index->getBucketLabel(); in GetIndex() local
77 label.toUTF8String(result); in GetIndex()
/base/notification/ans_standard/services/distributed/src/
Ddistributed_notification_manager.cpp73 …const std::string &deviceId, const std::string &bundleName, const std::string &label, int32_t id, … in GenerateDistributedKey() argument
75 key = deviceId + DELIMITER + bundleName + DELIMITER + label + DELIMITER + ToString(id); in GenerateDistributedKey()
79 const std::string &bundleName, const std::string &label, int32_t id, std::string &key) in GenerateLocalDistributedKey() argument
86 GenerateDistributedKey(deviceId, bundleName, label, id, key); in GenerateLocalDistributedKey()
111 resolveKey.label = key.substr(labelPosition, labelEndPosition - labelPosition); in ResolveDistributedKey()
195 DeleteCallback(resolveKey.deviceId, resolveKey.bundleName, resolveKey.label, resolveKey.id); in OnDatabaseDelete()
225 … DeleteCallback(resolveKey.deviceId, resolveKey.bundleName, resolveKey.label, resolveKey.id); in OnDeviceDisconnected()
263 … const std::string &deviceId, const std::string &bundleName, const std::string &label, int32_t id) in DeleteCallback() argument
267 callback_.OnDelete(deviceId, bundleName, label, id); in DeleteCallback()
275 …const std::string &bundleName, const std::string &label, int32_t id, const sptr<NotificationReques… in Publish() argument
[all …]
/base/notification/ans_standard/services/ans/test/unittest/
Dadvanced_notification_service_test.cpp136 std::string label = "publish's label"; variable
144 EXPECT_EQ(advancedNotificationService_->Publish(label, req), (int)ERR_OK);
160 std::string label = "publish's label"; variable
168 EXPECT_EQ(advancedNotificationService_->Publish(label, req), (int)ERR_OK);
169 EXPECT_EQ(advancedNotificationService_->Publish(label, req), (int)ERR_OK);
186 std::string label = "publish's label"; variable
194 EXPECT_EQ(advancedNotificationService_->Publish(label, req), (int)ERR_ANS_NON_SYSTEM_APP);
211 std::string label = "publish's label"; variable
219 EXPECT_EQ(advancedNotificationService_->Publish(label, req), (int)ERR_ANS_INVALID_BUNDLE);
236 std::string label = "publish's label"; variable
[all …]
/base/security/access_token/frameworks/com.ohos.permissionmanager/permissionmanager/src/main/ets/MainAbility/pages/
Dauthority-secondary.ets27 label: string
29 …constructor(permissionName: string, groupName: string, description: string, label: string, index: …
33 this.label = label
105 Text(item.label)
131 params: { routerData: [dataList[item.index]], backTitle: item.label }
149 new CalendarObj(item.permissionName, item.groupName, item.description, item.label, i)
/base/security/permission/services/permission_standard/permissionmanagerservice/main/cpp/src/
Ddata_translator.cpp30 outPermissionDef.label = inGenericValues.GetString(FIELD_LABEL); in TranslationIntoPermissionDef()
43 outGenericValues.Put(FIELD_LABEL, inPermissionDef.label); in TranslationIntoGenericValues()
73 infos.append(R"(, "label": ")" + inPermissionDef.label + R"(")"); in ToString()

1234