Home
last modified time | relevance | path

Searched refs:perms (Results 1 – 25 of 170) sorted by relevance

1234567

/base/security/access_token/interfaces/innerkits/accesstoken/test/tool/
Dset_pern_dialog_cap.cpp30 const char **perms = new const char *[5]; // size of array in NativeTokenGet() local
31 perms[0] = "ohos.permission.DISTRIBUTED_DATASYNC"; // 0: index in NativeTokenGet()
32 perms[1] = "ohos.permission.GRANT_SENSITIVE_PERMISSIONS"; // 1: index in NativeTokenGet()
33 perms[2] = "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS"; // 2: index in NativeTokenGet()
34 perms[3] = "ohos.permission.GET_SENSITIVE_PERMISSIONS"; // 3: index in NativeTokenGet()
35 perms[4] = "ohos.permission.DISABLE_PERMISSION_DIALOG"; // 4: index in NativeTokenGet()
42 .perms = perms, in NativeTokenGet()
51 delete[] perms; in NativeTokenGet()
/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/src/
Dnativetoken_kit_test.cpp174 .perms = permArray, in Start()
200 const char **perms = new (std::nothrow) const char *[2]; variable
201 ASSERT_NE(perms, nullptr);
202 perms[0] = "ohos.permission.test1";
203 perms[1] = "ohos.permission.test2";
209 .perms = perms,
240 delete[] perms;
261 .perms = nullptr,
315 .perms = nullptr,
383 .perms = nullptr,
[all …]
/base/sensors/miscdevice/test/fuzztest/vibrator/playpattern_fuzzer/
Dplaypattern_fuzzer.cpp36 const char **perms = new (std::nothrow) const char *[1]; in SetUpTestCase() local
37 if (perms == nullptr) { in SetUpTestCase()
40 perms[0] = "ohos.permission.VIBRATE"; in SetUpTestCase()
46 .perms = perms, in SetUpTestCase()
54 delete[] perms; in SetUpTestCase()
/base/sensors/miscdevice/test/fuzztest/vibrator/freevibratorpackage_fuzzer/
Dfreevibratorpackage_fuzzer.cpp36 const char **perms = new (std::nothrow) const char *[1]; in SetUpTestCase() local
37 if (perms == nullptr) { in SetUpTestCase()
40 perms[0] = "ohos.permission.VIBRATE"; in SetUpTestCase()
46 .perms = perms, in SetUpTestCase()
54 delete[] perms; in SetUpTestCase()
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Dremote_native_token.cpp22 const char **perms = new const char *[1]; in SetNativeToken() local
23 perms[0] = "ohos.permission.NOTIFICATION_CONTROLLER"; // system_core in SetNativeToken()
29 .perms = perms, in SetNativeToken()
37 delete[] perms; in SetNativeToken()
/base/sensors/miscdevice/test/fuzztest/vibrator/setparameters_fuzzer/
Dsetparameters_fuzzer.cpp38 const char **perms = new (std::nothrow) const char *[1]; in SetUpTestCase() local
39 if (perms == nullptr) { in SetUpTestCase()
42 perms[0] = "ohos.permission.VIBRATE"; in SetUpTestCase()
48 .perms = perms, in SetUpTestCase()
56 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/services/getallsensorsstub_fuzzer/
Dgetallsensorsstub_fuzzer.cpp42 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
43 if (perms == nullptr) { in SetUpTestCase()
46 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
47 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
53 .perms = perms, in SetUpTestCase()
61 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/services/sensordisablestub_fuzzer/
Dsensordisablestub_fuzzer.cpp42 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
43 if (perms == nullptr) { in SetUpTestCase()
46 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
47 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
53 .perms = perms, in SetUpTestCase()
61 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/services/destroydatachannelstub_fuzzer/
Ddestroydatachannelstub_fuzzer.cpp42 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
43 if (perms == nullptr) { in SetUpTestCase()
46 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
47 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
53 .perms = perms, in SetUpTestCase()
61 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/services/createsocketchannelstub_fuzzer/
Dcreatesocketchannelstub_fuzzer.cpp42 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
43 if (perms == nullptr) { in SetUpTestCase()
46 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
47 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
53 .perms = perms, in SetUpTestCase()
61 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/services/createdatachannelstub_fuzzer/
Dcreatedatachannelstub_fuzzer.cpp42 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
43 if (perms == nullptr) { in SetUpTestCase()
46 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
47 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
53 .perms = perms, in SetUpTestCase()
61 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/services/resumesensorsstub_fuzzer/
Dresumesensorsstub_fuzzer.cpp42 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
43 if (perms == nullptr) { in SetUpTestCase()
46 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
47 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
53 .perms = perms, in SetUpTestCase()
61 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/services/sensorenablestub_fuzzer/
Dsensorenablestub_fuzzer.cpp42 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
43 if (perms == nullptr) { in SetUpTestCase()
46 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
47 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
53 .perms = perms, in SetUpTestCase()
61 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/interfaces/unregister_fuzzer/
Dunregister_fuzzer.cpp51 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
52 CHKPV(perms); in SetUpTestCase()
53 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
54 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
60 .perms = perms, in SetUpTestCase()
68 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/services/resetsensorsstub_fuzzer/
Dresetsensorsstub_fuzzer.cpp42 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
43 if (perms == nullptr) { in SetUpTestCase()
46 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
47 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
53 .perms = perms, in SetUpTestCase()
61 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/services/destroysocketchannelstub_fuzzer/
Ddestroysocketchannelstub_fuzzer.cpp42 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
43 if (perms == nullptr) { in SetUpTestCase()
46 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
47 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
53 .perms = perms, in SetUpTestCase()
61 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/interfaces/suspendsensors_fuzzer/
Dsuspendsensors_fuzzer.cpp50 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
51 CHKPV(perms); in SetUpTestCase()
52 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
53 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
59 .perms = perms, in SetUpTestCase()
67 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/services/suspendsensorsstub_fuzzer/
Dsuspendsensorsstub_fuzzer.cpp42 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
43 if (perms == nullptr) { in SetUpTestCase()
46 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
47 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
53 .perms = perms, in SetUpTestCase()
61 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/interfaces/resumesensors_fuzzer/
Dresumesensors_fuzzer.cpp50 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
51 CHKPV(perms); in SetUpTestCase()
52 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
53 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
59 .perms = perms, in SetUpTestCase()
67 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/services/disableactiveinfocbstub_fuzzer/
Ddisableactiveinfocbstub_fuzzer.cpp42 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
43 if (perms == nullptr) { in SetUpTestCase()
46 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
47 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
53 .perms = perms, in SetUpTestCase()
61 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/interfaces/register_fuzzer/
Dregister_fuzzer.cpp51 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
52 CHKPV(perms); in SetUpTestCase()
53 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
54 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
60 .perms = perms, in SetUpTestCase()
68 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/services/enableactiveinfocbstub_fuzzer/
Denableactiveinfocbstub_fuzzer.cpp42 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
43 if (perms == nullptr) { in SetUpTestCase()
46 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
47 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
53 .perms = perms, in SetUpTestCase()
61 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/services/getactiveinfoliststub_fuzzer/
Dgetactiveinfoliststub_fuzzer.cpp42 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
43 if (perms == nullptr) { in SetUpTestCase()
46 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
47 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
53 .perms = perms, in SetUpTestCase()
61 delete[] perms; in SetUpTestCase()
/base/sensors/sensor/test/fuzztest/interfaces/getactivesensorinfos_fuzzer/
Dgetactivesensorinfos_fuzzer.cpp51 const char **perms = new (std::nothrow) const char *[2]; in SetUpTestCase() local
52 CHKPV(perms); in SetUpTestCase()
53 perms[0] = "ohos.permission.ACCELEROMETER"; in SetUpTestCase()
54 perms[1] = "ohos.permission.MANAGE_SENSOR"; in SetUpTestCase()
60 .perms = perms, in SetUpTestCase()
68 delete[] perms; in SetUpTestCase()
/base/sensors/miscdevice/test/fuzztest/vibrator/getdelaytime_fuzzer/
Dgetdelaytime_fuzzer.cpp36 const char **perms = new (std::nothrow) const char *[1]; in SetUpTestCase() local
37 if (perms == nullptr) { in SetUpTestCase()
40 perms[0] = "ohos.permission.VIBRATE"; in SetUpTestCase()
46 .perms = perms, in SetUpTestCase()
54 delete[] perms; in SetUpTestCase()

1234567