summaryrefslogtreecommitdiff
path: root/qemu_pipe/qemu_pipe.cpp
AgeCommit message (Collapse)Author
2021-04-08Move qemu_pipe into the vhalRoman Kiryanov
vhal is the only user of the qemu_pipe library and this library is deprecated. Bug: 175046060 Test: presubmit Signed-off-by: Roman Kiryanov <rkir@google.com> Change-Id: I495c8013cce452acae32907b6ca768622612058f
2020-07-28Use more inclusive language for #inclusivefixitHongguang Chen
Updating language to comply with Android’s inclusive language guidance. See https://source.android.com/setup/contribute/respectful-code for reference. Bug: 161896447 Test: make Change-Id: If9a382c33703c8508a8ec9b4219c487e0ff9a79d
2017-03-29Revert "Revert "Qemu: make the qemu_pipe_open back compatible""bohu
This reverts commit 79b30058992ddf678a261a59172a009d6a0db0ed.
2017-03-29Revert "Revert "Emulator: Enhance qemu_pipe.h to handle partial rw""bohu
This reverts commit ec768709cc029d307b9e57e8dce193b7ee8c2321.
2017-03-29Revert "Revert "Qemu-pipe: refactor qemu_pipe.h into libqemu_pipe""bohu
This reverts commit 63ef9ff5fa4b1e68029a54bb60c97b99bdf5defc.
2017-03-28Revert "Qemu-pipe: refactor qemu_pipe.h into libqemu_pipe"bohu
It broke master BUG: 36695011 This reverts commit ff87855e10423a1ad6f764f378b8182f86c6f738. Change-Id: Ic1057a416748d4a3c9736cf3bb73982b8d45e5d5
2017-03-28Revert "Emulator: Enhance qemu_pipe.h to handle partial rw"bohu
It broke master BUG: 36695011 This reverts commit 7b60bd95dfa07e86325b432465fb0043648f6c97. Change-Id: Idd45acb63b2e6112b4230de2c0609aa8f2092f45
2017-03-28Revert "Qemu: make the qemu_pipe_open back compatible"bohu
It broke master BUG: 36695011 This reverts commit a19abf17697863c2458d7d085a225ff4f3c75f75. Change-Id: Id9a2bc058e92a4fb2ac202f8b723062a047a1e35
2017-03-28Qemu: make the qemu_pipe_open back compatiblebohu
Commit c7b098ceb528afc62b1545377201e45f5d37f974 has changed the qemu_pipe_open interface to require the "pipe:" prefix in the service name. However in APIs 24 and before, the "pipe:" prefix is not required This causes quite some confusion and bugs since it is very common to forget the difference when working across differnet APIs. This CL is meant to make qemu_pipe_open work in both cases by doing the following: 1. try the service name as is; 2. if it fails, add 'pipe:' prefix and try the service name again. Change-Id: If9782396c03780fad1aadeb8374eb308517dc963 (cherry picked from aosp f7d64fd8e1703c54ff01c2e53b0af850977777a0)
2017-03-28Emulator: Enhance qemu_pipe.h to handle partial rwbohu
Partial read and write happen and it is better to try again unless there is some hard error. This is meant to fix some flaky behavior of emulator pipe services, hopefully. BUG: 35207286 manually tested this on emulator image. (cherry picked from aosp f099dce4a622f2ece313abe71a422489704ee692) Change-Id: I26a4560fa34e979939edcc882fcc5190202fe9f6
2017-03-28Qemu-pipe: refactor qemu_pipe.h into libqemu_pipebohu
Traditionally, qemu_pipe has both the declaration and implentation of each function in one header file--qemu_pipe.h, and it is getting incovenient to maintain. This CL separates the implementation of functions from the header file, and makes qemu_pipe a static library for other modules to link to. Note that the interface and implementation of qemu_pipe are kept unchanged, and future CLs will enhance the implementation to make it more reliable and more compatible with old and new API levels. Following projects are affected by this refactoring, and they are modified accordingly: hardware/ril/reference-ril Change-Id: I541ecbf0cc7eadeef9d4e37ffd9ca7bfcc5c94c0 (cherry picked from aosp 294d44be33bf6ad6d7d53189d38202a4911f2bd7)