Home
last modified time | relevance | path

Searched refs:magicNumber (Results 1 – 4 of 4) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
Dformat_utils_test.cpp32 const std::vector<uint8_t> getBuffer(const int magicNumber, const int version, const uint16_t flags, in getBuffer() argument
35 buffer.push_back(magicNumber >> 24); in getBuffer()
36 buffer.push_back(magicNumber >> 16); in getBuffer()
37 buffer.push_back(magicNumber >> 8); in getBuffer()
38 buffer.push_back(magicNumber); in getBuffer()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dformat_utils.cpp54 const uint32_t magicNumber = ByteArrayUtils::readUint32(dictBuffer.data(), 0); in detectFormatVersion() local
55 switch (magicNumber) { in detectFormatVersion()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DBinaryDictOffdeviceUtils.java166 final int magicNumber = ((tmpBuffer[MAGIC_NUMBER_START_OFFSET] & 0xFF) << 24) in process() local
170 if (magicNumber != FormatSpec.MAGIC_NUMBER) { in process()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java866 int magicNumber = 42; in testKeyPressedEventWhenIdleAndAudioOff_dialCall() local
867 when(cursor.getColumnIndexOrThrow(CallLog.Calls.NUMBER)).thenReturn(magicNumber); in testKeyPressedEventWhenIdleAndAudioOff_dialCall()
868 when(cursor.getString(magicNumber)).thenReturn(TEST_PHONE_NUMBER); in testKeyPressedEventWhenIdleAndAudioOff_dialCall()