Commit Graph

347967 Commits

Author SHA1 Message Date
Fyodor Kupolov
68533018e7 Merge "Only log a warning if it's an actual violation" 2017-10-26 23:02:07 +00:00
Winson Chung
35c1a5d51b Merge "Formalize recents component in the system" 2017-10-26 21:04:06 +00:00
Winson Chung
9a5c188bb4 Merge "5/Organize and make running tasks code more efficient" 2017-10-26 21:03:06 +00:00
Salvador Martinez
b80620f78b Merge "Revert "[WebView] Clean up code for finding paths and sizes of native libs"" 2017-10-26 20:33:51 +00:00
Salvador Martinez
20102bf190 Revert "[WebView] Clean up code for finding paths and sizes of native libs"
This reverts commit dec7d60325.

Change-Id: Ifc8e0c23e554f69abd18c01df95e56ab7dd55aec
2017-10-26 20:25:57 +00:00
TreeHugger Robot
60a10e32e4 Merge "WebView: change 'iff' to 'if' in docs" 2017-10-26 20:17:14 +00:00
TreeHugger Robot
7d1b674697 Merge "Minor fixes on SaveInfo javadoc." 2017-10-26 20:05:16 +00:00
TreeHugger Robot
eb1a99e1f1 Merge "Add trim levels to writeToProto" 2017-10-26 19:55:10 +00:00
TreeHugger Robot
4acbc89ff8 Merge "[WebView] Clean up code for finding paths and sizes of native libs" 2017-10-26 19:47:17 +00:00
TreeHugger Robot
37da4868f5 Merge "Don't notify isolated processes about proxy updates." 2017-10-26 19:26:28 +00:00
TreeHugger Robot
08fc60206e Merge "Updating some PowerManagerService proto messages." 2017-10-26 18:26:37 +00:00
Winson Chung
3f0e59ac1e Formalize recents component in the system
- Add resource for recents component which can be overridden in an overlay
- Allow the static recents component access to APIs which would otherwise
  require privileged permissions
- Remove some unused TV recents code

Bug: 67864419
Test: com.android.server.am.RecentTasksTest
Test: #testNotRecentsComponent_denyApiAccess
Test: #testRecentsComponent_allowApiAccessWithoutPermissions

Change-Id: Ia4939b7d443a6058ab4bb41d8c194eb4611cbf80
2017-10-26 11:11:42 -07:00
Winson Chung
61c9e5a629 5/Organize and make running tasks code more efficient
- Move running task code from stack/supervisor into its own class
- Reduce work to calculate running tasks. Instead of creating RunningTaskInfo
  for every single task and then limiting to the requested set, calculate
  the set and then create the infos.
- Consolidate calculation of number of running activities in a task between
  the RecentTaskInfo and the RunningTaskInfo
- Remove unused flag argument, adding another method to instead filter the
  collection of running tasks to exclude certain activity types and windowing
  modes.  This allows us to fetch only the last running task in SystemUI and
  not have additional logic on our side.

Bug: 34270611
Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/am/RunningTasksTest.java
Change-Id: Iaba7487cea0545f69739da7cd3095b500a0df6fc
2017-10-26 11:11:33 -07:00
Xiangyu/Malcolm Chen
ec3bfcd1df Merge "Add metricsEvent for WifiCallingSettingsForSub fragment." 2017-10-26 17:59:33 +00:00
TreeHugger Robot
75a3451753 Merge "Don't blindly reference package object" 2017-10-26 17:46:50 +00:00
Nate Fischer
2be201ec25 WebView: change 'iff' to 'if' in docs
Docs change only, no change to logic.

This replaces "iff" (if and only if) with "if". The former term is
unclear, and there's no real benefit to expanding to "if and only if."

Change-Id: I1ac26e24b816f784b6868c8860849d4118b33294
Fixes: 68133964
Test: make -j40 docs (manually verify the change looks good)
2017-10-26 10:43:00 -07:00
TreeHugger Robot
bb18e32964 Merge "Move violation extra messages into throwable" 2017-10-26 17:30:26 +00:00
Torne (Richard Coles)
115a5b2850 Don't notify isolated processes about proxy updates.
ConnectivityManager is not accessible from isolated processes, so
notifying them causes exception logspam. Since they don't have network
privileges anyway, just don't notify them about proxy changes.

