/frameworks/base/location/java/android/location/ |
H A D | Geofence.java | 123 public void writeToParcel(Parcel parcel, int flags) { argument 124 parcel.writeInt(mType); 125 parcel.writeDouble(mLatitude); 126 parcel.writeDouble(mLongitude); 127 parcel.writeFloat(mRadius);
|
H A D | Criteria.java | 356 public void writeToParcel(Parcel parcel, int flags) { argument 357 parcel.writeInt(mHorizontalAccuracy); 358 parcel.writeInt(mVerticalAccuracy); 359 parcel.writeInt(mSpeedAccuracy); 360 parcel.writeInt(mBearingAccuracy); 361 parcel.writeInt(mPowerRequirement); 362 parcel.writeInt(mAltitudeRequired ? 1 : 0); 363 parcel.writeInt(mBearingRequired ? 1 : 0); 364 parcel.writeInt(mSpeedRequired ? 1 : 0); 365 parcel [all...] |
H A D | GpsNavigationMessage.java | 249 public GpsNavigationMessage createFromParcel(Parcel parcel) { 252 navigationMessage.setType(parcel.readByte()); 253 navigationMessage.setPrn(parcel.readByte()); 254 navigationMessage.setMessageId((short) parcel.readInt()); 255 navigationMessage.setSubmessageId((short) parcel.readInt()); 257 int dataLength = parcel.readInt(); 259 parcel.readByteArray(data); 262 if (parcel.dataAvail() >= Integer.SIZE) { 263 int status = parcel.readInt(); 278 public void writeToParcel(Parcel parcel, in argument [all...] |
/frameworks/native/cmds/service/ |
H A D | service.cpp | 31 void writeString16(Parcel& parcel, const char* string) argument 35 parcel.writeString16(String16(string)); 39 parcel.writeInt32(-1); 304 " i32: Write the 32-bit integer N into the send parcel.\n" 305 " i64: Write the 64-bit integer N into the send parcel.\n" 306 " f: Write the 32-bit single-precision number N into the send parcel.\n" 307 " d: Write the 64-bit double-precision number N into the send parcel.\n" 308 " s16: Write the UTF-16 string STR into the send parcel.\n"; 309 // " intent: Write and Intent int the send parcel. ARGS can be\n"
|
/frameworks/native/libs/input/tests/ |
H A D | InputEvent_test.cpp | 142 Parcel parcel; local 149 inCoords.writeToParcel(&parcel); 150 parcel.setDataPosition(0); 151 outCoords.readFromParcel(&parcel); 156 parcel.freeData(); 160 inCoords.writeToParcel(&parcel); 161 parcel.setDataPosition(0); 162 outCoords.readFromParcel(&parcel); 507 Parcel parcel; local 514 inEvent.writeToParcel(&parcel); [all...] |
/frameworks/av/media/libmedia/ |
H A D | MediaCodecInfo.cpp | 60 const Parcel &parcel) { 62 size_t size = static_cast<size_t>(parcel.readInt32()); 65 profileLevel.mProfile = static_cast<uint32_t>(parcel.readInt32()); 66 profileLevel.mLevel = static_cast<uint32_t>(parcel.readInt32()); 71 size = static_cast<size_t>(parcel.readInt32()); 73 uint32_t color = static_cast<uint32_t>(parcel.readInt32()); 78 uint32_t flags = static_cast<uint32_t>(parcel.readInt32()); 79 sp<AMessage> details = AMessage::FromParcel(parcel); 87 status_t MediaCodecInfo::Capabilities::writeToParcel(Parcel *parcel) const { 89 parcel 59 FromParcel( const Parcel &parcel) argument 138 FromParcel(const Parcel &parcel) argument [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | AString.cpp | 355 AString AString::FromParcel(const Parcel &parcel) { argument 356 size_t size = static_cast<size_t>(parcel.readInt32()); 357 return AString(static_cast<const char *>(parcel.readInplace(size)), size); 360 status_t AString::writeToParcel(Parcel *parcel) const { 362 status_t err = parcel->writeInt32(mSize); 364 err = parcel->write(mData, mSize);
|
/frameworks/av/media/libstagefright/timedtext/ |
H A D | TimedTextSRTSource.cpp | 68 Parcel *parcel, 77 extractAndAppendLocalDescriptions(*startTimeUs, text, parcel); 270 int64_t timeUs, const AString &text, Parcel *parcel) { 278 (const uint8_t *)data, size, flag, timeUs / 1000, parcel); 65 read( int64_t *startTimeUs, int64_t *endTimeUs, Parcel *parcel, const MediaSource::ReadOptions *options) argument 269 extractAndAppendLocalDescriptions( int64_t timeUs, const AString &text, Parcel *parcel) argument
|
/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbAccessory.java | 214 public void writeToParcel(Parcel parcel, int flags) { argument 215 parcel.writeString(mManufacturer); 216 parcel.writeString(mModel); 217 parcel.writeString(mDescription); 218 parcel.writeString(mVersion); 219 parcel.writeString(mUri); 220 parcel.writeString(mSerial);
|
H A D | UsbDevice.java | 315 public void writeToParcel(Parcel parcel, int flags) { argument 316 parcel.writeString(mName); 317 parcel.writeInt(mVendorId); 318 parcel.writeInt(mProductId); 319 parcel.writeInt(mClass); 320 parcel.writeInt(mSubclass); 321 parcel.writeInt(mProtocol); 322 parcel.writeString(mManufacturerName); 323 parcel.writeString(mProductName); 324 parcel [all...] |
/frameworks/base/core/java/android/net/ |
H A D | NetworkUtils.java | 287 * Writes an InetAddress to a parcel. The address may be null. This is likely faster than 290 protected static void parcelInetAddress(Parcel parcel, InetAddress address, int flags) { argument 292 parcel.writeByteArray(addressArray); 296 * Reads an InetAddress from a parcel. Returns null if the address that was written was null
|
/frameworks/base/core/java/android/os/ |
H A D | Binder.java | 415 static void checkParcel(IBinder obj, int code, Parcel parcel, String msg) { argument 416 if (CHECK_PARCEL_SIZE && parcel.dataSize() >= 800*1024) { 425 sb.append(parcel.dataSize()); 427 parcel.setDataPosition(0); 428 sb.append(parcel.readInt()); 430 sb.append(parcel.readInt()); 432 sb.append(parcel.readInt());
|
/frameworks/base/core/java/android/os/storage/ |
H A D | StorageVolume.java | 279 public void writeToParcel(Parcel parcel, int flags) { argument 280 parcel.writeString(mId); 281 parcel.writeInt(mStorageId); 282 parcel.writeString(mPath.toString()); 283 parcel.writeString(mDescription); 284 parcel.writeInt(mPrimary ? 1 : 0); 285 parcel.writeInt(mRemovable ? 1 : 0); 286 parcel.writeInt(mEmulated ? 1 : 0); 287 parcel.writeLong(mMtpReserveSize); 288 parcel [all...] |
/frameworks/base/core/java/android/print/ |
H A D | PrinterCapabilitiesInfo.java | 205 private PrinterCapabilitiesInfo(Parcel parcel) { argument 206 mMinMargins = readMargins(parcel); 207 readMediaSizes(parcel); 208 readResolutions(parcel); 210 mColorModes = parcel.readInt(); 211 mDuplexModes = parcel.readInt(); 213 readDefaults(parcel); 222 public void writeToParcel(Parcel parcel, int flags) { argument 223 writeMargins(mMinMargins, parcel); 224 writeMediaSizes(parcel); 336 writeMediaSizes(Parcel parcel) argument 348 readMediaSizes(Parcel parcel) argument 358 writeResolutions(Parcel parcel) argument 370 readResolutions(Parcel parcel) argument 380 writeMargins(Margins margins, Parcel parcel) argument 389 readMargins(Parcel parcel) argument 393 readDefaults(Parcel parcel) argument 400 writeDefaults(Parcel parcel) argument [all...] |
H A D | PrinterInfo.java | 131 private PrinterInfo(Parcel parcel) { argument 132 mId = parcel.readParcelable(null); 133 mName = parcel.readString(); 134 mStatus = parcel.readInt(); 135 mDescription = parcel.readString(); 136 mCapabilities = parcel.readParcelable(null); 145 public void writeToParcel(Parcel parcel, int flags) { argument 146 parcel.writeParcelable(mId, flags); 147 parcel.writeString(mName); 148 parcel [all...] |
/frameworks/base/core/jni/ |
H A D | android_database_CursorWindow.cpp | 83 Parcel* parcel = parcelForJavaObject(env, parcelObj); local 86 status_t status = CursorWindow::createFromParcel(parcel, &window); 113 Parcel* parcel = parcelForJavaObject(env, parcelObj); local 115 status_t status = window->writeToParcel(parcel);
|
H A D | android_view_GraphicBuffer.cpp | 230 Parcel* parcel = parcelForJavaObject(env, dest); local 231 if (parcel) { 232 parcel->write(*wrapper->buffer); 239 Parcel* parcel = parcelForJavaObject(env, in); local 240 if (parcel) { 242 parcel->read(*buffer);
|
H A D | android_view_InputChannel.cpp | 200 Parcel* parcel = parcelForJavaObject(env, parcelObj); local 201 if (parcel) { 202 bool isInitialized = parcel->readInt32(); 204 String8 name = parcel->readString8(); 205 int rawFd = parcel->readFileDescriptor(); 210 "Could not read input channel file descriptors from parcel."); 224 Parcel* parcel = parcelForJavaObject(env, parcelObj); local 225 if (parcel) { 231 parcel->writeInt32(1); 232 parcel [all...] |
H A D | android_view_KeyCharacterMap.cpp | 84 Parcel* parcel = parcelForJavaObject(env, parcelObj); local 85 if (!parcel) { 89 int32_t deviceId = parcel->readInt32(); 90 if (parcel->errorCheck()) { 94 sp<KeyCharacterMap> kcm = KeyCharacterMap::readFromParcel(parcel); 105 Parcel* parcel = parcelForJavaObject(env, parcelObj); local 106 if (parcel) { 107 parcel->writeInt32(map->getDeviceId()); 108 map->getMap()->writeToParcel(parcel);
|
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | AidlTest.java | 60 public void writeToParcel(Parcel parcel, int flags) { argument 61 parcel.writeInt(mAnInt); 62 parcel.writeString(mAString); 65 public void readFromParcel(Parcel parcel) { argument 66 mAnInt = parcel.readInt(); 67 mAString = parcel.readString(); 72 public TestParcelable createFromParcel(Parcel parcel) { 73 return new TestParcelable(parcel.readInt(), 74 parcel.readString());
|
/frameworks/base/libs/androidfw/ |
H A D | CursorWindow.cpp | 85 status_t CursorWindow::createFromParcel(Parcel* parcel, CursorWindow** outCursorWindow) { argument 86 String8 name = parcel->readString8(); 89 int ashmemFd = parcel->readFileDescriptor(); 107 LOG_WINDOW("Created CursorWindow from parcel: freeOffset=%d, " 124 status_t CursorWindow::writeToParcel(Parcel* parcel) { argument 125 status_t status = parcel->writeString8(mName); 127 status = parcel->writeDupFileDescriptor(mAshmemFd);
|
/frameworks/base/media/java/android/media/midi/ |
H A D | MidiDeviceInfo.java | 345 public void writeToParcel(Parcel parcel, int flags) { argument 346 parcel.writeInt(mType); 347 parcel.writeInt(mId); 348 parcel.writeInt(mInputPortCount); 349 parcel.writeInt(mOutputPortCount); 350 parcel.writeStringArray(mInputPortNames); 351 parcel.writeStringArray(mOutputPortNames); 352 parcel.writeBundle(mProperties); 353 parcel.writeInt(mIsPrivate ? 1 : 0);
|
/frameworks/native/include/binder/ |
H A D | Parcel.h | 60 status_t appendFrom(const Parcel *parcel, 119 // Place a native_handle into the parcel (the native_handle's file- 125 // Place a file descriptor into the parcel. The given fd must remain 126 // valid for the lifetime of the parcel. 130 // Place a file descriptor into the parcel. A dup of the fd is made, which 131 // will be closed once the parcel is destroyed. 134 // Writes a blob to the parcel. 142 // Write an existing immutable blob file descriptor to the parcel. 193 // Retrieve native_handle from the parcel. This returns a copy of the 194 // parcel' 405 operator <<(TextOutput& to, const Parcel& parcel) argument [all...] |
/frameworks/native/libs/gui/ |
H A D | SurfaceControl.cpp | 173 const sp<SurfaceControl>& control, Parcel* parcel) 179 return parcel->writeStrongBinder(IInterface::asBinder(bp)); 172 writeSurfaceToParcel( const sp<SurfaceControl>& control, Parcel* parcel) argument
|
/frameworks/av/camera/ |
H A D | CameraMetadata.cpp | 449 // See CameraMetadata::writeToParcel for parcel data layout diagram and explanation. 534 * Below is the camera metadata parcel layout: 624 status_t CameraMetadata::readFromParcel(Parcel *parcel) { argument 626 ALOGV("%s: parcel = %p", __FUNCTION__, parcel); 630 if (parcel == NULL) { 631 ALOGE("%s: parcel is null", __FUNCTION__); 642 res = CameraMetadata::readFromParcel(*parcel, &buffer); 645 ALOGE("%s: Failed to read from parcel. Metadata is unchanged.", 656 status_t CameraMetadata::writeToParcel(Parcel *parcel) cons [all...] |