Commit Graph

95642 Commits

Author SHA1 Message Date
Dario Freni
b1eeab34a6 Merge "Initial support for installing APEX via adb." 2018-11-06 10:18:38 +00:00
Kevin Chyn
8d45688b6d Merge "Add placeholders for IrisManager/Service" 2018-11-06 06:29:22 +00:00
TreeHugger Robot
8f126e98b7 Merge "Make pattern fade slower" 2018-11-06 06:10:52 +00:00
TreeHugger Robot
aad97b2341 Merge "Add feature flag for Safety Hub" 2018-11-06 04:28:37 +00:00
Arthur Ishiguro
3685d31475 Merge changes I9f2d4e1b,Iad9ada1f,Ic8d269b4
* changes:
  Implements PendingIntent based createClient API
  Adds bindClient method to service AIDL
  Close unregistered clients with no PendingIntent
2018-11-06 03:34:31 +00:00
TreeHugger Robot
891aa9edc9 Merge "Fix "Tracking association..." logspam." 2018-11-06 03:15:27 +00:00
Kevin Chyn
51676d293a Add placeholders for IrisManager/Service
With the system services in place, we can add SELinux policies

Bug: 116530289

Test: Builds
Change-Id: I0fd0dfbbbf258eb4a0ef9019247baaf323578959
2018-11-05 18:57:15 -08:00
Lucas Dupin
31c0022caa Make pattern fade slower
We went a little too far...

Bug: 74259090
Test: visual
Change-Id: Icdc05a445ecf79689b47bde829bc02164469f370
2018-11-05 18:13:54 -08:00
Oscar Shu
28de999efe Merge changes from topic "PnoPipeline"
* changes:
  Pno frequency culling: Settings.Global flag
  Pno frequency culling: add frequencies field
2018-11-06 01:45:19 +00:00
TreeHugger Robot
16e9f5993d Merge "Removes ContextHubBroadcastReceiver" 2018-11-06 01:35:40 +00:00
Makoto Onuki
3a8e5c50bc Fix "Tracking association..." logspam.
In the previous code, updateTrackingAssociationsLocked() was called too early.
There's still code that changes procstates, so let's move
updateTrackingAssociationsLocked() to the end of updateOomAdjLocked().

Also change Slog.w() to Slog.wtf() so we can monitor it on APR.

Also rate limit the WTF to at most one in ten seconds.

Bug: 118826162
Test: Boot with and without the fix and make sure the number of the warnings
reduces.
(We still have a couple WTFs from during a boot with this CL, which requires
further investigation.)

Change-Id: Ifa1fe85de82fa1d1d8f843372c54c1248966a62a
2018-11-05 16:01:09 -08:00
Ryan Mitchell
3064067908 Merge "Copy common resources between styles" 2018-11-05 23:56:39 +00:00
Felipe Leme
f783fa0781 Fixed javadoc...
IntelligenceService is a @SystemApi, and hence not available from non-system.

Test: echo "in TH we trust"
Bug: 111276913

Change-Id: I4c28de49334bdf100a26963e47df9630804730df
2018-11-05 14:58:18 -08:00
Felipe Leme
05083b019f Merge "Initial APIs for Intelligence Service." 2018-11-05 21:48:54 +00:00
Seigo Nonaka
0a2786cc5d Merge "Refactor Typeface construction logic" 2018-11-05 21:09:23 +00:00
John Reck
f2c351abb4 Merge "Make RenderNode public API" 2018-11-05 20:54:57 +00:00
Beverly Tai
fe0efe6bd2 Merge "Only update zen rule name on locale change" 2018-11-05 18:58:39 +00:00
Vadim Tryshev
12c9815347 Merge "Exposing intent action for DWB properties as an API" 2018-11-05 18:42:30 +00:00
Felipe Leme
1dfa9a0195 Initial APIs for Intelligence Service.
A.K.A: "The thing's hollow — it goes on forever — and — oh my God! —
        it's full of TODOs!"

Bug: 117944706
Test: m update-api && m

Change-Id: I0774a0df4f4ea0810a8c5f72a1fbcd4eef5cd09b
2018-11-05 09:22:18 -08:00
yuanjiahsu
4c7f6c2b38 Add feature flag for Safety Hub
Add feature flag to launch Safety Hub app instead of Emergency Info
app for teamfood in the future.

