Commit graph android_packages_modules_Co.../staticlibs/devicetests/com/android/testutils/TapPacketReader.java
Message SHA1
Move util classes to their destination package
Test: FrameworksWifiTests FrameworksNetTests
Change-Id: Id19c650246a8f3d55d7b6a874840a6eebcd9eb17
(cherry picked from commit e742f79a095f0930964d9517524de922ec103a4a)

Chalard Jean   commited 2020-11-03 10:45:14 +09:00
92213091fc
Merge "Revert "Move util classes to their destination package""
TreeHugger Robot   authored and   Android (Google) Code Review   commited 2020-10-02 03:54:34 +00:00
2534f16def
Revert "Move util classes to their destination package"
Revert "Move PacketReader and FdEventReader"

Revert "Move static utils to a module package"

Revert "Move static utils to a module package"

Revert submission 12698912-move_packetreader

Reason for revert: Broke presubmit on git_master, b/169861635
Reverted Changes:
If5d1e4a58:Move module utils to the module package.
I44ffaad3d:Move PacketReader and FdEventReader
I93e9cfd96:Move util classes to their destination package
Ia84d64130:Move static utils to a module package
Iaac2810c7:Move static utils to a module package

Change-Id: I6104ea5392b26069da9a54f3073fd408a0bc37a0

Hridya Valsaraju   commited 2020-10-01 20:12:46 +00:00
2344486963
Add TapPacketReader#startAsyncForTest, poll am: 046d253d63 am: 97825354b8 am: 82094abeb0 am: b51ecd456c
Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1435132

Change-Id: I649db90a42e6859ef45632a32559d604c16058dc

Remi NGUYEN VAN   authored and   Automerger Merge Worker   commited 2020-10-01 08:54:52 +00:00
6caf0411b8
Move util classes to their destination package
Test: builds
Change-Id: I93e9cfd968e08f983e3fd9f7196c455c79a0f32d
(cherry picked from commit 7c9c12694aec7d688496a634f165661e0681773e)

Chalard Jean   commited 2020-09-26 14:23:24 +09:00
ba79273382
Add TapPacketReader#startAsyncForTest, poll
Add a startAsyncForTest method to attempt to start the TapPacketReader
on its handler thread. The method will not report failures to start
(especially failures to create the socket), so it is only added in
TapPacketReader for test code, and not FdEventsReader which would be in
production code.

Rename popPacket to poll, keeping the old version as deprecated
for compatibility. "pop" normally refers to removing a packet from the
top of a LIFO stack, so it is not appropriate naming here.

Test: m
Bug: 168868607
Change-Id: I19184aaca018165856d1d5e5d24b976ae75d1664

Remi NGUYEN VAN   commited 2020-09-25 12:28:43 +09:00
3b1e9265eb
Fix issues reported by checkstyle
Test: builds
Change-Id: I41979cc8096a682c6844df0825ee56ab00a828b5

Chalard Jean   commited 2020-07-31 09:58:14 +09:00
e06c5c8fc0
Move utilities to libs/net
These files used to be in the network stack directory, but the libs
directory is a much more suitable place for them.

Also fix a typo : ConcurrentIntepreter → ConcurrentInterpreter

Also move {FdEvents,Packet}Reader to internal annotations. That's
what they should have been using in the first place anyway.

Note that this does not fix preupload issues reported by
checkstyle to make review easier. The fixes are in a followup
patch to this one.

Test: checkbuild
Change-Id: I675077fd42cbb092c0e6bd56571f2fc022e582fd

Chalard Jean   commited 2020-07-30 22:10:51 +09:00
48c6c7d838