Hridya Valsaraju | b5fbbfe | 2016-11-02 09:57:55 -0700 | [diff] [blame] | 1 | #define LOG_TAG "android.hardware.gnss@1.0-service" |
| 2 | |
| 3 | #include <android/hardware/gnss/1.0/IGnss.h> |
| 4 | |
| 5 | #include <hidl/LegacySupport.h> |
| 6 | |
Iliyan Malchev | 2dd67a4 | 2017-04-14 00:17:50 -0700 | [diff] [blame] | 7 | #include <binder/ProcessState.h> |
| 8 | |
Hridya Valsaraju | b5fbbfe | 2016-11-02 09:57:55 -0700 | [diff] [blame] | 9 | using android::hardware::gnss::V1_0::IGnss; |
| 10 | using android::hardware::defaultPassthroughServiceImplementation; |
| 11 | |
| 12 | int main() { |
Iliyan Malchev | 2dd67a4 | 2017-04-14 00:17:50 -0700 | [diff] [blame] | 13 | // The GNSS HAL may communicate to other vendor components via |
| 14 | // /dev/vndbinder |
| 15 | android::ProcessState::initWithDriver("/dev/vndbinder"); |
Chris Phoenix | ab5c1e1 | 2017-01-23 15:14:08 -0800 | [diff] [blame] | 16 | return defaultPassthroughServiceImplementation<IGnss>(); |
Hridya Valsaraju | b5fbbfe | 2016-11-02 09:57:55 -0700 | [diff] [blame] | 17 | } |