Commit Graph

79450 Commits

Author SHA1 Message Date
Makoto Onuki
baae493184 Merge "Revert "Retry: JobScheduler to use UID active state for job exemption"" 2018-02-08 02:31:18 +00:00
Makoto Onuki
2f0b0310ee Revert "Retry: JobScheduler to use UID active state for job exemption"
This reverts commit 3f7be62d31.

Reason for revert: I failed to unrevert it.

Change-Id: I086634236e140d3fe2f46dfff605fde548ab34f4
2018-02-08 02:30:56 +00:00
TreeHugger Robot
b8efd65ac3 Merge "Stop accepting zero size drag shadow for P." 2018-02-08 01:12:48 +00:00
Jiuyu Sun
7fdd2bf7c1 Merge "Public EuiccManager APIs." 2018-02-07 23:55:28 +00:00
Makoto Onuki
b16f567576 Merge "Retry: JobScheduler to use UID active state for job exemption" 2018-02-07 23:23:37 +00:00
Etan Cohen
7210eaeba1 Merge "[RTT] Remove the legacy RTT service" 2018-02-07 22:50:16 +00:00
Emilie Roberts
3b60d0221c Merge "Close Dialog when ESC Pressed" 2018-02-07 22:03:38 +00:00
TreeHugger Robot
0589371900 Merge "PackageInfo: add Parcel read/write for cert history." 2018-02-07 21:03:32 +00:00
Etan Cohen
9accbba1b7 [RTT] Remove the legacy RTT service
Remove the legacy RTT service. RTT requests are already directed to
the new API by a previous CL.

Bug: 65108579
Test: unit tests
Test: WifiRttManagerTest:test_regular_scan_then_rtt_ranging_stress
Change-Id: I436e8bcd2f4e2ba6056870d887eea141fbebae85
2018-02-07 12:36:05 -08:00
TreeHugger Robot
ea8feabec5 Merge "Minor improvements on autofill compat mode:" 2018-02-07 19:44:26 +00:00
Makoto Onuki
3f7be62d31 Retry: JobScheduler to use UID active state for job exemption
This is a second try for I134ac3d84a26309dab56ab6cbb271de626acdf7d.

Apparently alarms are firing even before PHASE_SYSTEM_SERVICES_READY, so add
more null checks.

Test: Boot on taimen.
Test: atest CtsAlarmManagerTestCases
Test: atest CtsJobSchedulerTestCases
Test: atest CtsBatterySavingTestCases
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/AppStateTrackerTest.java
Change-Id: I4b2a5af04e4d78c996e73da0621047da7a7bff39
2018-02-07 11:38:11 -08:00
Holly Jiuyu Sun
af6a5fffdc Public EuiccManager APIs.
Public EuiccManager and other related necessary files.
Mark EuiccCardManager and other related necessary files as @SystemApi.
Solve lint errors and warnings.

Bug: 35851809
Test: test on phone
Change-Id: Id7895f9b35ce9d4fb6fae42ba89ca9b29dbfa74c
2018-02-07 11:09:27 -08:00
Winson Chung
0ee9c0db54 Merge "Revert "Exposing content insets and minimized home bounds for recents transition"" 2018-02-07 18:39:20 +00:00
Winson Chung
bb5d97f00f Revert "Exposing content insets and minimized home bounds for recents transition"
This reverts commit 67f31199fb.

Reason for revert: Need to wait for the Launcher drop at EOD today

Change-Id: I039cd3092d786c62a88f599eb79c0704c6257981
2018-02-07 18:30:40 +00:00
Winson Chung
bcaeb104c2 Merge "Exposing content insets and minimized home bounds for recents transition" 2018-02-07 17:34:50 +00:00
Christine Franks
eafb541439 Change night display auto mode Validator type
NIGHT_DISPLAY_AUTO_MODE_VALIDATOR was incorrectly aliasing
BOOLEAN_EVALUATOR. As the valid values for this setting are { 0, 1, 2 },
when 2 (sunset-sunrise auto mode) was restored, the restoration would
fail.

Bug: 72992475
Test: B&R a device from the cloud with a sunrise-sunset auto mode.
Change-Id: I2dcb746847054e1f3d93731790a4d534f927ae28
2018-02-07 15:27:59 +00:00
Artem Iglikov
159fdccde5 Merge "Revert "JobScheduler to use UID active state for job exemption"" 2018-02-07 15:04:05 +00:00
felipeal
fd3f8f6f4b Minor improvements on autofill compat mode:
- Added missing fields such as viewResourceId, maxTextLength, and hint.
- Set input type class for passwords.

Test: manual verification
Bug: 72811034

Change-Id: I60dc7a368726d298f43e1f84b28561140ba10329
2018-02-07 11:54:12 +01:00
Artem Iglikov
0b053fecb6 Revert "JobScheduler to use UID active state for job exemption"
This reverts commit 6132e7bb1b.