Test: Manually
Bug: 118809382
Change-Id: I2fb6ca18419a542159eb070876e01c6130038daa
2018-11-05 21:32:34 +08:00
Dario Freni
d8bf22e8c6 Initial support for installing APEX via adb.
Test: adb install package-signed.apex (succeeds)
adb install package-unsigned.apex (fails)
Change-Id: I3ac7971ce6923511a7d574291fe9002c5d55fa1b
2018-11-05 09:24:58 +00:00
Junyu Lai
e914f1e453 Merge "Extend onDnsEvent callback to report more fields." am: 89eb3e6117 am: 7a782be65d
am: 556ae82025

Change-Id: I50ef791009b0e9301ba10d8e52c3fd6c15e6b938
2018-11-04 21:05:47 -08:00
Junyu Lai
556ae82025 Merge "Extend onDnsEvent callback to report more fields." am: 89eb3e6117
am: 7a782be65d

Change-Id: Ic1b35f2b02dc60e301d39e89008617b341194382
2018-11-04 20:54:14 -08:00
Junyu Lai
89eb3e6117 Merge "Extend onDnsEvent callback to report more fields." 2018-11-05 04:29:47 +00:00
Cody Northrop
e4ae7ea03e Merge "Add GLES specific setting for layers" 2018-11-04 17:00:46 +00:00
Dieter Hsu
3ee2bd7d21 Merge "Improve TouchDelegate Accessibility: Explore by Touch handle hover events" 2018-11-03 22:30:13 +00:00
Jeff Sharkey
e4d87cb722 Merge "First pass at APIs for contributing new media." 2018-11-03 19:42:58 +00:00
Jeff Sharkey
c8e4924b57 First pass at APIs for contributing new media.
MediaStore has long suffered from race conditions around creation
of new media.  For example, if developers write raw files before
inserting the MediaStore item, an in-progress media scan might pick
up the file before they could insert it.  Conversely, if developers
insert the item before writing the files, backup apps get confused
about the file not existing yet.

In addition, the new storage model in Q means that apps can't write
raw files directly to disk, so they need to insert the MediaStore
item first.

To solve this collection of issues, this CL introduces first-class
APIs for contribution of new "pending" media, which includes hiding
the pending media until explicitly published.  Apps can safely
resume pending sessions if they crash and restart, which is useful
when the media item is coming from a flaky network.  Apps can also
publish progress information about pending media, such as when a
panorama is taking several seconds to process.

Bug: 115377970
Test: atest MediaProviderTests
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I6adee3c4ad1fb9db94906dd1293caaa1a09c6da0
2018-11-03 12:03:07 -06:00
Mihai Popa
33e8c93551 Merge "Make text handle drawables public" 2018-11-03 13:51:15 +00:00
Lifu Tang
05dfae98d6 Adds wrapper method to convert string ops to ints
Bug: 117677214
Test: compile and flash
Change-Id: I7de3d3829aa99473b415b40bbfe4078d5b5ed3b7
2018-11-03 00:32:38 -07:00
TreeHugger Robot
548107d94f Merge "Add reminder comment for updating CTS test" 2018-11-03 05:03:22 +00:00
Svetoslav Ganov
c7d89b4bc2 Merge "Revert "Adjust default app op behavior based on feature state"" 2018-11-03 05:01:47 +00:00
Svetoslav Ganov
0b9af26dba Revert "Adjust default app op behavior based on feature state"
This reverts commit 7d6dbb2b0b.

This change causes a subtle deadlock. Will upload a correct patch in a bit.

Change-Id: I8cb14000943338fb8c2c9049c2d85a4ce8cf6fcd
2018-11-03 04:50:48 +00:00
Svetoslav Ganov
79eba743ca Merge "Historical app op APIs - initial check in." 2018-11-03 04:49:45 +00:00
Risan
d17dabf5dd Merge "ResetListener in StorageManagerService" am: 6b3a5194d9
am: 493110e0b4

Change-Id: I25a0a9a949d17c0a0d05106dc91254f5fbc901e3
2018-11-02 21:43:07 -07:00
Vishnu Nair
6ec0815612 Merge "[DO NOT MERGE] AM: Use ActivityMetricsLogger to get app launch times" into pi-dev
am: a6fc25f6d3

Change-Id: I4bcc8c3a777d6537788b38cd27b2f670fbb9770b
2018-11-02 21:24:55 -07:00
Kevin Chyn
a60c07ac58 Add reminder comment for updating CTS test
Bug: 117346645

