Lines Matching refs:destination
103 const DestinationBuffer &destination, AString *errorDetailMsg) { in decrypt()
137 data.writeInt32((int32_t)destination.mType); in decrypt()
138 if (destination.mType == kDestinationTypeNativeHandle) { in decrypt()
139 if (destination.mHandle == NULL) { in decrypt()
142 data.writeNativeHandle(destination.mHandle); in decrypt()
144 if (destination.mSharedMemory == NULL) { in decrypt()
147 data.writeStrongBinder(IInterface::asBinder(destination.mSharedMemory)); in decrypt()
363 DestinationBuffer destination; in onTransact() local
364 destination.mType = (DestinationType)data.readInt32(); in onTransact()
365 if (destination.mType == kDestinationTypeNativeHandle) { in onTransact()
366 destination.mHandle = data.readNativeHandle(); in onTransact()
367 if (destination.mHandle == NULL) { in onTransact()
371 } else if (destination.mType == kDestinationTypeSharedMemory) { in onTransact()
372 destination.mSharedMemory = in onTransact()
374 if (destination.mSharedMemory == NULL) { in onTransact()
378 sp<IMemory> dest = destination.mSharedMemory; in onTransact()
418 subSamples.get(), numSubSamples, destination, &errorDetailMsg); in onTransact()
427 if (destination.mType == kDestinationTypeNativeHandle) { in onTransact()
429 if ((err = native_handle_close(destination.mHandle)) < 0) { in onTransact()
432 if ((err = native_handle_delete(destination.mHandle)) < 0) { in onTransact()