• Home
  • Raw
  • Download

Lines Matching refs:tr

751                 binder_transaction_data tr;  in waitForResponse()  local
752 err = mIn.read(&tr, sizeof(tr)); in waitForResponse()
757 if ((tr.flags & TF_STATUS_CODE) == 0) { in waitForResponse()
759 reinterpret_cast<const uint8_t*>(tr.data.ptr.buffer), in waitForResponse()
760 tr.data_size, in waitForResponse()
761 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse()
762 tr.offsets_size/sizeof(binder_size_t), in waitForResponse()
765 err = *reinterpret_cast<const status_t*>(tr.data.ptr.buffer); in waitForResponse()
767 reinterpret_cast<const uint8_t*>(tr.data.ptr.buffer), in waitForResponse()
768 tr.data_size, in waitForResponse()
769 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse()
770 tr.offsets_size/sizeof(binder_size_t), this); in waitForResponse()
774 reinterpret_cast<const uint8_t*>(tr.data.ptr.buffer), in waitForResponse()
775 tr.data_size, in waitForResponse()
776 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse()
777 tr.offsets_size/sizeof(binder_size_t), this); in waitForResponse()
904 binder_transaction_data tr; in writeTransactionData() local
906 tr.target.ptr = 0; /* Don't pass uninitialized stack data to a remote process */ in writeTransactionData()
907 tr.target.handle = handle; in writeTransactionData()
908 tr.code = code; in writeTransactionData()
909 tr.flags = binderFlags; in writeTransactionData()
910 tr.cookie = 0; in writeTransactionData()
911 tr.sender_pid = 0; in writeTransactionData()
912 tr.sender_euid = 0; in writeTransactionData()
916 tr.data_size = data.ipcDataSize(); in writeTransactionData()
917 tr.data.ptr.buffer = data.ipcData(); in writeTransactionData()
918 tr.offsets_size = data.ipcObjectsCount()*sizeof(binder_size_t); in writeTransactionData()
919 tr.data.ptr.offsets = data.ipcObjects(); in writeTransactionData()
921 tr.flags |= TF_STATUS_CODE; in writeTransactionData()
923 tr.data_size = sizeof(status_t); in writeTransactionData()
924 tr.data.ptr.buffer = reinterpret_cast<uintptr_t>(statusBuffer); in writeTransactionData()
925 tr.offsets_size = 0; in writeTransactionData()
926 tr.data.ptr.offsets = 0; in writeTransactionData()
932 mOut.write(&tr, sizeof(tr)); in writeTransactionData()
1025 binder_transaction_data tr; in executeCommand() local
1026 result = mIn.read(&tr, sizeof(tr)); in executeCommand()
1033 reinterpret_cast<const uint8_t*>(tr.data.ptr.buffer), in executeCommand()
1034 tr.data_size, in executeCommand()
1035 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in executeCommand()
1036 tr.offsets_size/sizeof(binder_size_t), freeBuffer, this); in executeCommand()
1043 mCallingPid = tr.sender_pid; in executeCommand()
1044 mCallingUid = tr.sender_euid; in executeCommand()
1045 mLastTransactionBinderFlags = tr.flags; in executeCommand()
1074 << " / obj " << tr.target.ptr << " / code " in executeCommand()
1075 << TypeCode(tr.code) << ": " << indent << buffer in executeCommand()
1078 << reinterpret_cast<const uint8_t*>(tr.data.ptr.buffer) in executeCommand()
1080 << reinterpret_cast<const size_t*>(tr.data.ptr.offsets) << endl; in executeCommand()
1082 if (tr.target.ptr) { in executeCommand()
1083 sp<BBinder> b((BBinder*)tr.cookie); in executeCommand()
1084 error = b->transact(tr.code, buffer, &reply, tr.flags); in executeCommand()
1087 error = the_context_object->transact(tr.code, buffer, &reply, tr.flags); in executeCommand()
1093 if ((tr.flags & TF_ONE_WAY) == 0) { in executeCommand()
1109 << tr.target.ptr << ": " << indent << reply << dedent << endl; in executeCommand()