update android code base according to OsEventBuffer implementation