Change-Id: Ic7280df84d7f54433a03e10e998e90d48da0f562
Fixes: 64640552
Test: set proxy on wifi network, disable wifi, launch webview app, enable wifi
2017-10-26 12:32:21 -04:00
Felipe Leme
5e0bfe7706 Minor fixes on SaveInfo javadoc.
Test: ran 'mmm -j108 frameworks/base/:doc-comment-check-docs' and checked HTML

Change-Id: I9ba776be77132942d516d23ac69d3ad9f9b3da62
2017-10-26 09:23:43 -07:00
Adrian Roos
4921ccf501 Add trim levels to writeToProto
Enables faster dumping without information that is not relevant in
certain scenarios.

Bug: 64831661
Test: adb shell dumpsys window --proto | hexdump -C
Change-Id: I10827f2dd092fb53b2d452bb12ef76a6adb50f41
2017-10-26 18:03:58 +02:00
Todd Kennedy
1ab4384c57 Don't blindly reference package object
This is a workaround for the bug that prevents the device from
booting. Will keep the bug open to address the core issue.

Also added some debug logs to try to catch this in the wild.

Bug: 68260103
Test: Manual. Device boots.
Change-Id: Ifed80c74897cc54eff2ee73df6dcc3b1e6f79170
2017-10-26 08:46:47 -07:00
Bryce Lee
75dcc4f040 Merge "Cleanup activity and task creation in unit tests." 2017-10-26 14:29:07 +00:00
Gustav Sennton
dec7d60325 [WebView] Clean up code for finding paths and sizes of native libs
Now that we no longer pass the paths of the native WebView libraries to
the native loading code we can simplify the code for fetching the path
and the size of the native WebView library.

Also add automated tests (WebViewLoadingTests) for loading native
libraries from test APKs where the libraries are stored either on disk
or as uncompressed libraries in the APKs.

Bug: 28736099
Test: start WebView-app, and ensure that the relro file is loaded into
the app process. Do this for both 32-, and 64-bit apps. And both for a
WebView APK where the libraries are loaded onto disk, and an APK where
the libraries are loaded uncompressed from the APK.
Test: make WebViewLoadingTests && make tradefed-all && \
tradefed.sh run template/local_min --template:map test=WebViewLoadingTests
Change-Id: I00d9b7f0650fe440ebee971eed8482759c7cbc79
2017-10-26 13:10:08 +01:00
TreeHugger Robot
fe5a702db4 Merge "Don't overly call transport.transportDirName()" 2017-10-26 10:14:39 +00:00
TreeHugger Robot
cbd40205fa Merge "Clarifying GnssClock field" 2017-10-26 07:43:32 +00:00
TreeHugger Robot
e4a613b8e4 Merge "Fix a minor typo." 2017-10-26 07:06:16 +00:00
Hugo Benichi
9d6234c13f Merge changes I59b6e04f,I55694d89 am: 9009eabbfe am: 93134fea64
am: 597757b8ab

Change-Id: I61f321ebd67432e02b5621fa1c662953295999fd
2017-10-26 06:34:27 +00:00
Hugo Benichi
597757b8ab Merge changes I59b6e04f,I55694d89 am: 9009eabbfe
am: 93134fea64

Change-Id: I923fe9cc37463e695182c7a279d201ba7e9d6518
2017-10-26 06:23:31 +00:00
Hugo Benichi
93134fea64 Merge changes I59b6e04f,I55694d89
am: 9009eabbfe

Change-Id: I217e32a7ab25fd73f3361015efae9bbbd1fde0f4
2017-10-26 06:13:39 +00:00
Hugo Benichi
9009eabbfe Merge changes I59b6e04f,I55694d89
* changes:
  Remove Parcelable interface from DefaultNetworkEvent
  Extract logging of default network events
2017-10-26 06:01:06 +00:00
Donald Chai
fb365516de Fix a minor typo.
Test: N/A
Change-Id: I56d76640c8a06f524b829fa316612954b43809ff
2017-10-25 21:51:01 -07:00
TreeHugger Robot
b2ff53abcd Merge "Fix NPE" 2017-10-26 02:36:46 +00:00
TreeHugger Robot
4ad6c372c6 Merge "Fixed an issue where the falsing classifier wasn't used" 2017-10-26 02:35:06 +00:00
Andreas Gampe
e439d72170 Merge "HwBinder: Clean up code, add logging" am: 28ed91161d am: 09cd361d2d
am: 7990e6b0eb

