Home
last modified time | relevance | path

Searched refs:bitCount (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/av/media/module/codecs/m4v_h263/enc/src/
Dcombined_encode.cpp285 Int byteCount = 0, byteCount1 = 0, bitCount = 0; in EncodeSliceCombinedMode() local
367 bitCount = BitstreamGetPos(bs1); in EncodeSliceCombinedMode()
368 byteCount1 = byteCount = bitCount >> 3; /* save the position before GOB header */ in EncodeSliceCombinedMode()
369 bitCount = bitCount & 0x7; in EncodeSliceCombinedMode()
437 bitCount = BitstreamGetPos(bs1); in EncodeSliceCombinedMode()
438 byteCount = bitCount >> 3; /* save the state before encoding */ in EncodeSliceCombinedMode()
439 bitCount = bitCount & 0x7; in EncodeSliceCombinedMode()
469 BitstreamRepos(bs1, byteCount, bitCount); /* rewind one MB */ in EncodeSliceCombinedMode()
594 bitCount = BitstreamGetPos(bs1); in EncodeSliceCombinedMode()
595 byteCount = bitCount >> 3; /* save the position before GOB header */ in EncodeSliceCombinedMode()
[all …]
Dbitstream_io.h44 PV_STATUS BitstreamRepos(BitstreamEncVideo *bitstream, Int byteCount, Int bitCount);
Dbitstream_io.cpp581 PV_STATUS BitstreamRepos(BitstreamEncVideo *bitstream, Int byteCount, Int bitCount) in BitstreamRepos() argument
591 if (bitCount) in BitstreamRepos()
593 bitstream->bitLeft = (WORD_SIZE << 3) - bitCount; /* bitCount should be 0-31 */ in BitstreamRepos()
/frameworks/base/core/tests/coretests/src/android/net/sntp/
DTimestamp64Test.java284 for (int bitCount = 1; bitCount < Integer.SIZE; bitCount++) { in testRandomizeLowestBits()
285 int upperBitMask = 0xFFFFFFFF << bitCount; in testRandomizeLowestBits()
294 Timestamp64.randomizeLowestBits(random, input, bitCount); in testRandomizeLowestBits()
306 assertTrue(bitCount + ":" + values.size(), values.size() > 1); in testRandomizeLowestBits()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
DIntegerPerfTest.java99 int count = Integer.bitCount((int) (l & 0xffffffffL)); in pop2()
100 count += Integer.bitCount((int) (l >>> 32)); in pop2()
110 t += Long.bitCount((long) ++i); in timeLongBitCount_Long()
/frameworks/base/core/java/android/service/voice/
DHotwordDetectedResult.java352 totalBits += bitCount(CONFIDENCE_LEVEL_VERY_HIGH); in getUsageSize()
355 totalBits += bitCount(LIMIT_HOTWORD_OFFSET_MAX_VALUE); in getUsageSize()
358 totalBits += bitCount(AudioRecord.getMaxSharedAudioHistoryMillis()); in getUsageSize()
361 totalBits += bitCount(LIMIT_AUDIO_CHANNEL_MAX_VALUE); in getUsageSize()
368 totalBits += bitCount(HotwordDetectedResult.getMaxScore()); in getUsageSize()
371 totalBits += bitCount(HotwordDetectedResult.getMaxScore()); in getUsageSize()
374 totalBits += bitCount(HotwordDetectedResult.getMaxHotwordPhraseId()); in getUsageSize()
381 totalBits += bitCount(HotwordDetectedResult.getMaxBackgroundAudioPower()); in getUsageSize()
387 private static int bitCount(long value) { in bitCount() method in HotwordDetectedResult
/frameworks/base/media/java/android/media/
DAudioFormat.java694 return Integer.bitCount(mask); in channelCountFromInChannelMask()
704 return Integer.bitCount(mask); in channelCountFromOutChannelMask()
1028 final int channelIndexCount = Integer.bitCount(getChannelIndexMask()); in AudioFormat()
1300 Integer.bitCount(channelMask) != Integer.bitCount(mChannelIndexMask)) { in setChannelMask()
1353 Integer.bitCount(channelIndexMask) != Integer.bitCount(mChannelMask)) { in setChannelIndexMask()
DAudioDeviceInfo.java516 countSet.add(Integer.bitCount(index_mask)); in getChannelCounts()
/frameworks/base/core/java/com/android/internal/widget/
DChildHelper.java495 return Long.bitCount(mData); in countOnesBefore()
497 return Long.bitCount(mData & ((1L << index) - 1)); in countOnesBefore()
500 return Long.bitCount(mData & ((1L << index) - 1)); in countOnesBefore()
502 return mNext.countOnesBefore(index - BITS_PER_WORD) + Long.bitCount(mData); in countOnesBefore()
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityNodeInfoTest.java67 action -> Long.bitCount(action.mSerializationFlag) != 1); in testStandardActions_serializationFlagIsValid()
80 action -> Integer.bitCount(action.getId()) == 1 in testStandardActions_serializationFlagIsValid()
/frameworks/base/services/core/java/com/android/server/location/eventlog/
DLocalEventLog.java19 import static java.lang.Integer.bitCount;
55 static final int MAX_TIME_DELTA = (1 << bitCount(TIME_DELTA_MASK)) - 1;
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DTouchState.java370 return Integer.bitCount(mInjectedPointersDown); in getInjectedPointerDownCount()
463 return Integer.bitCount(mReceivedPointersDown); in getReceivedPointerDownCount()
DEventDispatcher.java193 builder.append(Integer.bitCount(mState.getInjectedPointersDown())); in toString()
/frameworks/base/telephony/java/android/telephony/
DRadioAccessFamily.java410 return Long.bitCount(networkTypeBitmaskL) - Long.bitCount(networkTypeBitmaskR); in compare()
/frameworks/base/core/java/com/android/internal/util/
DBitUtils.java68 int size = Long.bitCount(val); in unpackBits()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DFlexibilityController.java348 mFlexibilityTracker = new FlexibilityTracker(Integer.bitCount(mSupportedFlexConstraints)); in FlexibilityController()
387 Integer.bitCount(getRelevantAppliedConstraintsLocked(js))); in maybeStartTrackingJobLocked()
525 final int numSatisfied = Integer.bitCount(satisfiedConstraints); in hasEnoughSatisfiedConstraintsLocked()
554 if (Integer.bitCount(constraints) > numSatisfied && seenRecently) { in hasEnoughSatisfiedConstraintsLocked()
871 Integer.bitCount(getRelevantAppliedConstraintsLocked(js)); in updateFlexibleConstraints()
999 + " numSatisfied: " + Integer.bitCount( in scheduleDropNumConstraintsAlarm()
1073 final int numAppliedSystemWideConstraints = Integer.bitCount( in handleMessage()
1460 int[] dropPercentInt = new int[Integer.bitCount(FLEXIBLE_CONSTRAINTS)]; in parsePercentToDropString()
/frameworks/base/core/java/android/util/
DStateSet.java98 final int numBits = Integer.bitCount(i);
/frameworks/base/core/java/com/android/internal/os/
DPowerStats.java64 (1 << Integer.bitCount(STATS_ARRAY_LENGTH_MASK)) - 1;
69 (1 << Integer.bitCount(STATE_STATS_ARRAY_LENGTH_MASK)) - 1;
74 (1 << Integer.bitCount(UID_STATS_ARRAY_LENGTH_MASK)) - 1;
/frameworks/base/core/java/android/net/metrics/
DApfProgramEvent.java238 List<String> names = new ArrayList<>(Integer.bitCount(bitfield)); in namesOf()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DProxyController.java669 numRafSupported[len] = Integer.bitCount(mPhones[len].getRadioAccessFamily()); in getMaxRafSupported()
687 numRafSupported[len] = Integer.bitCount(mPhones[len].getRadioAccessFamily()); in getMinRafSupported()
/frameworks/base/core/java/android/view/
DMotionEvent.java4468 final int count = Long.bitCount(bits); in copyFrom()
4533 final int index = Long.bitCount(bits & ~(0xFFFFFFFFFFFFFFFFL >>> axis)); in getAxisValue()
4589 final int index = Long.bitCount(bits & ~(0xFFFFFFFFFFFFFFFFL >>> axis)); in setAxisValue()
4596 final int count = Long.bitCount(bits); in setAxisValue()
DInputEventConsistencyVerifier.java381 Integer.bitCount(mTouchEventStreamPointers); in onTouchEvent()
/frameworks/base/core/java/android/print/
DPrintAttributes.java1426 if ((colorMode & VALID_COLOR_MODES) == 0 || Integer.bitCount(colorMode) != 1) { in enforceValidColorMode()
1432 if ((duplexMode & VALID_DUPLEX_MODES) == 0 || Integer.bitCount(duplexMode) != 1) { in enforceValidDuplexMode()
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityEventBuilder.java358 switch (Long.bitCount(transports)) { in transportsToLinkLayer()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecMessageValidator.java527 return (Integer.bitCount(value) <= 1); in isValidRecordingSequence()

12