Commit Graph

1226 Commits

Author SHA1 Message Date
Tej Singh
e5f5a10478 Merge "Public StatsLog API for generic mainline logging." 2019-03-23 05:00:52 +00:00
TreeHugger Robot
8620836456 Merge "[Passpointv2] Enable saved network showing detailed page" 2019-03-22 22:46:15 +00:00
TreeHugger Robot
c396d6738c Merge "API review followup: DynamicAndroidClient" 2019-03-22 17:21:39 +00:00
Andrei-Valentin Onea
bb5089fbd9 Merge "Add @UnsupportedAppUsage annotations" 2019-03-21 19:11:51 +00:00
Andrei Onea
e30e3928f9 Add @UnsupportedAppUsage annotations
For packages:
  android.companion
  android.filterfw
  android.hardware.camera2.utils
  android.inputmethodservice
  android.net.nsd
  android.os
  android.preference
  android.security.keymaster
  android.service.dreams
  android.telecom
  android.telephony.ims.compat.feature
  android.telephony
  android.util
  android.view.accessibility
  android.media.effect

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I9c2f8347952f3cc65759472b0e1a2717b285e44e
2019-03-21 14:04:57 +00:00
Po-Chien Hsueh
4e908c24ca API review followup: DynamicAndroidClient
Some API changes per API reivew:
- Move DynamicAndroidClient and ~Manager to android.os.image.
- Rename them to DynamicSystemClient and ~Manager.
- Rename permission MANAGE_DYNAMIC_ANDROID to MANAGE_DYNAMIC_SYSTEM
- Corresponding changes in the installation service.
- Corresponding changes in privapp-permissions-platform.xml.
- Add missing annotations.
- Change setOnStatusChangedListener's parameters order.
- Improve documentations.
- Re-generate api/system-current.txt.

Bug: 126613281
Test: adb shell am
Change-Id: Ia920e9ccf6de1dbbd38c52910cb72cb81b9b5b32
2019-03-21 17:25:59 +08:00
cosmohsieh
9ca5102ce8 [Passpointv2] Enable saved network showing detailed page
Enable this feature as default. Shows detail wifi page when clicking
saved network.

Bug: 116362877
Test: manual
Change-Id: I4f8f469967e6f45b20941fbff5f4590a2ccc4063
2019-03-21 05:14:24 +00:00
Tej Singh
be0482b421 Public StatsLog API for generic mainline logging.
Sets up a public api for logging atoms to statsd. The API excepts a
buffer which is already encoded in the proper format for the socket, as
well as the number of bytes of the buffer to write. It performs a JNI
call to perform the socket write. Autogenerated app code will be built
for each mainline module that needs to use this API to log.

Test: builds
Test: existing logs flow properly
Bug: 126134616
Change-Id: I8a9a91e638d730e3ff69cb9345692e49e0db3c96
2019-03-20 17:44:53 -07:00
Fan Zhang
a70a59b945 Revert "Revert "Enable mainline module feature.""
This reverts commit 52e966e996.

Reason for revert: b/123648279
Test: TH

Change-Id: I0a79535be95a92555c32d94219f3b98a9579815f
2019-03-20 13:19:22 -07:00
Fan Zhang
0afbc9f0a3 Merge "Update feature flag mapping owners" am: 16eab7c16d am: 6d52af0b55
am: 1e932cf89c

Change-Id: I12118dae5a391e762176b5b09c590d30786bec3b
2019-03-15 12:41:20 -07:00
Fan Zhang
bfa1f876e8 Update feature flag mapping owners
Test: rebuild

Change-Id: I288e039ffaf88ce271ba17bcc26f0e038314b354
2019-03-14 16:26:05 -07:00
cosmohsieh
205e5b990d [PasspointV2] Add feature flag for showing data usage chart on detail fragment
Add flag for showing data usage chart on detail fragment