Reason for revert: crashes master

Bug: 73049495
Change-Id: Idfd9a284163d26970b7cb89dea475d7c6abe0193
2018-02-07 09:47:51 +00:00
Jong Wook Kim
2dcd15de37 Merge "MacAddress: Use SecureRandom and add a 46 bit randomized MAC generator" am: 9f16828767 am: 775861bb12
am: b6b2957b8e

Change-Id: I5f2d395705841b7da03b1552b16507466e47ef84
2018-02-07 09:26:56 +00:00
Jong Wook Kim
b6b2957b8e Merge "MacAddress: Use SecureRandom and add a 46 bit randomized MAC generator" am: 9f16828767
am: 775861bb12

Change-Id: I6dba4e244c660d29f107e471250d39e9caafb17e
2018-02-07 05:32:01 +00:00
Jong Wook Kim
775861bb12 Merge "MacAddress: Use SecureRandom and add a 46 bit randomized MAC generator"
am: 9f16828767

Change-Id: If35e07b78b17329a25cf78adbf3d8244af4a4f81
2018-02-07 05:20:19 +00:00
Dan Cashman
050b79975b PackageInfo: add Parcel read/write for cert history.
commit: 5cdda3425c added a new flag,
GET_SIGNING_CERTIFICATES to PackageManager for use with getPackageInfo
that returns the signing certificate history, including the current signer,
of the given package.  This is intended to replace the existing
GET_SIGNATURES flag and corresponding field.  The previous commit did not,
however, implement the read/write Parcelable methods so that this
information could be reconstructed client side.  Implement those methods
to actually expose the new API.

Bug: 64686581
Test: Test app pull of PackageInfo with GET_SIGNING_CERTIFICATES succeeds.
Change-Id: I1c023da2a6fd03e11432953080045a79b9f56839
2018-02-06 21:11:23 -08:00
Sandeep Patil
a51c496153 Revert "STOPSHIP: Add UidCpuPower global setting"
This reverts commit 495665dc2f.

Reason for revert: b/73018322
Bug: 73018322

Change-Id: I1b83c4d916159e6961ec30576c7629e57978a72d
2018-02-06 19:18:23 -08:00
David Brazdil
8633fd11ad Merge "Fix ApplicationInfo.isAllowedToUseHiddenApi predicate" 2018-02-07 02:19:02 +00:00
Fyodor Kupolov
a17858d072 Merge "Fix JavaDoc for enableWriteAheadLogging" 2018-02-07 01:51:57 +00:00
Jong Wook Kim
f0a55cc9ed MacAddress: Use SecureRandom and add a 46 bit randomized MAC generator
Use SecureRandom instead of Random since Random is time based and can
increase the chance of generating same MAC address across multiple
devices.

createRandomUnicastAddress should randomize all bits of the address,
except for locally assigned bit and unicast bit. The previous method
that only randomizes NIC and use Google Base OUI is renamed to
createRandomUnicastAddressWithGoogleBase.

Bug: 72450936
Test: runtest frameworks-net
Change-Id: Icda650638c2c1c9fd90d509a87e86347c0e05f2d
2018-02-07 01:28:46 +00:00
Makoto Onuki
4437a22f2d Merge "JobScheduler to use UID active state for job exemption" 2018-02-07 01:09:12 +00:00
David Brazdil
568f5e573a Fix ApplicationInfo.isAllowedToUseHiddenApi predicate
FLAG_UPDATED_SYSTEM_APP does not imply FLAG_SYSTEM, need to check both.

Bug: 64382372
Test: make
Change-Id: I1ad87c5ef0ad90c090da9264b894ae25e87996ae
2018-02-07 00:20:21 +00:00
Winson Chung
67f31199fb Exposing content insets and minimized home bounds for recents transition
- In order to calculate the final target rect and window clip for the
  app currently transitioning into the task view in launcher (similar to
  how we did in SysUI), we need to provide the content insets and bounds
  for both the app and launcher (whose activity may not yet have been
  shown).  For the existing recents transition, this was calculated
  internally in the AppTransition aspect-scaled transition, but now that
  we are implementing this via remote animations, the same information is
  needed in the implementation of the recents animation runner.

