OSDN Git Service

android-x86/system-connectivity-wificond.git
8 years agoAdd AIDL defining AP and client interfaces
Christopher Wiley [Wed, 8 Jun 2016 22:44:55 +0000 (15:44 -0700)]
Add AIDL defining AP and client interfaces

Right now, we don't actually implement any of these classes.

Bug: 29218284
Test: Compiles, integration, unittests complete

Change-Id: Ib2a507a21f1c7366e7eec0c02494b7edd3bbf3fa

8 years agoAdd android.net.wifi.IWificond AIDL
Christopher Wiley [Wed, 8 Jun 2016 21:55:36 +0000 (14:55 -0700)]
Add android.net.wifi.IWificond AIDL

This is the root object exposed by wificond via Binder as described in
the design document.

Bug: 29218284
Change-Id: Ia6a21285f974d322f3ed9dd20e865fac4c4b31ac
Test: Compiles, unit, integration tests pass.

8 years agoBinder interface skeleten of wificond
Ningyuan Wang [Thu, 2 Jun 2016 22:33:10 +0000 (15:33 -0700)]
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

8 years agoImplement watching file descriptor for wificond event loop
Ningyuan Wang [Fri, 27 May 2016 20:44:22 +0000 (13:44 -0700)]
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

8 years agoUnit tests for wificond looper backed event loop
Ningyuan Wang [Thu, 26 May 2016 22:49:07 +0000 (15:49 -0700)]
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

8 years agoEvent loop wrapper classes for wificond
Ningyuan Wang [Tue, 24 May 2016 20:35:04 +0000 (13:35 -0700)]
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

8 years agoInitial signal handler implementation for wificond
Ningyuan Wang [Mon, 23 May 2016 18:45:16 +0000 (11:45 -0700)]
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

8 years agoDummy unittest for wificond
Ningyuan Wang [Fri, 20 May 2016 22:20:54 +0000 (15:20 -0700)]
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

8 years agoAdd logging for wificond
Ningyuan Wang [Fri, 20 May 2016 17:24:56 +0000 (10:24 -0700)]
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

8 years agoSkeleton of wificond
Ningyuan Wang [Thu, 19 May 2016 22:28:38 +0000 (15:28 -0700)]
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

8 years agoInitial empty repository
Thomas Joseph Avila [Tue, 17 May 2016 19:33:57 +0000 (12:33 -0700)]
Initial empty repository