Lines Matching refs:destination
103 const DestinationBuffer &destination, AString *errorDetailMsg) {
137 data.writeInt32((int32_t)destination.mType);
138 if (destination.mType == kDestinationTypeNativeHandle) {
139 if (destination.mHandle == NULL) {
142 data.writeNativeHandle(destination.mHandle);
144 if (destination.mSharedMemory == NULL) {
147 data.writeStrongBinder(IInterface::asBinder(destination.mSharedMemory));
350 DestinationBuffer destination;
351 destination.mType = (DestinationType)data.readInt32();
352 if (destination.mType == kDestinationTypeNativeHandle) {
353 destination.mHandle = data.readNativeHandle();
354 if (destination.mHandle == NULL) {
358 } else if (destination.mType == kDestinationTypeSharedMemory) {
359 destination.mSharedMemory =
361 if (destination.mSharedMemory == NULL) {
394 subSamples, numSubSamples, destination, &errorDetailMsg);
403 if (destination.mType == kDestinationTypeNativeHandle) {
405 if ((err = native_handle_close(destination.mHandle)) < 0) {
408 if ((err = native_handle_delete(destination.mHandle)) < 0) {