Remove hidden APIs and replace the constants with SystemApi that are
exposed by NetworkTemplate.
Also fix typo and remove getElapsedRealtime() which is a hidden API
from StatsPullAtomService.
Bug: 210073043
Test: TH
Change-Id: I8b980417faf776b9b7b0fbcc4f04525b516452a0
Merged-In: I8b980417faf776b9b7b0fbcc4f04525b516452a0
Test: atest clockwork-settings-robotests
make RunSettingsRoboTests -j40
make RunSettingsLibRoboTests
ROBOTEST_FILTER=DataUsageControllerTest
make RunSettingsLibRoboTests
ROBOTEST_FILTER=NetworkCycleChartDataLoaderTest
make RunSettingsLibRoboTests
ROBOTEST_FILTER=NetworkCycleDataForUidLoaderTest
make RunSettingsLibRoboTests
ROBOTEST_FILTER=NetworkCycleDataLoaderTest
make RunSettingsLibRoboTests
ROBOTEST_FILTER=DataUsageUtilsTest
Bug: 204830222
Change-Id: I1e2eaf55f247b1c1104164721d7025f457fcd9a6
SummaryForAllUidLoader is using INetworkStatsSession hidden APIs, which
cannot be accessed after moving into the mainline module. So, replace
and remove those hidden API usages.
Test: atest clockwork-settings-robotests
make RunSettingsRoboTests -j40
make RunSettingsLibRoboTests
ROBOTEST_FILTER=DataUsageControllerTest
make RunSettingsLibRoboTests
ROBOTEST_FILTER=NetworkCycleChartDataLoaderTest
make RunSettingsLibRoboTests
ROBOTEST_FILTER=NetworkCycleDataForUidLoaderTest
make RunSettingsLibRoboTests
ROBOTEST_FILTER=NetworkCycleDataLoaderTest
make RunSettingsLibRoboTests
ROBOTEST_FILTER=DataUsageUtilsTest
Bug: 204830222
Ignore-AOSP-First: Related API conflict, need master first.
(cherry-picked from ag/16689474)
Change-Id: Iac733a5021d0d79111c0350b694e4ed0ec90e262
Merged-In: Iac733a5021d0d79111c0350b694e4ed0ec90e262
Replace with public APIs. Since NetworkStatsHistory is no longer
accessible, use List<Bucket> as an alternative structure for
furthur manipulating.
Test: atest clockwork-settings-robotests
make RunSettingsRoboTests -j40
make RunSettingsLibRoboTests
ROBOTEST_FILTER=DataUsageControllerTest
make RunSettingsLibRoboTests
ROBOTEST_FILTER=NetworkCycleChartDataLoaderTest
make RunSettingsLibRoboTests
ROBOTEST_FILTER=NetworkCycleDataForUidLoaderTest
make RunSettingsLibRoboTests
ROBOTEST_FILTER=NetworkCycleDataLoaderTest
make RunSettingsLibRoboTests
ROBOTEST_FILTER=DataUsageUtilsTest
Bug: 204830222
Ignore-AOSP-First: Related API conflict, need master first.
(cherry-picked from ag/16681840)
Change-Id: I5336ceef43193343d707724066e2da40f1ff0633
Merged-In: I5336ceef43193343d707724066e2da40f1ff0633
The purpose is provide NetworkStatsCollection.Builder as
public API for adding the stats {@link NetworkStatsHistory}
Bug: 215862801
Test: atest NetworkStatsCollectionTest
Change-Id: I65ad589473cbb7785cbe8297f793ce9f18a55c35
Supplemental apps has limited capabilities and service discovery
is restricted. Hence, calling TrafficStats.init would result in
crash.
This change includes:
1. Print log instead of crashing process when running into
any unexpected cases.
Test: atest SupplementalProcessManagerTests
Bug: 216062904
Change-Id: I7f827ccc485c997745779053b5936a6cb30e8219
Bug: 214615268
Test: Manually test signal passing from bluetooth/system to framework
Tag: #feature
Change-Id: Ib1a1b1005523ca20af18dce2396d8f6bd788c197
When a surface animation finishes, SurfaceAnimator must reset its internal state and triggers callbacks.
A part of this post-animation process is executed immediately after animation finishes,but the others might be deferred.
When SurfaceAnimator is in this tentative state, we cannot transfer SurfaceAnimation anymore.
For example, we add AnimationAdapter to WindowManagerService#mAnimationTransferMap during the transfer process,
but the AnimationAdapter will never be removed from the map,
since the removal logic is triggered from an animation finish callback but the animation has already finished.
Test: go/wm-smoke
Test: SurfaceAnimatorTest
Bug: 214330806
Change-Id: I4e49c1742c0039e89f037fc98d8da3040b4ad67b
Signed-off-by: fukaipeng <fukaipeng@xiaomi.com>
The only caller of this method was BluetoothSocket, and that is
being removed in this topic.
Test: m
Bug: 200200870
Change-Id: Ic211448bc805c6f74852a8813317444bfb33c9dd
Add a new type that is registered to IMS via Internet.
Bug: b/213613736
Test: Build
Change-Id: I6d4802ff12e4b3594cc81903cd83b6f9af6b88b0
Merged-In: I6d4802ff12e4b3594cc81903cd83b6f9af6b88b0
The motivation for this is Sony needing to deal with >4KiB descriptor on
a UVC device. Let's factor out the callers here and combine them with
the code in libusbhost that also needs a limit. (I've separately bumped
libusbhost to 16KiB, which was the largest of the three places we had a
limit previously.)
Also remove some inappropriate <asm/*> includes --- that's never a good
idea, and they weren't needed anyway.
(#include re-ordering was insisted upon by a presubmit hook.)
Test: treehugger
Change-Id: I552d97adc2a4ade4b89b9fe6b3262e012fdb8602
We must never leave directories unencrypted.
Bug: 164488924
(cherry picked from commit 50946dd15fd14cbf92b5c7e32ac7a0f088b8b302)
Merged-In: I9a38ab5cca1ae9c9ebff81fca04615fd83ebe4b2
Change-Id: I9a38ab5cca1ae9c9ebff81fca04615fd83ebe4b2
In order for the Bluetooth module to build as an apex
all non-public resources must be located in the same
package.
Power usage configs are made system properties to
enable android.internal.os to read them and still have
per device overlays.
All configs used only by the Bluetooth app are moved to
the Bluetooth module.
Vendor overlays will be updated once the migration is done.
Tag: #feature
Bug: 211570675
Test: build, manual
Test: make RunSettingsRoboTests
Test: Added and logged system properties in vendors
Change-Id: I2b0134b97b687d6c7e96f7700be0c196168f0601
These stubs used to duplicate all the properties in the defaults
we had already defined, but did not set e.g. sdk_version: "none",
which meant certain symbols were imported twice (which is error
prone / wrong as they could potentially be different).
Test: m framework-doc-stubs before & after and diff soong intermediates
Change-Id: I96dfa66a9deea3564980678fd64f2bfc6460eebd
This allows constructing a LocalSocket from a FileDescriptor
referring to an already-connected socket. The LocalSocket can
then be used to exchange ancillary filedescriptors and fetch
peer socket credentials for the existing FD.
The fd is not dup'd or closed by the API, and the caller is
responsible for closing it. This is consistent with the
constructor of the related LocalServerSocket class, which also
takes an fd and does not manage its lifecycle.
Bug: 200200870
Test: atest CoreTests:android.net.LocalSocketTest CtsNetTestCases:android.net.cts.LocalSocketTest
Change-Id: I86448ba80475c4563194a4a2d9a0c0bbd0b76444