Test: Builds
Change-Id: I0193e11e57039b1a3e80c99acc491ea19c4ffeed
2018-11-02 19:58:01 -07:00
TreeHugger Robot
36a8b7dda0 Merge "System Alerts show follow dark theme" 2018-11-02 22:32:39 +00:00
Kweku Adams
53de12ef0d Merge "Slight improvements to ArraySet." 2018-11-02 22:28:48 +00:00
Risan
a354a27056 ResetListener in StorageManagerService
Bug: 110380403
Test: Manual test in ARC++, prototyped a way that reset reaches ARC++
service.
Change-Id: Icc7dcc8b5c726ed9f61226569227c4d47f44b386
Merged-In: Icc7dcc8b5c726ed9f61226569227c4d47f44b386
2018-11-02 21:45:43 +00:00
John Reck
ddeaa487da Make RenderNode public API
Bug: 112709971
Test: CtsUiRenderingTestCases:.testclasses.RenderNodeTests
Change-Id: I57d64165b842d03565eda5f4d37343c4f9c45d42
2018-11-02 14:24:32 -07:00
Beverly
49ba9a6019 Only update zen rule name on locale change
Test: atest ZenModeHelperTest
Change-Id: I9154c812f9955d145fe461b9e17faf9fe9ccf1c9
Fixes: 118789422
2018-11-02 16:53:29 -04:00
Vishnu Nair
cf23504955 [DO NOT MERGE] AM: Use ActivityMetricsLogger to get app launch times
- Make ActivityMetricsLogger the single source of truth for activity metrics and
use it to provide data for Tron, logcat, event logs and {@link android.app.WaitResult}
- Remove LaunchTimeTracker
- Remove workaround added for b/80084651
- Remove thisTime from WaitResult and logs
- Remove am_activity_fully_drawn_time EventLog Tag
- Update WaitResult parsing logic in AppLaunch
- Discard metrics if a launching activity is already visible.
- original bug: 67683350

Compatibility Changes:
- thisTime removed from logcat and eventlog. Only totalTime will be displayed.
- Change in activity visiblity during launch will invalidate totalTime. am start -w
  will only report WaitTime in this case.
- am_activity_fully_drawn_time is removed from event log.

Bug: 117235762
Test: atest  google/perf/app-startup/third-party-apps/cold-dropcache-stable-test -v
Test: manual tests
Test: check applaunch.txt matches test run

Change-Id: Ib033594b961be9227256eba2a519dd6c2e3db573
(cherry picked from commit 132ee83808)
(cherry picked from commit 017cddcbcb)
(cherry picked from commit f8accc5b30)
(cherry picked from commit af0ea31549)
2018-11-02 13:27:00 -07:00
Svet Ganov
ad0a49bc42 Historical app op APIs - initial check in.
This change adds new APIs for querying historical app ops
for a time period in the past. Since app ops are performed
quite often in some cases keeping track of every app op is
prohibitively inefficient. Therefore, we are exposing
aggregated counts for past ops.

Test: atest android.permission.cts.AppOpsTest

bug:111061782

Change-Id: I59bbf906d62cd6dcd751f2e8089242dcecd55a6c
2018-11-02 13:00:07 -07:00
Arthur Ishiguro
6cc24a5df3 Implements PendingIntent based createClient API
Bug: 117612105
Test: Compile and flash, verify API user can regenerate a
      ContextHubClient
Change-Id: I9f2d4e1b4389e32b0828d494d74151ec56fa9d57
2018-11-02 11:29:23 -07:00
Arthur Ishiguro
d3464c7c93 Adds bindClient method to service AIDL
Will be used to recreate client with a PendingIntent.

Bug: 117612105
Test: Compile only
Change-Id: Iad9ada1fe113275790336663112f276327d4f558
2018-11-02 11:29:21 -07:00
TreeHugger Robot
9aab89bd58 Merge "ResetListener in StorageManagerService" 2018-11-02 18:23:49 +00:00
TreeHugger Robot
8a7fb85282 Merge "Add a missing sync to RemoteCallbackList dump" 2018-11-02 18:10:23 +00:00
Arthur Ishiguro
41f4e64280 Removes ContextHubBroadcastReceiver
Dynamically registered BroadcastReceivers are only valid through
the lifecycle of a process, so clients should use static
BroadcastReceivers.

Bug: 117612105
Test: None
Change-Id: Id1a13b0f54aa138685bf8cb57ffe9f176d55e6e0
2018-11-02 10:28:24 -07:00
Stanley Tng
3cd1bff4c7 Merge "Change the feature flag for Hearing Aid behavior" am: 31d6ca5c3a
am: 91396395e1

Change-Id: I2f2411e9ca6564dce34123e282613c306c8734ea
2018-11-02 09:09:31 -07:00