Bug: 70294936
Test: Swipe up from launcher with window transitions when in multi window
Change-Id: I2afc6bdfe112cc7bb1b07ba65213653f6f0634f9
2018-02-06 16:15:41 -08:00
TreeHugger Robot
bca6e66c4d Merge "Add display panel low power mode global setting & mapping to sys property." 2018-02-06 23:48:32 +00:00
TreeHugger Robot
a54e69a116 Merge "Increase instant app privacy with dummy data" 2018-02-06 23:18:13 +00:00
Selim Cinek
a352b7a9f3 Merge "Implemented support for inline images" 2018-02-06 23:15:00 +00:00
TreeHugger Robot
98517be352 Merge "Revert "Remove @hide from ViewGroup debug methods"" 2018-02-06 22:45:40 +00:00
Steven Moreland
51fe9f871c Merge "Remove unused flags from IHwBinder." 2018-02-06 22:45:11 +00:00
Makoto Onuki
6132e7bb1b JobScheduler to use UID active state for job exemption
JobScheduler used to use procstate foreground state to decide whether
to exempt jobs, but it should use UID's active state instead, so that
if apps in the temp-whitelist schedule jobs, they run immediately.

Test: Boot
Test: atest CtsAlarmManagerTestCases
Test: atest CtsJobSchedulerTestCases
Test: atest CtsBatterySavingTestCases
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/AppStateTrackerTest.java

Change-Id: I134ac3d84a26309dab56ab6cbb271de626acdf7d
2018-02-06 13:36:59 -08:00
Richard Ledley
db96b03495 Merge "Remove selection on nonselectable text (which would be there if a user tapped Linkified text) if a TextView loses focus." 2018-02-06 21:34:45 +00:00
Ajay Dudani
bcfcd6c9bb Add display panel low power mode global setting & mapping to sys property.
This will help us run P/H experiments by controlling display panel low
power mode system property through P/H.

Bug: 72121774
Test: Compile, boot taimen.
Change-Id: Id4c95bcd5616e9749f9dcc9d9f4773ffdad3e994
2018-02-06 12:19:21 -08:00
Adam Lesinski
cffb3604ae Merge changes from topic "assetmanager2"
* changes:
  libandroidfw: Improve performance of AssetManager2
  libandroidfw: Add ApplyStyle and SetConfiguration benchmark
  Make idiomatic use of ApkAssets and AssetManager
  libandroidfw: Make sure to set the 'app as lib' flag
  Replace AssetManager with AssetManager2 implementation
2018-02-06 19:52:36 +00:00
Patrick Baumann
4db6bc16d0 Increase instant app privacy with dummy data
This change adds some additional digest prefixes to instant app
resolution to make inverting the hash more difficult.

Change-Id: Ibf907495019338b5cac5dd22da275799e92f9b60
Fixes: 63445230
Test: manual - resolution still works with current production resolver
2018-02-06 11:44:25 -08:00
TreeHugger Robot
8744f57386 Merge "[Magnifier - 19] Add non-basic CTS tests" 2018-02-06 18:53:33 +00:00
TreeHugger Robot
bc38a217b9 Merge "Call ImageDecoder directly in ResourcesImpl" 2018-02-06 18:34:40 +00:00
Selim Cinek
7199ed910e Implemented support for inline images
Messaging Style always had API support to
display images, but they were never shown.
We are now displaying images inline

Bug: 63708826
Test: send messages with an image
Change-Id: I50c835b19f4846cb2cbfb17e9805eacffd9ec6b3
2018-02-06 10:33:16 -08:00
Steven Moreland
3a5419befa Remove unused flags from IHwBinder.
transaction start: this is interface dependent
flags: part of kernel ABI, unused here

Bug: 72877008
Test: N/A
Change-Id: Ic0f268cd0483edaf3cea7de90b5743e84292f427
2018-02-06 10:26:22 -08:00
Emilie Roberts
c1c572ef92 Close Dialog when ESC Pressed
Listens for ESC key and calls onBackPressed() to close the
dialog.

Bug: 71907807
Test: atest cts.DialogTest
Test: Manual testing on Marlin, P (master)
Change-Id: I850cc9889869fa3b7d83bfab55e1f4d63035e162
2018-02-06 18:25:49 +00:00
Richard Ledley
5f2f820c81 Remove selection on nonselectable text (which would be there if a user tapped Linkified text) if a TextView loses focus.
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest

Bug: 67629726
Change-Id: Ifc3039f0c814c422b2d727f837ca9c88abc2ebe8
2018-02-06 18:09:49 +00:00
TreeHugger Robot
bbfebc3c93 Merge "Removes instant app visibility metadata check" 2018-02-06 17:35:03 +00:00
Vladislav Kuzkokov
999ea9fb7e Merge "Make printing policy a restriction." 2018-02-06 17:11:07 +00:00
Beverly Tai
c65eb44437 Merge "Wireless charging sound used for wired charging" 2018-02-06 16:29:09 +00:00
Patrick Baumann
a290039e92 Removes instant app visibility metadata check
Change-Id: I94c0ba08a429a60b3f7149e60f6e94f5c8e5617d
Fixes: 36551762
Test: atest EphemeralTest succeeds
2018-02-06 16:01:49 +00:00