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()
350 DestinationBuffer destination; in onTransact() local
351 destination.mType = (DestinationType)data.readInt32(); in onTransact()
352 if (destination.mType == kDestinationTypeNativeHandle) { in onTransact()
353 destination.mHandle = data.readNativeHandle(); in onTransact()
354 if (destination.mHandle == NULL) { in onTransact()
358 } else if (destination.mType == kDestinationTypeSharedMemory) { in onTransact()
359 destination.mSharedMemory = in onTransact()
361 if (destination.mSharedMemory == NULL) { in onTransact()
365 sp<IMemory> dest = destination.mSharedMemory; in onTransact()
405 subSamples.get(), numSubSamples, destination, &errorDetailMsg); in onTransact()
414 if (destination.mType == kDestinationTypeNativeHandle) { in onTransact()
416 if ((err = native_handle_close(destination.mHandle)) < 0) { in onTransact()
419 if ((err = native_handle_delete(destination.mHandle)) < 0) { in onTransact()