/foundation/multimedia/audio_framework/services/audio_service/common/src/ |
H A D | audio_common_converter.cpp | 32 void AudioCommonConverter::ConvertBufferTo32Bit(const uint8_t *buffer, int32_t format, int32_t *dst, size_t count, in ConvertBufferTo32Bit() argument 37 dst += count; in ConvertBufferTo32Bit() 38 buffer += count; in ConvertBufferTo32Bit() 39 for (; count > 0; --count) { in ConvertBufferTo32Bit() 45 dst += count; in ConvertBufferTo32Bit() 46 src += count; in ConvertBufferTo32Bit() 47 for (; count > 0; --count) { in ConvertBufferTo32Bit() 53 dst += count; in ConvertBufferTo32Bit() 83 ConvertBufferTo16Bit(const uint8_t *buffer, int32_t format, int16_t *dst, size_t count, float volume) ConvertBufferTo16Bit() argument [all...] |
H A D | audio_log_utils.cpp | 30 void AudioLogUtils::ProcessVolumeData(const std::string &logTag, const ChannelVolumes &vols, int64_t &count) in ProcessVolumeData() argument 40 if (count > 0) { in ProcessVolumeData() 41 AUDIO_INFO_LOG("[%{public}s] 1->0, silent frames %{public}" PRId64 "", logTag.c_str(), count); in ProcessVolumeData() 42 count = 0; in ProcessVolumeData() 44 count--; in ProcessVolumeData() 45 IncSilentData(logTag, vols, -count); in ProcessVolumeData() 47 if (count < 0) { in ProcessVolumeData() 48 AUDIO_INFO_LOG("[%{public}s] 0->1, silent frames %{public}" PRId64 "", logTag.c_str(), -count); in ProcessVolumeData() 49 count = 0; in ProcessVolumeData() 51 count in ProcessVolumeData() 56 IncSilentData(const std::string &logTag, const ChannelVolumes &vols, int64_t count) IncSilentData() argument 65 IncSoundData(const std::string &logTag, const ChannelVolumes &vols, int64_t count) IncSoundData() argument [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/test/src/api/ |
H A D | TimerTest.cpp | 66 std::atomic<int> count = 0; in HWTEST_F() local 68 TimeSpan::Milliseconds(100), [&count] { ++count; }, Timer::RECURRING, queueId_.ToUid()); in HWTEST_F() 70 EXPECT_EQ_TIMED(350, count, 3); in HWTEST_F() 73 std::atomic<int> count = 0; in HWTEST_F() local 75 TimeSpan::Milliseconds(100), [&count] { ++count; }, Timer::RECURRING, queue_); in HWTEST_F() 77 EXPECT_EQ_TIMED(350, count, 3); in HWTEST_F() 106 std::atomic<int> count = 0; in HWTEST_F() local 109 TimeSpan::Milliseconds(100), [&count] { in HWTEST_F() 114 std::atomic<int> count = 0; HWTEST_F() local 132 std::atomic<int> count = 0; HWTEST_F() local 144 std::atomic<int> count = 0; HWTEST_F() local 166 std::atomic<int> count = 0; HWTEST_F() local 177 std::atomic<int> count = 0; HWTEST_F() local 194 std::atomic<int> count = 0; HWTEST_F() local [all...] |
H A D | DeferredCallbackTest.cpp | 70 int count = 0; in HWTEST_F() local 72 auto callback = MakeDeferred<Callable>([&] { ++count; }, q); in HWTEST_F() 74 EXPECT_EQ(count, 0); in HWTEST_F() 79 EXPECT_EQ(count, 0); in HWTEST_F() 82 EXPECT_EQ(count, 2); in HWTEST_F() 95 int count = 0; in HWTEST_F() local 97 auto callback = MakeDeferred<IOnTest>([&](int i) { count += i; }, q); in HWTEST_F() 99 EXPECT_EQ(count, 0); in HWTEST_F() 104 EXPECT_EQ(count, 0); in HWTEST_F() 107 EXPECT_EQ(count, in HWTEST_F() 123 int count = 0; HWTEST_F() local 154 int count = 0; HWTEST_F() local 181 int count = 0; HWTEST_F() local [all...] |
/foundation/multimedia/media_foundation/tests/unittest/osal/ |
H A D | task_func_unit_test.cpp | 102 int count = 0; in HWTEST_F() 104 count++; in HWTEST_F() 105 MEDIA_LOG_I("Task TaskRegisterJobNotRunning running at " PUBLIC_LOG_U32, count); in HWTEST_F() 107 if (count > 10) { //10 second in HWTEST_F() 128 int count = 0; in HWTEST_F() 130 count++; in HWTEST_F() 131 MEDIA_LOG_I("Task TaskRegisterJobRun running at " PUBLIC_LOG_U32, count); in HWTEST_F() 133 if (count > 10) { //10 second in HWTEST_F() 155 int count = 0; in HWTEST_F() 157 count in HWTEST_F() [all...] |
H A D | task_inner_unit_test.cpp | 76 int count = 0;
in HWTEST_F() 78 count++;
in HWTEST_F() 80 if (count > 10){ //10 second
in HWTEST_F() 110 int count = 0;
in HWTEST_F() 112 count++;
in HWTEST_F() 114 if (count > 10){ //10 second
in HWTEST_F() 136 int count = 0;
in HWTEST_F() 138 count++;
in HWTEST_F() 140 if (count > 10){ //10 second
in HWTEST_F() 166 int count in HWTEST_F() [all...] |
/foundation/multimodalinput/input/service/event_dump/test/ |
H A D | event_dump_test.cpp | 69 int32_t count = 0; in HWTEST_F() local 70 MMIEventDump->CheckCount(fd_, args, count); in HWTEST_F() 71 EXPECT_EQ(count, 0); in HWTEST_F() 84 int32_t count = 0; in HWTEST_F() local 85 MMIEventDump->CheckCount(fd_, args, count); in HWTEST_F() 87 EXPECT_EQ(count, 1); in HWTEST_F() 100 int32_t count = 0; in HWTEST_F() local 101 MMIEventDump->CheckCount(fd_, args, count); in HWTEST_F() 103 EXPECT_EQ(count, 1); in HWTEST_F() 116 int32_t count in HWTEST_F() local 132 int32_t count = 0; HWTEST_F() local 149 int32_t count = 0; HWTEST_F() local 165 int32_t count = 0; HWTEST_F() local 181 int32_t count = 0; HWTEST_F() local 197 int32_t count = 0; HWTEST_F() local 215 int32_t count = 0; HWTEST_F() local 233 int32_t count = 0; HWTEST_F() local 251 int32_t count = 0; HWTEST_F() local 269 int32_t count = 0; HWTEST_F() local 287 int32_t count = 0; HWTEST_F() local [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/test/src/base/ |
H A D | SharedPtrTest.cpp | 125 int count { 1 }; 130 --static_cast<CountType*>(p)->count; in CountDeleter() 148 EXPECT_EQ(test.count, 0); in HWTEST_F() 189 int count = 0; in HWTEST_F() local 191 auto p = BASE_NS::shared_ptr<int>(&count, [&](int *) { ++count; }); in HWTEST_F() 193 EXPECT_EQ(count, 1); in HWTEST_F() 210 ++count; 215 --count; 217 int count { 246 int count = 0; HWTEST_F() local 284 int count = 0; HWTEST_F() local [all...] |
/foundation/distributedhardware/device_manager/test/unittest/ |
H A D | UTTest_device_manager_notify_two.cpp | 49 int count = 0; in HWTEST_F() local 50 std::shared_ptr<DeviceManagerUiCallback> dmUiCallback_ = std::make_shared<DeviceManagerFaCallbackTest>(count); in HWTEST_F() 121 int count = 0; in HWTEST_F() local 122 std::shared_ptr<DeviceManagerUiCallback> dmUiCallback_ = std::make_shared<DeviceManagerFaCallbackTest>(count); in HWTEST_F() 131 ASSERT_EQ(count, 1); in HWTEST_F() 151 int count = 0; in HWTEST_F() local 152 std::shared_ptr<DeviceManagerUiCallback> dmUiCallback_ = std::make_shared<DeviceManagerFaCallbackTest>(count); in HWTEST_F() 181 int count = 0; in HWTEST_F() local 182 std::shared_ptr<DeviceManagerUiCallback> dmUiCallback_ = std::make_shared<DeviceManagerFaCallbackTest>(count); in HWTEST_F() 221 int count in HWTEST_F() local 263 int count = 0; HWTEST_F() local 310 int count = 0; HWTEST_F() local 350 int count = 0; HWTEST_F() local 396 int count = 0; HWTEST_F() local 432 int count = 0; HWTEST_F() local 471 int count = 0; HWTEST_F() local 511 int count = 0; HWTEST_F() local 551 int count = 0; HWTEST_F() local 591 int count = 0; HWTEST_F() local 631 int count = 0; HWTEST_F() local 670 int count = 0; HWTEST_F() local 710 int count = 0; HWTEST_F() local 750 int count = 0; HWTEST_F() local 790 int count = 0; HWTEST_F() local 830 int count = 0; HWTEST_F() local 869 int count = 0; HWTEST_F() local 909 int count = 0; HWTEST_F() local 949 int count = 0; HWTEST_F() local 989 int count = 0; HWTEST_F() local 1030 int count = 0; HWTEST_F() local 1071 int count = 0; HWTEST_F() local 1112 int count = 0; HWTEST_F() local 1153 int count = 0; HWTEST_F() local 1194 int count = 0; HWTEST_F() local 1236 int count = 0; HWTEST_F() local 1276 int count = 0; HWTEST_F() local 1317 int count = 0; HWTEST_F() local 1358 int count = 0; HWTEST_F() local 1399 int count = 0; HWTEST_F() local 1441 int count = 0; HWTEST_F() local 1480 int count = 0; HWTEST_F() local 1520 int count = 0; HWTEST_F() local 1560 int count = 0; HWTEST_F() local 1600 int count = 0; HWTEST_F() local 1641 int count = 0; HWTEST_F() local 1681 int count = 0; HWTEST_F() local 1722 int count = 0; HWTEST_F() local 1763 int count = 0; HWTEST_F() local 1804 int count = 0; HWTEST_F() local [all...] |
H A D | UTTest_device_manager_notify_three.cpp | 54 int count = 0; in HWTEST_F() local 55 std::shared_ptr<PublishCallback> callback = std::make_shared<PublishCallbackTest>(count); in HWTEST_F() 69 ASSERT_EQ(count, 1); in HWTEST_F() 93 int count = 0; in HWTEST_F() local 94 std::shared_ptr<PublishCallback> callback = std::make_shared<PublishCallbackTest>(count); in HWTEST_F() 109 ASSERT_EQ(count, 0); in HWTEST_F() 133 int count = 0; in HWTEST_F() local 134 std::shared_ptr<PublishCallback> callback = std::make_shared<PublishCallbackTest>(count); in HWTEST_F() 149 ASSERT_EQ(count, 0); in HWTEST_F() 173 int count in HWTEST_F() local 213 int count = 0; HWTEST_F() local 254 int count = 0; HWTEST_F() local 296 int count = 0; HWTEST_F() local 339 int count = 0; HWTEST_F() local 382 int count = 0; HWTEST_F() local 426 int count = 0; HWTEST_F() local 471 int count = 0; HWTEST_F() local 516 int count = 0; HWTEST_F() local 559 int count = 0; HWTEST_F() local 596 int count = 0; HWTEST_F() local 634 int count = 0; HWTEST_F() local 672 int count = 0; HWTEST_F() local 710 int count = 0; HWTEST_F() local 756 int count = DeviceManagerNotify::GetInstance().credentialCallback_.count(pkgName); HWTEST_F() local 771 int count = DeviceManagerNotify::GetInstance().credentialCallback_.count(pkgName); HWTEST_F() local 785 int count = DeviceManagerNotify::GetInstance().credentialCallback_.count(pkgName); HWTEST_F() local 1022 DmInitCallbackTest(int &count) DmInitCallbackTest() argument 1031 DeviceStateCallbackTest(int &count) DeviceStateCallbackTest() argument 1056 DiscoveryCallbackTest(int &count) DiscoveryCallbackTest() argument 1076 PublishCallbackTest(int &count) PublishCallbackTest() argument 1086 AuthenticateCallbackTest(int &count) AuthenticateCallbackTest() argument 1097 DeviceManagerFaCallbackTest(int &count) DeviceManagerFaCallbackTest() argument [all...] |
/foundation/distributeddatamgr/kv_store/kvstoremock/interfaces/mock/base/ |
H A D | securec.h | 123 SECUREC_API errno_t memset_s(void *dest, size_t destMax, int c, size_t count); 128 SECUREC_API errno_t wmemcpy_s(wchar_t *dest, size_t destMax, const wchar_t *src, size_t count); 130 SECUREC_API errno_t memmove_s(void *dest, size_t destMax, const void *src, size_t count); 132 SECUREC_API errno_t wmemmove_s(wchar_t *dest, size_t destMax, const wchar_t *src, size_t count); 136 SECUREC_API errno_t wcsncpy_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count); 140 SECUREC_API errno_t wcsncat_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count); 155 SECUREC_API int vsnprintf_s(char *strDest, size_t destMax, size_t count, const char *format, 158 SECUREC_API int snprintf_s(char *strDest, size_t destMax, size_t count, const char *format, 196 SECUREC_API errno_t memcpy_s(void *dest, size_t destMax, const void *src, size_t count); 200 SECUREC_API errno_t strncpy_s(char *strDest, size_t destMax, const char *strSrc, size_t count); [all...] |
H A D | securectype.h | 173 #define SECUREC_STRNCPY_SM(dest, destMax, src, count) \ 176 (SECUREC_TWO_MIN(count, strlen(src)) + 1) <= (size_t)destMax ) ? \ 177 ((count < strlen(src))? (memcpy(dest, src, count), *((char *)dest + count) = '\0', EOK): \ 178 (memcpy(dest, src, strlen(src) + 1), EOK)) : (strncpy_error(dest, destMax, src, count))) 221 #define SECUREC_STRNCAT_SM(dest, destMax, src, count) \ 226 (((unsigned long long)(count) & (unsigned long long)(-2)) < SECUREC_STRING_MAX_LEN)) { \ 235 } else if ((SECUREC_TWO_MIN((count), strlen(src)) + 1) <= ncatRestSize ) { \ 236 if ((count) < strle [all...] |
/foundation/arkui/ace_engine/frameworks/base/memory/ |
H A D | ref_counter.h | 40 // Define thread-safe counter using 'std::atomic' to implement Increase/Decrease count. 43 explicit ThreadSafeCounter(int32_t count) : count_(count) {} in ThreadSafeCounter() argument 52 int32_t count = count_.fetch_sub(1, std::memory_order_release); in Decrease() local 53 ACE_DCHECK(count > 0); in Decrease() 54 return count - 1; in Decrease() 61 // Try to increase reference count while current value is not zero. 64 int32_t count = CurrentCount(); in TryIncrease() local 66 if (count == 0) { in TryIncrease() 69 ACE_DCHECK(count > in TryIncrease() 83 ThreadUnsafeCounter(int32_t count) ThreadUnsafeCounter() argument 92 int32_t count = --count_; Decrease() local [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/libfscrypt/src/ |
H A D | init_utils.c | 79 void FreeStringVector(char **vector, int count)
in FreeStringVector() argument 82 for (int i = 0; i < count; i++) {
in FreeStringVector() 108 int count = 0;
in SplitStringExt() local 110 if (count > itemCounts - 1) {
in SplitStringExt() 115 FSCRYPT_ERROR_CHECK(expand != NULL, FreeStringVector(items, count);
in SplitStringExt() 117 int ret = memcpy_s(expand, sizeof(char *) * itemCounts, items, sizeof(char *) * count);
in SplitStringExt() 119 FreeStringVector(items, count);
in SplitStringExt() 127 items[count] = (char *)malloc(len + 1);
in SplitStringExt() 128 FSCRYPT_CHECK(items[count] != NULL, FreeStringVector(items, count);
in SplitStringExt() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/ |
H A D | drawing_text_lineTypography_test.cpp | 149 auto count = OH_Drawing_LineTypographyGetLineBreak(lineTypography, startIndex, maxWidth);
in HWTEST_F() local 150 EXPECT_EQ(count, strlen(text));
in HWTEST_F() 171 auto count = OH_Drawing_LineTypographyGetLineBreak(lineTypography, startIndex, maxWidth);
in HWTEST_F() local 172 EXPECT_EQ(count, strlen(text2));
in HWTEST_F() 192 auto count = OH_Drawing_LineTypographyGetLineBreak(lineTypography, startIndex, maxWidth);
in HWTEST_F() local 193 EXPECT_EQ(count, 1);
in HWTEST_F() 196 count = OH_Drawing_LineTypographyGetLineBreak(lineTypography, startIndex, maxWidth);
in HWTEST_F() 197 EXPECT_EQ(count, 0);
in HWTEST_F() 217 auto count = OH_Drawing_LineTypographyGetLineBreak(lineTypography, startIndex, maxWidth);
in HWTEST_F() local 218 EXPECT_EQ(count, in HWTEST_F() 241 size_t count = strlen(text); HWTEST_F() local 264 size_t count = strlen(text); HWTEST_F() local 287 size_t count = 1; HWTEST_F() local 317 size_t count = 1; HWTEST_F() local 348 auto count = OH_Drawing_LineTypographyGetLineBreak(lineTypography, startIndex, maxWidth); HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/text/font_fuzzer/ |
H A D | font_fuzzer.cpp | 127 uint32_t count = GetObject<uint32_t>() % MAX_SIZE + 1; in FontFuzzTest004() local 128 uint16_t* glyphs = new uint16_t[count]; in FontFuzzTest004() 129 for (size_t i = 0; i < count; i++) { in FontFuzzTest004() 132 scalar* widths = new scalar[count]; in FontFuzzTest004() 133 for (size_t i = 0; i < count; i++) { in FontFuzzTest004() 136 font.GetWidths(glyphs, count, widths); in FontFuzzTest004() 159 uint32_t count = GetObject<uint32_t>() % MAX_SIZE; in FontFuzzTest005() local 160 uint16_t* glyphs = new uint16_t[count]; in FontFuzzTest005() 161 for (size_t i = 0; i < count; i++) { in FontFuzzTest005() 164 scalar* widths = new scalar[count]; in FontFuzzTest005() 200 uint32_t count = GetObject<uint32_t>() % MAX_SIZE + 1; FontFuzzTest006() local 234 uint32_t count = GetObject<uint32_t>() % MAX_SIZE + 1; FontFuzzTest007() local 259 uint32_t count = GetObject<uint32_t>() % MAX_SIZE + 1; FontFuzzTest008() local 289 uint32_t count = GetObject<uint32_t>() % MAX_SIZE; FontFuzzTest009() local 310 uint32_t count = GetObject<uint32_t>() % MAX_SIZE + 1; FontFuzzTest010() local [all...] |
/foundation/distributeddatamgr/udmf/framework/ndkimpl/data/ |
H A D | utd.cpp | 31 static void DestroyArrayPtr(const char** &arrayPtr, unsigned int& count)
in DestroyArrayPtr() argument 37 for (unsigned int i = 0; i < count; i++) {
in DestroyArrayPtr() 45 count = 0;
in DestroyArrayPtr() 49 static const char** CreateStrArrByVector(const std::vector<std::string>& paramVector, unsigned int* count)
in CreateStrArrByVector() argument 54 *count = 0;
in CreateStrArrByVector() 59 *count = 0;
in CreateStrArrByVector() 69 *count = 0;
in CreateStrArrByVector() 73 *count = size;
in CreateStrArrByVector() 89 static const char** GetTypesByCondition(const char* condition, unsigned int* count, GetUtdByConditionPtr funcPtr)
in GetTypesByCondition() argument 91 if (condition == nullptr || count in GetTypesByCondition() 177 OH_Utd_GetBelongingToTypes(OH_Utd* pThis, unsigned int* count) OH_Utd_GetBelongingToTypes() argument 186 OH_Utd_GetFilenameExtensions(OH_Utd* pThis, unsigned int* count) OH_Utd_GetFilenameExtensions() argument 195 OH_Utd_GetMimeTypes(OH_Utd* pThis, unsigned int* count) OH_Utd_GetMimeTypes() argument 204 OH_Utd_GetTypesByFilenameExtension(const char* extension, unsigned int* count) OH_Utd_GetTypesByFilenameExtension() argument 209 OH_Utd_GetTypesByMimeType(const char* mimeType, unsigned int* count) OH_Utd_GetTypesByMimeType() argument 287 OH_Utd_DestroyStringList(const char** list, unsigned int count) OH_Utd_DestroyStringList() argument [all...] |
/foundation/resourceschedule/ffrt/test/testfunc/ |
H A D | util.cpp | 126 int perf_single_event(std::function<void()> func, size_t& count, uint32_t event) in perf_single_event() argument 144 ioctl(fd, PERF_EVENT_IOC_ENABLE, 0); // start count in perf_single_event() 146 size_t rcount = read(fd, &count, sizeof(count)); in perf_single_event() 147 if (rcount < sizeof(count)) { in perf_single_event() 204 int perf_event_instructions(std::function<void()> func, size_t& count) in perf_event_instructions() argument 206 return perf_single_event(func, count, PERF_COUNT_HW_INSTRUCTIONS); in perf_event_instructions() 208 int perf_event_cycles(std::function<void()> func, size_t& count) in perf_event_cycles() argument 210 return perf_single_event(func, count, PERF_COUNT_HW_CPU_CYCLES); in perf_event_cycles() 212 int perf_event_branch_instructions(std::function<void()> func, size_t& count) in perf_event_branch_instructions() argument 216 perf_event_branch_misses(std::function<void()> func, size_t& count) perf_event_branch_misses() argument 222 perf_event_instructions(std::function<void()> func, size_t& count) perf_event_instructions() argument 229 perf_event_cycles(std::function<void()> func, size_t& count) perf_event_cycles() argument 236 perf_event_branch_instructions(std::function<void()> func, size_t& count) perf_event_branch_instructions() argument 243 perf_event_branch_misses(std::function<void()> func, size_t& count) perf_event_branch_misses() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/hyper_graphic_manager/unittest/ |
H A D | hgm_task_handle_thread_test.cpp | 77 int count = 0;
in HWTEST_F() local 78 instance.PostTask([&count](){ count++; }, 0);
in HWTEST_F() 80 EXPECT_EQ(count, 1);
in HWTEST_F() 92 int count = 0;
in HWTEST_F() local 94 instance.PostTask([&count](){ count++; }, 1000);
in HWTEST_F() 96 EXPECT_EQ(count, 0);
in HWTEST_F() 99 EXPECT_EQ(count, 1);
in HWTEST_F() 100 EXPECT_GE(std::chrono::duration_cast<std::chrono::milliseconds>(end_time - start_time).count(), 100 in HWTEST_F() [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/ |
H A D | raw_socket_test.cpp | 61 int count = 10; in HWTEST_F() local 63 EXPECT_TRUE(pRawSocket->Send(buff, count, destHwaddr) == -1); in HWTEST_F() 69 int count = 10; in HWTEST_F() local 72 EXPECT_TRUE(pRawSocket->Send(buff, count, destHwaddr) == -1); in HWTEST_F() 78 int count = 10; in HWTEST_F() local 80 EXPECT_TRUE(pRawSocket->Recv(buff, count, timeoutMillis) == 0); in HWTEST_F() 91 int count = 10; in HWTEST_F() local 93 EXPECT_TRUE(pRawSocket->Send(buff, count, destHwaddr) == -1); in HWTEST_F() 99 int count = 10; in HWTEST_F() local 101 EXPECT_TRUE(pRawSocket->Send(buff, count, destHwadd in HWTEST_F() [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/ |
H A D | serializable_test.cpp | 29 int32_t count = 0; member 39 SetValue(node[GET_NAME(count)], count); 50 GetValue(node, GET_NAME(count), count); 60 return name == ref.name && count == ref.count && status == ref.status && value == ref.value in operator ==() 69 int32_t count = 123; member 75 SetValue(node[GET_NAME(count)], count); 257 int32_t *count = nullptr; HWTEST_F() member [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/sbccodecctrl/src/ |
H A D | a2dp_decoder_sbc.cpp | 59 int count = len; in DecodePacket() local 61 if (count + len > CODEC_BUFFER_SIZE4K) { in DecodePacket() 62 LOG_INFO(" count > buf"); in DecodePacket() 72 &pcmData[count], sizeof(pcmData) - count, &len); in DecodePacket() 78 count += len; in DecodePacket() 80 LOG_INFO("[DataAvailable][packetSize:%hu][count:%{public}d][len:%{public}zu][frameLen:%{public}d]", in DecodePacket() 81 packetSize, count, len, frameLen); in DecodePacket() 83 if (count > 0) { in DecodePacket() 84 observer_->DataAvailable(pcmData, count); in DecodePacket() [all...] |
/foundation/multimedia/image_framework/mock/native/src/ |
H A D | rwlock.cpp | 29 int count; in LockRead() local 33 while ((count = lockCount_) == LOCK_STATUS_WRITE || writeWaitCount_ > 0) { in LockRead() 35 } while (!lockCount_.compare_exchange_weak(count, count + 1)); in LockRead() 39 while ((count = lockCount_) == LOCK_STATUS_WRITE) {} in LockRead() 40 } while (!lockCount_.compare_exchange_weak(count, count + 1)); in LockRead()
|
/foundation/distributeddatamgr/relational_store/interfaces/ndk/src/ |
H A D | relational_predicates_objects.cpp | 25 int RelationalPredicatesObjects::PutInt64(OH_VObject *objects, int64_t *value, uint32_t count) in PutInt64() argument 28 if (self == nullptr || value == nullptr || count == 0) { in PutInt64() 32 self->values_.reserve(count); in PutInt64() 33 for (uint32_t i = 0; i < count; i++) { in PutInt64() 39 int RelationalPredicatesObjects::PutDouble(OH_VObject *objects, double *value, uint32_t count) in PutDouble() argument 42 if (self == nullptr || value == nullptr || count == 0) { in PutDouble() 46 self->values_.reserve(count); in PutDouble() 47 for (uint32_t i = 0; i < count; i++) { in PutDouble() 65 int RelationalPredicatesObjects::PutTexts(OH_VObject *objects, const char **value, uint32_t count) in PutTexts() argument 68 if (self == nullptr || value == nullptr || count in PutTexts() [all...] |
/foundation/arkui/ace_engine/frameworks/core/gestures/ |
H A D | velocity_tracker.cpp | 26 auto count = axis.GetTrackNum(); in CheckExtremePoint() local 29 if (LessNotEqual(std::fabs(y[count - 1] - y[count - 2]), 100)) { // 2: const, 100: quiver threshold in CheckExtremePoint() 66 auto count = axis.GetTrackNum(); in GetLinearSlope() local 68 while (index <= MAX_INDEX && count >= index) { in GetLinearSlope() 69 if (!NearEqual(x[count - 1], x[count - index])) { in GetLinearSlope() 72 auto previousIndex = count - index; in GetLinearSlope() 73 auto lastIndex = count - 1; in GetLinearSlope() 82 if (index > MAX_INDEX || index > count) { in GetLinearSlope() [all...] |