Searched defs:magic (Results 1 - 6 of 6) sorted by relevance

/frameworks/base/media/java/android/media/
H A DMiniThumbFile.java37 * 8 bytes magic (a magic number to match what's in the database)
146 // Get the magic number for the specified id in the mini-thumb file.
147 // Returns 0 if the magic is not available.
150 // defined as having the right magic number at the offset
170 Log.v(TAG, "Got exception checking file magic: ", ex);
173 Log.e(TAG, "Got exception when reading magic, id = " + id +
187 public synchronized void saveMiniThumbToFile(byte[] data, long id, long magic) argument
202 mBuffer.putLong(magic);
245 if (size > 1 + 8 + 4) { // flag, magic, lengt
[all...]
/frameworks/base/libs/common_time/
H A Dcommon_time_server_packets.h38 // magic number identifying the protocol
39 uint32_t magic; member in class:android::TimeServicePacketHeader
60 magic = kMagic;
68 return ((magic == kMagic) &&
/frameworks/compile/libbcc/include/bcc/Renderscript/
H A DRSInfo.h48 /* RS info file magic */
68 uint8_t magic[8]; member in struct:bcc::rsinfo::Header
/frameworks/native/opengl/libs/EGL/
H A Degl_display.h94 inline bool isValid() const { return magic == '_dpy'; }
121 uint32_t magic; member in class:android::egl_display_t
/frameworks/native/opengl/libagl/
H A Degl.cpp146 uint32_t magic; member in struct:android::egl_surface_t
177 : magic(MAGIC), dpy(dpy), config(config), ctx(0), zombie(false)
185 magic = 0;
189 ALOGE_IF(magic != MAGIC, "invalid EGLSurface (%p)", this);
190 return magic == MAGIC;
1244 if (static_cast<ANativeWindow*>(window)->common.magic !=
2042 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC)
2071 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC)
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp236 const uint32_t magic = htodl(*reinterpret_cast<const uint32_t*>(idmap)); local
237 if (magic != IDMAP_MAGIC) {
238 ALOGW("idmap: no magic found in header (is 0x%08x, expected 0x%08x)",
239 magic, IDMAP_MAGIC);

Completed in 321 milliseconds