Bug: 128569047
Bug: 124700353
Test: manual
Change-Id: Ib150c4d72224b5707c16916d4e134aa5221a481f
2019-03-14 05:54:04 +00:00
TreeHugger Robot
5d682a61ae Merge "Revert "Checkng upper bound in *Array classes."" 2019-03-12 21:54:07 +00:00
TreeHugger Robot
83234be184 Merge "[MAC Randomization] Removed feature flag to align framework global flag" 2019-03-12 19:17:50 +00:00
Paul Scovanner
91ec970564 Revert "Checkng upper bound in *Array classes."
This reverts commit 17d453ea85.

Reason for revert: b/127750694

Change-Id: I0ffbf0e64109b3ec724e0687a27b231e335f76b4
2019-03-12 18:03:48 +00:00
cosmohsieh
b46623a3ea [Passpointv2] Add feature flag for saved network show details fragment
Add feature flag for saved network show details fragment

Bug: 128369527
Test: Manual
Change-Id: I661a923b4866c4595a5ad5d5fe2964a72def3952
2019-03-12 14:46:41 +08:00
cosmohsieh
59ea1f7ca1 [MAC Randomization] Removed feature flag to align framework global flag
Removed feature flag and change to check global flag as framework MAC
randomization api does.

Bug: 127817791
Bug: 120743100
Test: atest WifiPrivacyPreferenceControllerTest
Change-Id: Iefe0d442326ca6a9461af8724a1632fd238d8d2b
2019-03-12 03:54:49 +00:00
TreeHugger Robot
fcba01e838 Merge "Revert "Revert "Set the "settings_network_and_internet_v2" flag to on by default""" 2019-03-09 02:54:51 +00:00
Antony Sargent
45c44fc882 Revert "Revert "Set the "settings_network_and_internet_v2" flag to on by default""
This reverts commit c9a5c72ab8.

Reason for revert: The underlying problem for the *original* revert is fixed in ag/6671099, so now we can revert the revert (after ag/6671099 lands). 

Change-Id: I01e5ebac8140b253bee9d19981eff53365d3bccd
2019-03-08 23:20:58 +00:00
Chiachang Wang
9afd64ede8 Merge "Support DATA_STALL_EVENT in StatsLog.write" 2019-03-07 05:37:23 +00:00
TreeHugger Robot
9bef843cef Merge "Checkng upper bound in *Array classes." 2019-03-06 22:08:20 +00:00
TreeHugger Robot
56ff8c44a5 Merge ""Global Actions Panel" plugin" 2019-03-06 18:34:35 +00:00
Fan Zhang
516218f9b2 Merge "Revert "Set the "settings_network_and_internet_v2" flag to on by default"" 2019-03-06 18:03:59 +00:00
Antony Sargent
c9a5c72ab8 Revert "Set the "settings_network_and_internet_v2" flag to on by default"
This reverts commit 1b386491c5.

Reason for revert: Reverting temporarily because of a few bugs that were uncovered: b/127524919 and b/127394263

Change-Id: I47de22c89b680d08c62fb008f97953d0586ab0a3
2019-03-06 18:02:48 +00:00
Steve Elliott
9b87a44b79 "Global Actions Panel" plugin
This change adds a new plugin API surface inside of Global Actions,
where a plugin can provide a View to be rendered alongside the Global
Actions menu.

When the GlobalActionsDialog.ActionDialog is created, the plugin can
produce a GlobalActionsPanelPlugin.PanelViewController instance, which
is used to provide the View to be rendered, and respond to Global
Actions events (right now, only dismissal). At this time, the plugin
is given an instance of GlobalActionsPanelPlugin.Callbacks, allowing
the plugin to interact with the GlobalActionsDialog (right now, only
to request dismissal).

When there is a Panel present, a darker scrim is used that is *not*
based on the colors underneath.

In order to provide maximum flexibility, the View comprising the Panel
is rendered above (z-ordering) the existing Global Actions menu, and
can take up the entire screen if desired. In practice, plugins should
take care to not block access to the GlobalActions menu.

