Binder interface skeleten of wificond
This CL adds a dummy binder interface of wificond.
There is only one function called Ping() which is
supposed to return a std string "Pong".
BUG=
28867093
TEST=compile
TEST=Mannually modify wificond sepolicy file to allow
binder operations.
Use an executable to test this interface by calling
Ping() through binder and verifying the response is
"Pong".
Change-Id: I8b5b1b65811f018612ad095f692d8acf2289c3c9
Implement watching file descriptor for wificond event loop
This CL allows wificond event loop to watch a file descriptor.
Specific callback will be executed when a file descriptor is
ready for input or output.
BUG=
28982981
BUG=
28867514
TEST=compile
TEST=run out/host/linux-x86/bin/wificond_unit_test
Change-Id: I6417ccdf08fa175acf90824dab16804d4bc624c5
Unit tests for wificond looper backed event loop
BUG=
28982981
TEST=compile
TEST=run out/host/linux-x86/bin/wificond_unit_test
Change-Id: If54c7e02b68ca82cbb1fddfae144a71c73561b8d
Event loop wrapper classes for wificond
This CL includes the following change:
1. An abstract class EventLoop for the event loop.
2. An impementation LooperBackedEventLoop using
looper in libutils.
BUG=
28867514
TEST=compile
TEST=manually tested
Change-Id: Ieeded846761d627487144d122d3a733abda46d1e
Initial signal handler implementation for wificond
This signal handler class allows the caller to register
a callack to a spefic POSIX signal.
BUG=
28865186
TEST=compile
TEST=kill -2 pid
Check wificond log to make sure signal is handled.
Change-Id: I1ef4191f36796744e8acf5f5c45bb900725c7d51
Dummy unittest for wificond
BUG=
28865186
TEST=compile
TEST=compile single package using mm
Find wificond_unit_test in out/host/linux-x86/bin
Run it
Change-Id: Ib2c72775940972d21730d615b084be522335823a
Add logging for wificond
This CL includes the following changes:
Include loggging.h from android-base
Print a logging message
Use .cc suffix instead .cpp to fit Google C++ style guide
BUG=
28865186
TEST=compile
TEST=check logcat
Log will apear in logcat if logging statement is placed
in the while loop. However it seems that early log will
get lost. This issue will be addressed latter.
Change-Id: I0e65417feeba4d989a892f88c83437d2ce6c9b72
Skeleton of wificond
This CL includes the following changes:
A dummy main.cpp file with infinite loop
Legal files
Makefile for wificond
Init file that starts up the deamen
BUG=
28865186
TEST=compile
TEST=
Add wificond to '/target/product/base.mk'
Modify sepolicy files
Flash image to phone
Adb shell ps -A | grep 'wificond'
Change-Id: Ibb7181e091bf30044994fb0f189d00c239e892bf