Mathias Agopian | 0795272 | 2009-05-19 19:08:10 -0700 | [diff] [blame] | 1 | #include <binder/IPCThreadState.h> |
| 2 | #include <binder/ProcessState.h> |
| 3 | #include <binder/IServiceManager.h> |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 4 | #include <utils/Log.h> |
| 5 | |
| 6 | #include <SurfaceFlinger.h> |
| 7 | |
| 8 | using namespace android; |
| 9 | |
| 10 | int main(int argc, char** argv) |
| 11 | { |
| 12 | sp<ProcessState> proc(ProcessState::self()); |
| 13 | sp<IServiceManager> sm = defaultServiceManager(); |
| 14 | LOGI("ServiceManager: %p", sm.get()); |
| 15 | SurfaceFlinger::instantiate(); |
| 16 | ProcessState::self()->startThreadPool(); |
| 17 | IPCThreadState::self()->joinThreadPool(); |
| 18 | } |