Change-Id: I9d6eea80f7eb49e9adbc1a634f7d9c1ab720cddb
Test: manual
2019-03-06 11:30:58 -05:00
Satoshi Sanno
83950247d0 Merge "Fix that the update to v1 signed version fails if apk verity is enabled" am: 0b3fe647ef am: b6fd88c4fc
am: 6f113ecebe

Change-Id: Iaf80875375068f17fe12f8846fae8c5afc2cbc2f
2019-03-05 18:21:49 -08:00
Kweku Adams
17d453ea85 Checkng upper bound in *Array classes.
*Array classes will now throw an IndexOutOfBoundsException if a caller
tries to get or set a value for an index that's invalid based on the
current size.

Bug: 118339123
Test: atest CtsUtilTestCases
Change-Id: Iddc9a0c7c89e0ac743b0380049527a1b2dfb434f
2019-03-05 15:40:12 -08:00
Treehugger Robot
0b3fe647ef Merge "Fix that the update to v1 signed version fails if apk verity is enabled" 2019-03-05 21:33:25 +00:00
Antony Sargent
1b386491c5 Set the "settings_network_and_internet_v2" flag to on by default
Bug: 116349402
Test: (should be covered by existing tests)
Change-Id: I942a11bb20aea3179c414012ff7c39a1cffbc07f
2019-03-04 16:27:06 -08:00
Jeff Sharkey
ac4eafc9cf Merge "Mark @Nullable annotation to String parameter" 2019-03-04 17:33:32 +00:00
Svetoslav Ganov
2a980300bc Merge "Slice and dice app ops - framework" 2019-03-04 17:22:20 +00:00
shawnlin
e40033eb24 Mark @Nullable annotation to String parameter
Test: make, make system-api-stubs-docs-update-current-api
Bug: 126700130
Change-Id: I89b9bf726bda3241cf8bfb4737d2c25cb65b8369
2019-03-04 17:01:34 +08:00
Hugo Benichi
df44944fe6 Merge "LocalLog: add overloaded dump and reverseDump methods." am: 7c447498c3 am: 0357a9ca4c
am: 5121df9b61

Change-Id: I89cb6300ae6c86e790df702fbdf3416b2f242cd9
2019-03-03 18:19:39 -08:00
Treehugger Robot
7c447498c3 Merge "LocalLog: add overloaded dump and reverseDump methods." 2019-03-04 01:46:23 +00:00
Svet Ganov
af189e3371 Slice and dice app ops - framework
Appops can be peformed by an app on its behalf and also on
behalf of another app, i.e. an app can perform a proxy op
and blame the work on another app. The proxy mechanims is
for apps doing work on behalf of other apps where GCore is
one example since the app doing the work needs to check if
the caller has access to the functionality - specifically
the app op backing a runtime permission in case the calling
app does not support runtime permissions.

Apps being able to blame work on other apps is a problem now
that we would be using historical op data to show permission
usage in the UI as apps can start blaming each other to gain
a competitive advantage.

To address the issue we are adding APIs for querying portions
of the app op data - last and historical. One can now get
the ops for work the app did for itself, work the app blamed
on other apps if the app is trusted, work the app blamed on
other apps if the app is not trusted, work other trusted apps
blamed on the app, work other untrusted apps blamed on the app.
A trusted app is one holding the permisison to update app op
stats which is privileged.

The data slicing API allow us to show in the UI only the trusted
poriton of the data which is work the app did for itself, work
trusted apps balmed on the app, and work the app if untrusted
blamed on other apps.

Test: atest CtsAppOpsTestCases

bug:111061782

Change-Id: I9a2bcaea272cb06f38ba742cf601a6dc3b287d5e
2019-03-01 21:12:16 -08:00
Jeff Sharkey
9e8f83db6d All Parcelable CREATOR fields are @NonNull.
If they were null, then the Parcelable would fail to work.

Bug: 126726802
Test: manual
Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014
Exempt-From-Owner-Approval: Trivial API annotations
2019-02-28 23:29:04 -07:00
Jeff Sharkey
bffd25082c Translate selection arguments that are paths.
Also migrate MediaProvider logging to more general-purpose location
on the ContentProvider.Transport, where we can log exact input/output
values to aid debugging.

