/foundation/multimodalinput/input/service/key_command/test/ |
H A D | key_command_handler_util_test.cpp | 124 cJSON* preKey = cJSON_CreateArray(); in HWTEST_F() local 126 cJSON_AddItemToArray(preKey, cJSON_CreateNumber(i)); in HWTEST_F() 128 cJSON_AddItemToObject(jsonData, "preKey", preKey); in HWTEST_F() 145 cJSON_AddItemToObject(jsonData, "preKey", cJSON_CreateString("invalid")); in HWTEST_F() 162 cJSON* preKey = cJSON_CreateArray(); in HWTEST_F() local 163 cJSON_AddItemToArray(preKey, cJSON_CreateNumber(-1)); in HWTEST_F() 164 cJSON_AddItemToObject(jsonData, "preKey", preKey); in HWTEST_F() 181 cJSON* preKey in HWTEST_F() local 327 cJSON* preKey = cJSON_CreateArray(); HWTEST_F() local 347 cJSON* preKey = cJSON_CreateArray(); HWTEST_F() local 365 cJSON* preKey = cJSON_CreateArray(); HWTEST_F() local 383 cJSON* preKey = cJSON_CreateArray(); HWTEST_F() local 402 cJSON* preKey = cJSON_CreateArray(); HWTEST_F() local 935 cJSON* preKey = cJSON_CreateArray(); HWTEST_F() local 960 cJSON* preKey = cJSON_CreateArray(); HWTEST_F() local 986 cJSON* preKey = cJSON_CreateArray(); HWTEST_F() local 1013 cJSON* preKey = cJSON_CreateArray(); HWTEST_F() local 1043 cJSON* preKey = cJSON_CreateArray(); HWTEST_F() local [all...] |
/foundation/multimodalinput/input/test/fuzztest/supportkeys_fuzzer/ |
H A D | supportkeys_fuzzer.cpp | 53 int32_t preKey; in SupportKeysFuzzTest() local 54 startPos += GetObject<int32_t>(data + startPos, size - startPos, preKey); in SupportKeysFuzzTest() 55 keycodes.push_back(preKey); in SupportKeysFuzzTest()
|
/foundation/multimodalinput/input/test/fuzztest/subscribekeyevent_fuzzer/ |
H A D | subscribekeyevent_fuzzer.cpp | 62 int32_t preKey; in SubscribeKeyEventFuzzTest() local 63 startPos += GetObject<int32_t>(preKey, data + startPos, size - startPos); in SubscribeKeyEventFuzzTest() 64 prekeys.insert(preKey); in SubscribeKeyEventFuzzTest()
|
/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/ |
H A D | openssl_crypto.h | 28 static bool AESDecrypt(const KeyBlob &preKey, KeyContext &keyContext_, KeyBlob &plainText); 29 static bool AESEncrypt(const KeyBlob &preKey, const KeyBlob &plainText, KeyContext &keyContext_);
|
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | openssl_crypto.cpp | 28 bool OpensslCrypto::AESDecrypt(const KeyBlob &preKey, KeyContext &keyContext_, KeyBlob &plainText) in AESDecrypt() argument 31 KeyBlob shield = HashWithPrefix(preKey, keyContext_.secDiscard, AES_256_HASH_RANDOM_SIZE); in AESDecrypt() 80 bool OpensslCrypto::AESEncrypt(const KeyBlob &preKey, const KeyBlob &plainText, KeyContext &keyContext_) in AESEncrypt() argument 83 KeyBlob shield = HashWithPrefix(preKey, keyContext_.secDiscard, AES_256_HASH_RANDOM_SIZE); in AESEncrypt()
|
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/crypto_test/ |
H A D | crypto_test.cpp | 238 const KeyBlob preKey; in HWTEST_F() local 242 bool ret = OpensslCrypto::AESEncrypt(preKey, plainText, keyContext); in HWTEST_F() 245 ret = OpensslCrypto::AESDecrypt(preKey, keyContext, plainText); in HWTEST_F()
|
/foundation/multimodalinput/input/frameworks/proxy/event_handler/src/ |
H A D | key_event_input_subscribe_manager.cpp | 142 for (const auto &preKey : preKeys) { in SubscribeKeyEvent() 143 MMI_HILOGD("prekey:%{private}d", preKey); in SubscribeKeyEvent() 214 for (const auto &preKey : preKeys) { in SubscribeHotkey() 215 MMI_HILOGD("prekey:%{private}d", preKey); in SubscribeHotkey()
|
/foundation/multimodalinput/input/service/key_command/src/ |
H A D | key_command_handler_util.cpp | 54 cJSON* preKey = cJSON_GetObjectItemCaseSensitive(jsonData, "preKey"); in GetPreKeys() local 55 if (!cJSON_IsArray(preKey)) { in GetPreKeys() 56 MMI_HILOGE("preKey number must be array"); in GetPreKeys() 59 int32_t preKeySize = cJSON_GetArraySize(preKey); in GetPreKeys() 65 cJSON *preKeyJson = cJSON_GetArrayItem(preKey, i); in GetPreKeys() 560 for (const auto& preKey : preKeys) { in GenerateKey() 561 ss << preKey << ","; in GenerateKey() local
|
/foundation/multimodalinput/input/frameworks/napi/input_consumer/src/ |
H A D | js_register_util.cpp | 129 MMI_HILOGE("preKey:%{public}d is less 0, can not process", value); in GetPreKeys() 264 for (const auto &preKey: preKeys) { in AsyncWorkFn() 265 CHKRV(napi_create_int32(env, preKey, &value), CREATE_INT32); in AsyncWorkFn()
|
/foundation/multimodalinput/input/frameworks/native/input/ |
H A D | oh_input_manager.cpp | 1804 std::set<int32_t> preKey = hotkey->preKeys; in OH_Input_GetPreKeys() local 1805 if (preKey.empty()) { in OH_Input_GetPreKeys() 1810 for (auto it = preKey.begin(); it != preKey.end(); ++it) { in OH_Input_GetPreKeys()
|