Home
last modified time | relevance | path

Searched refs:identifier (Results 1 – 19 of 19) sorted by relevance

/base/security/permission_lite/services/pms/include/
Dpms.h27 int SaveOrUpdatePermissions(const char *identifier, PermissionTrans permissions[], int permNum, enu…
29 int DeletePermissions(const char *identifier);
35 int QueryAppCapabilities(const char *identifier, unsigned int **caps, unsigned int *capNum);
37 int LoadPermissions(const char *identifier, int uid);
43 char *QueryPermissionString(const char *identifier, int *errCode);
45 int QueryPermission(const char *identifier, PermissionSaved **permissions, int *permNum);
47 int GrantPermission(const char *identifier, const char *permName);
49 int RevokePermission(const char *identifier, const char *permName);
51 int UpdatePermissionFlags(const char *identifier, const char *permissionName, const int flags);
Dpms_inner.h32 int (*QueryPermission)(const char *identifier, PermissionSaved **permissions, int *permNum);
33 int (*GrantPermission)(const char *identifier, const char *permName);
34 int (*RevokePermission)(const char *identifier, const char *permName);
37 int (*UpdatePermissionFlags)(const char *identifier, const char *permissionName, int flags);
/base/security/permission_lite/services/pms/src/
Dpms_impl.c126 static char *GetPath(const char *identifier) in GetPath() argument
128 return ConcatString(HalGetPermissionPath(), identifier); in GetPath()
215 static int WritePermissions(const char *identifier, const cJSON *root) in WritePermissions() argument
217 const char *path = GetPath(identifier); in WritePermissions()
232 static int SavePermissions(const char *identifier, const PermissionSaved *permissions, int permNum) in SavePermissions() argument
234 if (identifier == NULL || permissions == NULL) { in SavePermissions()
275 int ret = WritePermissions(identifier, root); in SavePermissions()
288 char *QueryPermissionString(const char *identifier, int *errCode) in QueryPermissionString() argument
290 if (identifier == NULL) { in QueryPermissionString()
299 path = GetPath(identifier); in QueryPermissionString()
[all …]
Dpms_server_internal.c38 int (*GrantPermission)(const char *identifier, const char *permName);
39 int (*RevokePermission)(const char *identifier, const char *permName);
42 … int (*UpdatePermissionFlags)(const char *identifier, const char *permissionName, const int flags);
146 char *identifier = (char *)ReadString(req, &idLen); in ReplyGrantPermission() local
148 int32_t ret = api->GrantPermission(identifier, permName); in ReplyGrantPermission()
149 …HILOG_INFO(HILOG_MODULE_APP, "grant permission, [id: %s][perm: %s][ret: %d]", identifier, permName… in ReplyGrantPermission()
160 char *identifier = (char *)ReadString(req, &idLen); in ReplyRevokePermission() local
162 int32_t ret = api->RevokePermission(identifier, permName); in ReplyRevokePermission()
163 …HILOG_INFO(HILOG_MODULE_APP, "revoke permission, [id: %s][perm: %s][ret: %d]", identifier, permNam… in ReplyRevokePermission()
202 char *identifier = (char *)ReadString(req, &idLen); in ReplyUpdatePermissionFlags() local
[all …]
Dpms_server.c37 int (*QueryPermission)(const char *identifier, PermissionSaved **permissions, int *permNum);
131 char *identifier = (char *)ReadString(req, &idLen); in ReplyQueryPermission() local
132 char *jsonStr = QueryPermissionString(identifier, &ret); in ReplyQueryPermission()
/base/security/permission_lite/interfaces/kits/
Dpms_interface.h91 int QueryPermission(const char *identifier, PermissionSaved **permissions, int *permNum);
105 int GrantPermission(const char *identifier, const char *permName);
119 int RevokePermission(const char *identifier, const char *permName);
135 int UpdatePermissionFlags(const char *identifier, const char *permissionName, const int flags);
/base/update/updater/services/script/script_interpreter/
Dscript_expression.cpp26 UScriptExpression* AssignExpression::CreateExpression(const std::string identifier, UScriptExpressi… in CreateExpression() argument
28 return new AssignExpression(identifier, expression); in CreateExpression()
30 void AssignExpression::AddIdentifier(const std::string &identifier) in AddIdentifier() argument
32 multipleIdentifiers_.push_back(identifier); in AddIdentifier()
35 …ssion* AssignExpression::AddIdentifier(UScriptExpression *expression, const std::string identifier) in AddIdentifier() argument
39 assign->AddIdentifier(identifier); in AddIdentifier()
51 UScriptExpression* FunctionCallExpression::CreateExpression(const std::string identifier, ScriptPar… in CreateExpression() argument
53 return new FunctionCallExpression(identifier, params); in CreateExpression()
88 auto identifier = reinterpret_cast<IdentifierExpression*>(expression); in GetIdentifierName() local
89 if (identifier != nullptr) { in GetIdentifierName()
[all …]
Dscript_expression.h173 AssignExpression(const std::string identifier, UScriptExpression *expression) in AssignExpression() argument
174 : UScriptExpression(UScriptExpression::EXPRESSION_TYPE_ASSIGN), identifier_(identifier), in AssignExpression()
181 void AddIdentifier(const std::string &identifier);
183 …static UScriptExpression* CreateExpression(const std::string identifier, UScriptExpression *expres…
184 …atic UScriptExpression* AddIdentifier(UScriptExpression *expression, const std::string identifier);
193 FunctionCallExpression(const std::string identifier, ScriptParams *params) in FunctionCallExpression() argument
194 …: UScriptExpression(UScriptExpression::EXPRESSION_TYPE_FUNC), functionName_(identifier), params_(p… in FunctionCallExpression()
200 static UScriptExpression* CreateExpression(const std::string identifier, ScriptParams *params);
Dscript_function.h28 static ScriptFunction* CreateInstance(std::string &identifier, ScriptParams *params, in CreateInstance() argument
31 return new ScriptFunction(identifier, params, list); in CreateInstance()
/base/security/permission_lite/services/unittest/pms/src/
Dacts_pms_test.h78 void CheckAppPermission(const char *identifier, int expRet, int expNum, const PermissionTrans *inst…
81 void SubTestWithoutCheck(const char *identifier, int taskId);
/base/security/permission_lite/services/pms_client/
Dperm_client.c57 int (*QueryPermission)(const char *identifier, PermissionSaved **permissions, int *permNum);
67 int (*GrantPermission)(const char *identifier, const char *permName);
68 int (*RevokePermission)(const char *identifier, const char *permName);
71 int (*UpdatePermissionFlags)(const char *identifier, const char *permissionName, int flags);
334 int QueryPermission(const char *identifier, PermissionSaved **permissions, int *permNum) in QueryPermission() argument
346 WriteString(&request, identifier); in QueryPermission()
359 int GrantPermission(const char *identifier, const char *permName) in GrantPermission() argument
368 WriteString(&request, identifier); in GrantPermission()
377 int RevokePermission(const char *identifier, const char *permName) in RevokePermission() argument
386 WriteString(&request, identifier); in RevokePermission()
[all …]
/base/update/updater/test/unittest/test_data/diffpatch/
DPatchGztest_new.gz
DPatchGztest_old.gz1[==========] Running 25 tests from 7 test ...
/base/telephony/sms_mms/test/unittest/
Dgsm_sms_sender_test.cpp410 uint32_t identifier = 0; in TestEnableCBConfig() local
415 identifier = std::atoi(input.c_str()); in TestEnableCBConfig()
416 int32_t result = smsService->SetCBConfig(slotId, enable, identifier, identifier, ranType); in TestEnableCBConfig()
434 uint32_t identifier = 0; in TestDisableCBConfig() local
439 identifier = std::atoi(input.c_str()); in TestDisableCBConfig()
440 int32_t result = smsService->SetCBConfig(slotId, enable, identifier, identifier, ranType); in TestDisableCBConfig()
/base/security/permission_lite/
DREADME_zh.md60 …514"></a><a name="p13071135133514"></a>int QueryPermission(const char *identifier, PermissionSaved…
65 …03516"></a><a name="p878133903516"></a>int GrantPermission(const char *identifier, const char *per…
70 …517"></a><a name="p1617142163517"></a>int RevokePermission(const char *identifier, const char *per…
85 …a><a name="p169891916194512"></a>int UpdatePermissionFlags(const char *identifier, const char *per…
DREADME.md49 | int QueryPermission(const char *identifier, PermissionSaved **permissions, int *permNum) | Querie…
50 | int GrantPermission(const char *identifier, const char *permName) | Grants a permission to an app…
51 | int RevokePermission(const char *identifier, const char *permName) | Revokes a permission from an…
54 | int UpdatePermissionFlags(const char *identifier, const char *permissionName, const int flags) | …
/base/security/certificate_framework/
DREADME-en.md15 …* Certificate extension operations include obtaining the object identifier (OID) list of the certi…
/base/telephony/core_service/
DREADME.md77 …: number, callback: AsyncCallback\<string>): void; | Obtains the group identifier level 1 \(GID1\)…
87 …r, callback: AsyncCallback\<string>): void | Obtains the voice mailbox identifier of the SIM card …
118 …umber, callback: AsyncCallback\<string>)| Obtains the mobile equipment identifier (MEID). …
/base/security/access_token/
DREADME.md8 The access token information of an app includes the app identifier (**APPID**), user ID, app twin i…