Searched refs:magic (Results 1 - 16 of 16) sorted by relevance

/frameworks/base/services/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) &&
H A Dcommon_time_server_packets.cpp82 SERIALIZE_INT32(magic);
94 DESERIALIZE_INT32(magic);
/frameworks/base/services/java/com/android/server/net/
H A DNetworkStatsCollection.java61 /** File header magic number: "ANET" */
260 // verify file magic header intact
261 final int magic = in.readInt();
262 if (magic != FILE_MAGIC) {
263 throw new ProtocolException("unexpected magic: " + magic);
334 // verify file magic header intact
335 final int magic = in.readInt();
336 if (magic != FILE_MAGIC) {
337 throw new ProtocolException("unexpected magic
[all...]
/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
H A Degl_display.cpp60 magic('_dpy'), finishOnSwap(false), traceGpuCompletion(false), refs(0) {
64 magic = 0;
/frameworks/base/media/java/android/media/
H A DMiniThumbFile.java38 * 8 bytes magic (a magic number to match what's in the database)
147 // Get the magic number for the specified id in the mini-thumb file.
148 // Returns 0 if the magic is not available.
151 // defined as having the right magic number at the offset
171 Log.v(TAG, "Got exception checking file magic: ", ex);
174 Log.e(TAG, "Got exception when reading magic, id = " + id +
188 public synchronized void saveMiniThumbToFile(byte[] data, long id, long magic) argument
203 mBuffer.putLong(magic);
246 if (size > 1 + 8 + 4) { // flag, magic, lengt
[all...]
/frameworks/compile/libbcc/include/bcc/Renderscript/
H A DRSInfo.h47 /* RS info file magic */
65 uint8_t magic[8]; member in struct:bcc::rsinfo::Header
/frameworks/compile/libbcc/lib/Renderscript/
H A DRSInfoReader.cpp212 // Check the magic.
213 if (::memcmp(header->magic, RSINFO_MAGIC, sizeof(header->magic)) != 0) {
214 ALOGV("Wrong magic found in the RS info file %s. Treat it as a dirty "
H A DRSInfo.cpp229 ::memcpy(mHeader.magic, RSINFO_MAGIC, sizeof(mHeader.magic));
/frameworks/volley/src/com/android/volley/toolbox/
H A DDiskBasedCache.java379 int magic = readInt(is);
380 if (magic != CACHE_MAGIC) {
/frameworks/base/data/fonts/
H A DAndroid.mk30 # this magic makes LOCAL_REQUIRED_MODULES work
/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)
H A Dtexture.cpp1618 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) {
1646 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) {
/frameworks/base/core/java/android/os/
H A DBundle.java1727 int magic = parcel.readInt();
1728 if (magic != BUNDLE_MAGIC) {
1730 throw new IllegalStateException("Bad magic number for Bundle: 0x"
1731 + Integer.toHexString(magic));
/frameworks/base/core/java/android/provider/
H A DMediaStore.java611 // If the magic is non-zero, we simply return thumbnail if it does exist.
617 long magic = thumbFile.getMagic(origId);
618 if (magic != 0) {
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java83 // In-memory Parcel magic number, used to detect attempts to unmarshall bad data
5956 int magic = in.readInt();
5957 if (magic != MAGIC) {
5958 throw new ParcelFormatException("Bad magic number");

Completed in 415 milliseconds