commit | 53c9bfb9972c93a7cba5051421c1258427ec8608 | [log] [tgz] |
---|---|---|
author | Keun young Park <keunyoung@google.com> | Mon Aug 19 14:39:01 2019 -0700 |
committer | Keun young Park <keunyoung@google.com> | Mon Aug 26 19:26:08 2019 -0700 |
tree | 3e3d334909b7f0407434789493fe8eb653a3ab9c | |
parent | f9228792a21a202301880124c21cf4bbce077507 [diff] |
Change Car.createCar to wait for car service if not found - Add explicit binding and retry instead of giving up immediately. - Try only up to 5 secs and return null after that. - This can block main thread but car service not available for that long is a problem anyway. - Added unit test to verify the functionality when car service is not started. Bug: 139687557 Test: check boot up Change-Id: I272db5f8be37d1650ac43b91ed9d8d7bd064f08b Merged-In: I272db5f8be37d1650ac43b91ed9d8d7bd064f08b (cherry picked from commit f9745398b4aa19e011c59b640e3b504c14f784ff)
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.