summaryrefslogtreecommitdiff
path: root/libs/binder/ServiceManagerHost.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Don't depend on libbase result.hTomasz Wasilczyk2023-11-031-8/+5
| | | | | | Test: mma Bug: 302723053 Change-Id: Iea797d6af825d58543ba899f6e712b27e48d859a
* Binder: migrate off libbase macrosTomasz Wasilczyk2023-11-031-1/+2
| | | | | | Test: mma Bug: 302723053 Change-Id: Ie7c13c324311f600d72bc8ecc4157ad6c46259a0
* RPC Binder: setMaxOutgoing{Threads,Connections}Steven Moreland2023-03-011-2/+2
| | | | | | | | | | | | | | This API is updated to emphasize that it is placing a limit on the number of connections that will be started corresponding to threads in a remote pool. These connections won't actually correspond to threads in the process that this API is called. Documentation has also been updated to clarify a few questions from an internal discussion forum. Fixes: 270374393 Test: binderRpcTest Change-Id: Ia0d9f0d0f42f58a2c63bf506476b33985f091a34
* binder: host service manager limits max outgoing threadsYifan Hong2021-10-111-1/+6
| | | | | | | | | | | | | ... for each returned binder object. By default, the limit is SIZE_MAX. Test: aservice ... with max outgoing threads = 1, `aservice list` takes 19s. ... with max outgoing threads = SIZE_MAX, `aservice list` takes 30s. Test: binderHostDeviceTest Fixes: 194225767 Change-Id: Ib51fa41970fff804f40b7604a6a195ce0b16f89d
* Fix frameworks/native compiling against muslColin Cross2021-09-141-8/+8
| | | | | | | | stdout is a macro in musl, don't use it as an identifier. Bug: 190084016 Test: m USE_HOST_MUSL=true Change-Id: I470f329573cdee607abedf0f1a6448cad2b5151e
* libbinder: RPC use 'status_t' over 'bool'Steven Moreland2021-08-061-2/+4
| | | | | | | | | | | | For ease of debugging/handling errors (I realized that binderRpcTest currently crashes on Pixel 3 because of some missing kernel patches - this would have been easier with this, and one potential (even if temporary) solution would be to check the return code). Bug: 167966510 Test: binderRpcTest, binderRpcBenchmark, binder_parcel_fuzzer, binder_rpc_fuzzer, binderHostDeviceTest Change-Id: I1baa2e9380e0ec8f82f8ceb250f3eeb632dc5fbc
* libbinder: attachObject* APIs [[nodiscard]]Steven Moreland2021-06-291-3/+6
| | | | | | | | | Make sure we're catching the recently exposed error conditions for these (turns out these APIs are almost used nowhere!). Fixes: 192023359 Test: boot, CtsNdkBinderTestCases Change-Id: If6cdcf18520e874b28b33b80c5b4294ed8d4a302
* Implement host service managerYifan Hong2021-06-251-0/+176
On the host, after setDefaultServiceManager(createRpcDelegateServiceManager()) is called, defaultServiceManager() will return a service manager delegate that calls into the service manager on the device. Test: binderHostDeviceTest with servicedispatcher installed Bug: 190233850 Change-Id: I44f9d2e2419883e242fea0472d702f559dd0b283