Bug: 124347872
Test: manual
Change-Id: I6aba60879ded4e0892d2d1cdd717c23cebaaabd8
2019-02-28 16:39:30 -07:00
Fan Zhang
3d6fff4db6 Merge "Revert "Enable mainline module feature."" 2019-02-28 00:51:42 +00:00
Fan Zhang
52e966e996 Revert "Enable mainline module feature."
This reverts commit 22171d7d64.

Reason for revert: hiding mainline module again in beta2.

Change-Id: I7d66aa1efe3bf1746d8f908dd115bf0f4eb83ebe
2019-02-28 00:51:10 +00:00
TreeHugger Robot
5f9cad60c8 Merge "Remove dynamic_homepage flag." 2019-02-27 19:51:40 +00:00
TreeHugger Robot
01085c4d1f Merge "Enable mainline module feature." 2019-02-26 02:13:10 +00:00
Fan Zhang
6e49425918 Remove dynamic_homepage flag.
Fixes: 118444000
Test: rebuild
Change-Id: Ifc9c983f87753e290cb0fbc2e467ae7696bb5ee8
2019-02-22 13:54:34 -08:00
Wale Ogunwale
691af68a3c Added some TestApi that are already used by CTS
Allows us to remove the use of private platform API from CTS.

Bug: 124134247
Test: builds
Change-Id: Iceb81ff7c9385e877d2612fbb7b506245d116928
2019-02-21 20:15:56 -08:00
Doris Ling
22171d7d64 Enable mainline module feature.
Fixes: 122615240
Test: rebuild
Change-Id: I20cc24993da079c82781b39e329fc13d86b0e0b3
2019-02-21 12:50:15 -08:00
Hugo Benichi
d7be4c70c3 LocalLog: add overloaded dump and reverseDump methods.
Both dump() and reverseDump() only need a single PrintWriter parameter.
This patch adds overloaded versions of these methods with that single
parameter. Callers can slowly migrate to these simpler methods over
time.

Test: Compiled.
Change-Id: I503df2af1d8115f715238f94551343fda1e951cb
2019-02-21 16:34:08 +09:00
Howard Chen
0d958bbf1d Add feature flag for Dynamic Android
Bug: 119647479
Test: flashall and check the option exists.

Merged-In: I46efd27a6880dde4bc69aa457a6f3b0fdd9ce5cd
Change-Id: I46efd27a6880dde4bc69aa457a6f3b0fdd9ce5cd
2019-02-21 15:05:20 +08:00
TreeHugger Robot
407761a768 Merge "Add feature flag for Dynamic Android" 2019-02-21 05:10:49 +00:00
Howard Chen
8cbedf5647 Add feature flag for Dynamic Android
Bug: 119647479
Test: flashall and check the option exists.

Change-Id: I46efd27a6880dde4bc69aa457a6f3b0fdd9ce5cd
2019-02-21 10:41:27 +08:00
Ahan Wu
e3b0664716 Remove AOD_IMAGEWALLPAPER_ENABLED from feature flags
The design of aod image wallpaper has changed and we don't need this
implementation any more so we remove it from feature flags.

Bug: 118470430
Bug: 123617158
Test: Manually

Change-Id: I4d48a8b6b8146b754c1d1f48c35855190219d8a9
2019-02-20 20:37:47 +08:00
Chiachang Wang
fd1c893008 Support DATA_STALL_EVENT in StatsLog.write
The target source to send the event will be mainline module
which unable to access @hide classes/functions. And current
design of StatsLog.write only allows a specific id. Thus, add
more case to support mainline module usage.

Bug: 120452078
Test: ./out/host/linux-x86/bin/statsd_testdrive 121
      against data stall event sent from NetworkStack

Change-Id: I5a68e7e093e63cc87eae753068183215a97e022d
2019-02-20 01:53:49 +00:00