Home
last modified time | relevance | path

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

12

/frameworks/av/media/libstagefright/foundation/tests/
DAData_test.cpp41 EventCounter(int *counter, int magic=1234) : mCounter(counter), mMagic(magic) { } in EventCounter()
43 int magic() const { return mMagic; } in magic() function
50 DerivedCounter(int *counter, int magic=1234) : EventCounter(counter, magic) { } in DerivedCounter()
327 EXPECT_EQ(123, _unique->magic()); in TEST_F()
345 EXPECT_EQ(1234, _unique->magic()); in TEST_F()
364 EXPECT_EQ(234, _shared->magic()); in TEST_F()
375 EXPECT_EQ(234, _shared->magic()); in TEST_F()
386 EXPECT_EQ(234, _shared->magic()); in TEST_F()
403 EXPECT_EQ(1234, _shared->magic()); in TEST_F()
481 EXPECT_EQ(123, _unique->magic()); in TEST_F()
[all …]
/frameworks/native/libs/vr/libpdx_uds/
Dchannel_parcelable.cpp81 uint32_t magic = 0; in readFromParcel() local
91 res = parcel->readUint32(&magic); in readFromParcel()
98 if (magic != kUdsMagicParcelHeader) { in readFromParcel()
102 magic, kUdsMagicParcelHeader); in readFromParcel()
Dipc_helper.cpp171 uint32_t magic{0}; member
193 preamble.magic = kMagicPreamble; in Send()
299 if (preamble.magic != kMagicPreamble) { in Receive()
/frameworks/av/media/mtp/
DMtpDescriptors.cpp169 .magic = htole32(FUNCTIONFS_STRINGS_MAGIC),
207 .magic = htole32(FUNCTIONFS_DESCRIPTORS_MAGIC_V2),
225 .magic = htole32(FUNCTIONFS_DESCRIPTORS_MAGIC_V2),
243 .magic = htole32(FUNCTIONFS_DESCRIPTORS_MAGIC),
254 .magic = htole32(FUNCTIONFS_DESCRIPTORS_MAGIC),
DMtpDescriptors.h60 __le32 magic; member
/frameworks/compile/mclinker/include/mcld/LD/
DDiagReaders.inc3 "magic number is mismatched in `%0'",
4 "magic number is mismatched in `%0'")
/frameworks/base/core/java/android/util/
DXml.java168 final byte[] magic = new byte[4]; in resolvePullParser()
171 Os.pread(((FileInputStream) in).getFD(), magic, 0, magic.length, 0); in resolvePullParser() local
180 in.read(magic); in resolvePullParser()
185 if (Arrays.equals(magic, BinaryXmlSerializer.PROTOCOL_MAGIC_VERSION_0)) { in resolvePullParser()
/frameworks/native/libs/nativebase/include/nativebase/
Dnativebase.h46 int magic; member
70 common.magic = ANDROID_NATIVE_BUFFER_MAGIC; in ANativeWindowBuffer()
/frameworks/base/core/java/android/net/netstats/
DNetworkStatsDataMigrationUtils.java274 final int magic = in.readInt(); in readPlatformCollection() local
275 if (magic != FILE_MAGIC) { in readPlatformCollection()
276 throw new ProtocolException("unexpected magic: " + magic); in readPlatformCollection()
541 final int magic = in.readInt(); in readLegacyUid() local
542 if (magic != FILE_MAGIC) { in readLegacyUid()
543 throw new ProtocolException("unexpected magic: " + magic); in readLegacyUid()
/frameworks/base/tools/aapt2/format/
DContainer.cpp275 ::google::protobuf::uint32 magic; in ContainerReader()
276 if (!coded_in_.ReadLittleEndian32(&magic)) { in ContainerReader()
283 if (magic != kContainerFormatMagic) { in ContainerReader()
285 StringPrintf("magic value is 0x%08x but AAPT expects 0x%08x", magic, kContainerFormatMagic); in ContainerReader()
/frameworks/native/opengl/libs/EGL/
Degl_display.h81 inline bool isValid() const { return magic == '_dpy'; } in isValid()
108 uint32_t magic;
Degl_display.cpp81 : magic('_dpy'), in egl_display_t()
88 magic = 0; in ~egl_display_t()
/frameworks/native/vulkan/include/hardware/
Dhwvulkan.h50 uintptr_t magic; member
/frameworks/native/libs/binder/
DPersistableBundle.cpp399 int32_t magic; in readFromParcelInner() local
400 RETURN_IF_FAILED(parcel->readInt32(&magic)); in readFromParcelInner()
401 if (magic != BUNDLE_MAGIC && magic != BUNDLE_MAGIC_NATIVE) { in readFromParcelInner()
402 ALOGE("Bad magic number for PersistableBundle: 0x%08x", magic); in readFromParcelInner()
/frameworks/compile/slang/lit-tests/bitcode_wrapper/
Dbitcode_wrapper_test.ll3 ; has the right magic number.
35 ; Check for the magic number.
/frameworks/base/libs/androidfw/
DIdmap.cpp42 uint32_t magic; member
266 if (dtohl(header->magic) != kIdmapMagic) { in Load()
268 dtohl(header->magic), kIdmapMagic); in Load()
/frameworks/base/tools/aapt2/
Dformats.md16 | `4` | `magic` | The magic bytes must equal `'AAPT'` or `0x54504141`. |
/frameworks/base/cmds/idmap2/libidmap2/
DFabricatedOverlay.cpp145 uint32_t magic; in FromBinaryStream() local
146 if (!Read32(stream, &magic)) { in FromBinaryStream()
150 if (magic != kFabricatedOverlayMagic) { in FromBinaryStream()
/frameworks/base/core/java/com/android/internal/util/
DBinaryXmlPullParser.java117 final byte[] magic = new byte[4]; in setInput()
118 mIn.readFully(magic); in setInput()
119 if (!Arrays.equals(magic, PROTOCOL_MAGIC_VERSION_0)) { in setInput()
120 throw new IOException("Unexpected magic " + bytesToHexString(magic)); in setInput()
/frameworks/native/vulkan/libvulkan/
Ddriver.h216 if (dispatch->magic != HWVULKAN_DISPATCH_MAGIC && dispatch->vtbl != data) { in SetDataInternal()
217 ALOGE("invalid dispatchable object magic 0x%" PRIxPTR, dispatch->magic); in SetDataInternal()
Dstubhal.cpp74 g_instances[i].magic = HWVULKAN_DISPATCH_MAGIC; in CreateInstance()
/frameworks/base/core/proto/android/internal/
Dprotolog.proto58 /* the magic number header */
/frameworks/base/core/java/android/os/
DBaseBundle.java1836 final int magic = parcel.readInt(); in readFromParcelInner() local
1837 final boolean isJavaBundle = magic == BUNDLE_MAGIC; in readFromParcelInner()
1838 final boolean isNativeBundle = magic == BUNDLE_MAGIC_NATIVE; in readFromParcelInner()
1841 + Integer.toHexString(magic)); in readFromParcelInner()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/docs/
Ddagger.md18 this is intentional as it keeps the "magic" in a single location. The explicit nature of how
/frameworks/native/vulkan/nulldrv/
Dnull_driver.cpp305 instance->dispatch.magic = HWVULKAN_DISPATCH_MAGIC; in CreateInstance()
307 instance->physical_device.dispatch.magic = HWVULKAN_DISPATCH_MAGIC; in CreateInstance()
673 device->dispatch.magic = HWVULKAN_DISPATCH_MAGIC; in CreateDevice()
676 device->queue.dispatch.magic = HWVULKAN_DISPATCH_MAGIC; in CreateDevice()
752 cmdbufs[i]->dispatch.magic = HWVULKAN_DISPATCH_MAGIC; in AllocateCommandBuffers()

12