Lines Matching refs:err

330     status_t err;
331 err = continueWrite(size);
332 if (err == NO_ERROR) {
336 return err;
353 status_t err = restartWrite(len);
354 if (err == NO_ERROR) {
359 return err;
365 status_t err;
397 err = growData(len);
398 if (err != NO_ERROR) {
399 return err;
408 err = NO_ERROR;
442 err = FDS_NOT_ALLOWED;
448 return err;
529 void Parcel::setError(status_t err)
531 mError = err;
561 status_t err = growData(len);
562 if (err == NO_ERROR) goto restart_write;
563 return err;
611 status_t err = growData(padded);
612 if (err == NO_ERROR) goto restart_write;
664 status_t err = writeInt32(str.bytes());
668 if (str.bytes() > 0 && err == NO_ERROR) {
669 err = write(str.string(), str.bytes()+1);
671 return err;
683 status_t err = writeInt32(len);
684 if (err == NO_ERROR) {
692 err = mError;
694 return err;
712 status_t err;
713 err = writeInt32(handle->numFds);
714 if (err != NO_ERROR) return err;
716 err = writeInt32(handle->numInts);
717 if (err != NO_ERROR) return err;
719 for (int i=0 ; err==NO_ERROR && i<handle->numFds ; i++)
720 err = writeDupFileDescriptor(handle->data[i]);
722 if (err != NO_ERROR) {
724 return err;
726 err = write(handle->data + handle->numFds, sizeof(int)*handle->numInts);
727 return err;
746 status_t err = writeFileDescriptor(dupFd, true /*takeOwnership*/);
747 if (err) {
750 return err;
803 status_t err;
809 err = this->writeInt32(len);
810 if (err) return err;
812 err = this->writeInt32(fd_count);
813 if (err) return err;
825 err = val.flatten(buf, len, fds, fd_count);
826 for (size_t i=0 ; i<fd_count && err==NO_ERROR ; i++) {
827 err = this->writeDupFileDescriptor( fds[i] );
834 return err;
864 const status_t err = growData(sizeof(val));
865 if (err != NO_ERROR) return err;
944 status_t err = growData(sizeof(val));
945 if (err == NO_ERROR) goto restart_write;
946 return err;
1117 status_t err;
1118 err = readInt32(&numFds);
1119 if (err != NO_ERROR) return 0;
1120 err = readInt32(&numInts);
1121 if (err != NO_ERROR) return 0;
1124 for (int i=0 ; err==NO_ERROR && i<numFds ; i++) {
1126 if (h->data[i] < 0) err = BAD_VALUE;
1128 err = read(h->data + numFds, sizeof(int)*numInts);
1129 if (err != NO_ERROR) {
1193 status_t err = NO_ERROR;
1194 for (size_t i=0 ; i<fd_count && err==NO_ERROR ; i++) {
1196 if (fds[i] < 0) err = BAD_VALUE;
1199 if (err == NO_ERROR) {
1200 err = val.unflatten(buf, len, fds, fd_count);
1207 return err;
1330 const status_t err = errorCheck();
1331 to << "Error: " << (void*)err << " \"" << strerror(-err) << "\"";