Change-Id: I36c4e54bc3522ba3b91e8cdf846429e247bd5ba5
2017-10-26 02:26:26 +00:00
Andreas Gampe
7990e6b0eb Merge "HwBinder: Clean up code, add logging" am: 28ed91161d
am: 09cd361d2d

Change-Id: I02c31f8ac340c241fbf9b0ffc07c126c8812fb34
2017-10-26 02:14:56 +00:00
Andreas Gampe
09cd361d2d Merge "HwBinder: Clean up code, add logging"
am: 28ed91161d

Change-Id: Ie7d511812c6dc419ca793c28a4cee1150a90bd66
2017-10-26 02:03:47 +00:00
Treehugger Robot
28ed91161d Merge "HwBinder: Clean up code, add logging" 2017-10-26 01:52:40 +00:00
Kweku Adams
3219852633 Updating some PowerManagerService proto messages.
Added some extra comments.

Bug: 65750826
Test: it builds
Change-Id: I0469b636376628bb53a3d549367528b573a957c4
2017-10-26 01:51:51 +00:00
Colin Cross
9de94c628b Merge "Convert framework-protos to Android.bp" am: d4609af986 am: d78b46eb63
am: 5fec62ceb7

Change-Id: Ice5e7dfcf2ac8d58cde7cc5691271e318a45582d
2017-10-26 01:42:45 +00:00
TreeHugger Robot
257046fab5 Merge "incidentd: Updating PowerManagerService proto files." 2017-10-26 01:30:29 +00:00
Colin Cross
5fec62ceb7 Merge "Convert framework-protos to Android.bp" am: d4609af986
am: d78b46eb63

Change-Id: I8721f2f3182c0d5a7b1717bde0c840c7e1864a41
2017-10-26 01:25:56 +00:00
TreeHugger Robot
fe0c2c4506 Merge "Move drag and drop related lines to DragDropController" 2017-10-26 01:13:59 +00:00
Colin Cross
d78b46eb63 Merge "Convert framework-protos to Android.bp"
am: d4609af986

Change-Id: I6ebf88a0931b7f9f49ac8044deb46b100129bb9f
2017-10-26 01:11:13 +00:00
Colin Cross
d4609af986 Merge "Convert framework-protos to Android.bp" 2017-10-26 01:01:08 +00:00
Hans Boehm
7ff3a5ffff Merge "Fix issue #64224738: Document return value of IBinder.transact()" am: ceb336fc8a am: 05c93f1793 -s ours
am: 08cdf440c0  -s ours

Change-Id: I26d53b894cad3b746ca8bf651845a718413f321a
2017-10-26 00:34:23 +00:00
Hans Boehm
08cdf440c0 Merge "Fix issue #64224738: Document return value of IBinder.transact()" am: ceb336fc8a
am: 05c93f1793  -s ours

Change-Id: I2a3e9b0a1a2e331fd0fa3063597fa450b624a473
2017-10-26 00:23:15 +00:00
Fyodor Kupolov
eeb73108c7 Merge "Fixed issue with MAX_RUNNING_USERS" 2017-10-26 00:15:50 +00:00
Kurt Nelson
9bcd7e9c5d Move violation extra messages into throwable
Some violations have a separate string from the throwable. Prepending
the string to the throwable's message or using it as the message sets us
up for all violations to extend Throwable.

Bug: 62458734
Test: cts-tradefed run cts-dev --module CtsOsTestCases --test
android.os.cts.StrictModeTest
Change-Id: I6a97ee69a90fb975dc453ca37fe53ea78ebfe974
2017-10-25 17:14:38 -07:00
Hans Boehm
05c93f1793 Merge "Fix issue #64224738: Document return value of IBinder.transact()"
am: ceb336fc8a

Change-Id: Ibcd3386a93a3bb5de8fb84a178678dab67beb464
2017-10-26 00:12:52 +00:00
Kurt Nelson
826d12cf92 Merge "Use annotation instead of comment" 2017-10-26 00:09:12 +00:00