Searched refs:bitPos (Results 1 - 7 of 7) sorted by relevance
/foundation/communication/dsoftbus/core/transmission/session/src/ |
H A D | softbus_scenario_manager.c | 348 int32_t bitPos = 0; in ScenarioManagerGetBitPosByBusinessType() local 351 bitPos = FILE_BIT_POS; in ScenarioManagerGetBitPosByBusinessType() 354 bitPos = AUDIO_BIT_POS; in ScenarioManagerGetBitPosByBusinessType() 357 bitPos = VIDEO_BIT_POS; in ScenarioManagerGetBitPosByBusinessType() 363 return bitPos; in ScenarioManagerGetBitPosByBusinessType() 419 int bitPos = ScenarioManagerGetBitPosByBusinessType(info->businessType); in ScenarioManagerDoNotifyIfNeed() local 420 if (bitPos < 0) { in ScenarioManagerDoNotifyIfNeed() 426 TRANS_LOGI(TRANS_CTRL, "finalType=%{public}d, bitPos=%{public}d", finalType, bitPos); in ScenarioManagerDoNotifyIfNeed() 427 if (!SoftbusIsBitmapSet(&finalType, bitPos)) { in ScenarioManagerDoNotifyIfNeed() [all...] |
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/utils/ |
H A D | bit_reader.cpp | 68 bool BitReader::SeekTo(size_t bitPos) in SeekTo() argument 70 size_t bytePos = bitPos / 8; // 8 in SeekTo() 75 uint8_t skipBits = bitPos % 8; // 8 in SeekTo()
|
H A D | ffmpeg_utils.cpp | 376 for (uint8_t bitPos = 0, channelNum = 0; (bitPos < 64) && (channelNum < channels); ++bitPos) { // 64 in ConvertChannelLayoutFromFFmpeg() 377 mask = 1ULL << bitPos; in ConvertChannelLayoutFromFFmpeg()
|
H A D | bit_reader.h | 75 bool SeekTo(size_t bitPos);
|
/foundation/filemanagement/dfs_service/utils/dentry/src/ |
H A D | meta_file_clouddisk.cpp | 289 static bool UpdateDentry(HmdfsDentryGroup &d, const MetaBase &base, uint32_t nameHash, uint32_t bitPos) in UpdateDentry() argument 295 de = &d.nsl[bitPos]; in UpdateDentry() 298 auto ret = memcpy_s(d.fileName[bitPos], slots * DENTRY_NAME_LEN, name.c_str(), name.length()); in UpdateDentry() 318 BitOps::SetBit(bitPos + i, d.bitmap); in UpdateDentry() 357 uint32_t bitPos = 0; in DoCreate() local 379 bitPos = RoomForFilename(dentryBlk.bitmap, GetDentrySlots(base.name.length()), DENTRY_PER_GROUP); in DoCreate() 380 if (bitPos < DENTRY_PER_GROUP) { in DoCreate() 388 if (!UpdateDentry(dentryBlk, base, namehash, bitPos)) { in DoCreate() 432 uint32_t bitPos = 0; in FindInBlock() local 435 while (bitPos < DENTRY_PER_GROU in FindInBlock() 515 uint32_t bitPos = (de - ctx.page->nsl); DoRemove() local [all...] |
H A D | meta_file.cpp | 278 static bool UpdateDentry(HmdfsDentryGroup &d, const MetaBase &base, uint32_t nameHash, uint32_t bitPos) in UpdateDentry() argument 284 de = &d.nsl[bitPos]; in UpdateDentry() 287 errno_t ret = memcpy_s(d.fileName[bitPos], slots * DENTRY_NAME_LEN, name.c_str(), name.length()); in UpdateDentry() 303 BitOps::SetBit(bitPos + i, d.bitmap); in UpdateDentry() 334 uint32_t bitPos = 0; in DoCreate() local 360 bitPos = RoomForFilename(dentryBlk.bitmap, GetDentrySlots(base.name.length()), DENTRY_PER_GROUP); in DoCreate() 361 if (bitPos < DENTRY_PER_GROUP) { in DoCreate() 370 if (!UpdateDentry(dentryBlk, base, namehash, bitPos)) { in DoCreate() 415 uint32_t bitPos = 0; in FindInBlock() local 418 while (bitPos < DENTRY_PER_GROU in FindInBlock() 515 uint32_t bitPos = (de - ctx.page->nsl); DoRemove() local [all...] |
/foundation/filemanagement/dfs_service/test/unittests/clouddisk_database/mock/ |
H A D | meta_file_clouddisk_mock.cpp | 314 static void UpdateDentry(HmdfsDentryGroup &d, const MetaBase &base, uint32_t nameHash, uint32_t bitPos) in UpdateDentry() argument 320 de = &d.nsl[bitPos]; in UpdateDentry() 323 auto ret = memcpy_s(d.fileName[bitPos], slots * DENTRY_NAME_LEN, name.c_str(), name.length()); in UpdateDentry() 340 BitOps::SetBit(bitPos + i, d.bitmap); in UpdateDentry() 398 uint32_t bitPos = 0; in FindInBlock() local 401 while (bitPos < DENTRY_PER_GROUP) { in FindInBlock() 402 if (!BitOps::TestBit(bitPos, dentryBlk.bitmap)) { in FindInBlock() 403 bitPos++; in FindInBlock() 407 de = &dentryBlk.nsl[bitPos]; in FindInBlock() 409 bitPos in FindInBlock() [all...] |
Completed in 6 milliseconds