Commit Graph

309172 Commits

Author SHA1 Message Date
Wale Ogunwale
cc367f4512 Fixed NPE during monkey testing.
We tried to resume key dispatching for an activity after we destroyed
it and removed its container which led to an NPE.
We now resume key dispatching for an activity if it is currently paused
just before we remove its container to not leave WM in a bad state and
also avoid NPE later on.

Change-Id: I89d366c8667e621f4515df802c6b8278fa4bd322
Fixes: 34808323
Test: adb shell monkey -p ...
2017-02-01 08:12:14 -08:00
Yohei Yukawa
73e3d1772c Merge "Fix a wrong UID can be logged" 2017-02-01 16:00:14 +00:00
TreeHugger Robot
5c34fa8ae7 Merge "Initialize bootanimation sound on separate thread" 2017-02-01 15:46:01 +00:00
Bryan Mawhinney
a5d2e18d95 Merge "Blacklist more settings from backup" 2017-02-01 15:25:59 +00:00
Esteban Talavera
bdcada9762 Affiliated profile owners can set lock task packages
Mentioned that in the documentation, cleaned up the code
a bit and added unit tests

Bug: 34614754

Test: runtest -c com.android.server.devicepolicy.DevicePolicyManagerTest    frameworks-services
Change-Id: I91232bbe494398015094ab977c6a2adce339811f
2017-02-01 15:02:22 +00:00
Julia Reynolds
a33f5c4312 Deprecate notification fields
And move references to the deprecated fields to
NotificationRecord for testability.

Test: runtest systemui-notification
Change-Id: If3910dc78297ad66679b1efa380315127261a018
2017-02-01 09:56:00 -05:00
Robin Lee
4403f2fe17 Remove setDockedStackMinimized credentials prompt
Reverts functional parts of commit 853304c0b1

This lives in a TaskStackListener now, so we just start the prompt for
activity stacks that need it, not for the whole device at once.

Bug: 31001762
Test: make -j20 && Boot, `adb shell service call trust 6 i32 {userid} i32 1`, resize docked stack.
Change-Id: I58be5174e10779f01149de1cd5c2a4db00b98490
2017-02-01 14:32:15 +00:00
Gustav Sennton
564c2fd5db Make sure we cannot use packages targeting pre-O as WebView packages.
Using a WebView package targeting a release before O as WebView provider
on O will cause crashes (because of incompatibility issues), this CL
makes us interpret a package targeting a pre-O release as being invalid
on O.

Also remove the code that lets us fall back to loading the old
WebViewChromiumFactoryProvider (pre-O) class.

Bug: 34773740
Bug: 34180497
Test: Ensure WebView provider with targetSdkVersion="O" shows up in the
WebView Implementation Dev Setting, ensure targetSdkVersion=25 doesn't
show up.
Test: Add WVUS unit test to ensure a packages with targetSdkVersion < 26
are considered invalid, and > 26 are valid. Run WVUS unit tests.

Change-Id: I4d80d46019e2522bc3fc6068712d28eedb31fcce
2017-02-01 13:59:26 +00:00
Bryan Mawhinney
9a471b9441 Blacklist more settings from backup
Test: run FrameworksCoreTest
Change-Id: I1b24ee1bcdae7e0d880bdc7f69dba6be07e72f1e
2017-02-01 13:18:27 +00:00
Orion Hodson
26917b1543 Add bytecodes for invoke-polymorphic
Bug: 30550796
Test: make
Change-Id: Iacdf0f6553556f04723fd31f76642cabd74a3553
2017-02-01 12:43:57 +00:00
Erik Kline
7462f467c1 Add test for repeated calls to registerMobileUpstreamRequest()
Test: as follows
    - built
    - flashed
    - booted
    - runtest framework-net passes
Bug: 32163131

Change-Id: I6d2519601b7a9dcfda2917118214a7ceb9dbbb7f
2017-02-01 21:30:15 +09:00
Nimrod Gileadi
119a06ce55 Add Wear keycodes to emulator key layout file.
The SLEEP keycode is used by Android Wear to indicate a
"palming" gesture (covering the screen with one's hand).

The STEM_* buttons are used for side buttons on Wear.

The keycode values were added to the emulator in
http://r.android.com/330771

Bug: 19996432
Change-Id: Ib90c3b27209b0059ebc1c2cce46cc732a677d557
2017-02-01 12:13:12 +00:00
Abodunrinwa Toki
8e332cc54b Merge "Ignore smart selection for multi-word selections." 2017-02-01 10:51:06 +00:00
Bryan Mawhinney
5668955ecd Merge "Blacklist some new settings from backup" 2017-02-01 10:18:24 +00:00
TreeHugger Robot
07072e1c9f Merge "Add an API hint for metered multipath traffic." 2017-02-01 09:54:21 +00:00
TreeHugger Robot
97fe63bb53 Merge "Revert "Push mapping from file extension to GID."" 2017-02-01 08:56:55 +00:00
TreeHugger Robot
9f864522af Merge "Camera2: Check for valid GPS timestamp before usage" 2017-02-01 08:18:07 +00:00
Lorenzo Colitti
2de4925f5c Add an API hint for metered multipath traffic.
This allows an application that knows how to provide seamless
network connectivity (e.g., using QUIC multipath) to find out if
doing so is desired.

Test: builds, boots, runtest frameworks-net passes.
Bug: 34630278
Change-Id: Ic7fd0b9e1cd879fdfaf84009d7125391895e9087
2017-02-01 17:02:29 +09:00
Keisuke Kuroyanagi
c20c33f53e Merge "Make TextViewActivityTest stable" 2017-02-01 07:33:49 +00:00
George Burgess IV
a9f38ec07d Merge "Fix a use-of-uninitialized-value warning" am: 53873df5fe am: aea873ade0 am: 820768f034
am: 142eacb409

Change-Id: I70591669041f2eb723ea8b18ce2cad28033872b0
2017-02-01 07:32:25 +00:00
George Burgess IV
142eacb409 Merge "Fix a use-of-uninitialized-value warning" am: 53873df5fe am: aea873ade0
am: 820768f034

Change-Id: Id9b31425cb8ba05687ff7dfa392b230865ec18e5
2017-02-01 07:27:15 +00:00
George Burgess IV
820768f034 Merge "Fix a use-of-uninitialized-value warning" am: 53873df5fe
am: aea873ade0

Change-Id: I747d94158c8a1c77f8ae1076c93a3d22f6c22ef5
2017-02-01 07:21:51 +00:00
George Burgess IV
aea873ade0 Merge "Fix a use-of-uninitialized-value warning"
am: 53873df5fe

Change-Id: I102fb345244f922cb41a5ce31b2de0af8e68bf97
2017-02-01 07:15:00 +00:00
Treehugger Robot
53873df5fe Merge "Fix a use-of-uninitialized-value warning" 2017-02-01 07:09:51 +00:00
Ying Wai (Daniel) Fan
442ab76d22 Prevent division-by-zero error when calculating battery capacity.
Bug: 34255953
Change-Id: Ie072cd5dc26faf17e8ab46ea0795750396f087c2
Fixes: 34255953
Test: formula change CL. No existing unit tests found.
2017-01-31 22:00:10 -08:00
Yohei Yukawa
59377cab5c Fix a wrong UID can be logged
This is a prepartion for fixing Bug 34838583

Currently Binder.clearCallingIdentity() is called too early, which
ends up always blaming the system UID when calledWithValidToken()
fails in InputMethodManagerService#updateStatusIcon().

Test: Compile
Bug: 34838583
Change-Id: Id69da24de8269c0c7e31ea9ef3c595c3d69fe40e
2017-01-31 21:34:09 -08:00
Pierre Lecesne
df7278d842 Merge "Moving the LoadedApk class to its own file." 2017-02-01 05:30:18 +00:00
Justin Klaassen
16e04ad40a Merge "Enable SMS in carrier demo mode" into nyc-mr2-dev am: 42dfcc772b
am: c21a98dee0

Change-Id: Ia21d10601651123326fba5944e39f52e42c7c746
2017-02-01 05:27:43 +00:00
Justin Klaassen
6594a07c76 Enable SMS in carrier demo mode am: f8a10959d2
am: d9a1ed0cfb

Change-Id: I2ea950f526f3fbf4e4de7deae930de0a87180cc8
2017-02-01 05:26:37 +00:00
Justin Klaassen
c21a98dee0 Merge "Enable SMS in carrier demo mode" into nyc-mr2-dev
am: 42dfcc772b

Change-Id: I8d36badab79c40e5a65a88ca4ed418409cd17e24
2017-02-01 05:21:01 +00:00
Justin Klaassen
d9a1ed0cfb Enable SMS in carrier demo mode
am: f8a10959d2

Change-Id: Icc96ba3c6fafa5df0327297ed81f8c8dff8818fe
2017-02-01 05:20:56 +00:00
TreeHugger Robot
42dfcc772b Merge "Enable SMS in carrier demo mode" into nyc-mr2-dev 2017-02-01 05:14:02 +00:00
TreeHugger Robot
f246bea957 Merge "Remove unnecessary Binder.clearCallingIdentity()" 2017-02-01 05:10:32 +00:00
Doris Liu
741ec3ed1d Merge "Make sure start() is called for custom animators" 2017-02-01 04:33:29 +00:00
Peter Qiu
bc7858b56b Merge "hotspot2: implement hashCode() for classes with equals() function" am: 2ac992fcad am: 9e7725040b am: ec61beaa7a
am: 3e6c9c9462

Change-Id: I1f345852ec2ea536e02caabd81818fa16d4c0dc7
2017-02-01 03:46:58 +00:00
Justin Klaassen
f8a10959d2 Enable SMS in carrier demo mode
Fixes: 34861667
Test: manually verified default SMS app works in carrier demo mode.
Change-Id: Ic6f1065954e5bb54c6b78b3d604811333f6863e4
2017-01-31 19:40:40 -08:00
Jeremy Joslin
16bbb0cd64 Merge "Print the package name and creator UID in dump()." am: cf7f9dd6a1 am: ba4bc08dae am: 9c245a51f7
am: 499f1f39ff

Change-Id: I873b8c6239bb7766ac1a4b4078afb3700000186b
2017-02-01 03:39:57 +00:00
Peter Qiu
0636791424 Merge "hotspot2: update PasspointConfiguration APIs" am: 59da9b24ca am: 4ed5fe8191 am: 28630218cc
am: ebafa7c813

Change-Id: I0bc0326e3ff67fff697f1aea004806978c4244b3
2017-02-01 03:38:07 +00:00
Peter Qiu
3e6c9c9462 Merge "hotspot2: implement hashCode() for classes with equals() function" am: 2ac992fcad am: 9e7725040b
am: ec61beaa7a

Change-Id: I26269af9bf18789ce40858df0645e17867f44469
2017-02-01 03:37:58 +00:00
Jeremy Joslin
499f1f39ff Merge "Print the package name and creator UID in dump()." am: cf7f9dd6a1 am: ba4bc08dae
am: 9c245a51f7

Change-Id: I33a60ce4525561705572ebaa0fe1851d46c24b63
2017-02-01 03:32:27 +00:00
Peter Qiu
ebafa7c813 Merge "hotspot2: update PasspointConfiguration APIs" am: 59da9b24ca am: 4ed5fe8191
am: 28630218cc

Change-Id: I264d4664bc9e69d9c70dce7ffcf75e3ae2e2e430
2017-02-01 03:30:58 +00:00
Peter Qiu
ec61beaa7a Merge "hotspot2: implement hashCode() for classes with equals() function" am: 2ac992fcad
am: 9e7725040b

Change-Id: I5b36bb042933a0a889b7f84281b174a7527ccaff
2017-02-01 03:30:51 +00:00
Jeremy Joslin
9c245a51f7 Merge "Print the package name and creator UID in dump()." am: cf7f9dd6a1
am: ba4bc08dae

Change-Id: I3f7e2a6ecdbe04fad0358fadecdeb8341baa99eb
2017-02-01 03:25:47 +00:00
Peter Qiu
28630218cc Merge "hotspot2: update PasspointConfiguration APIs" am: 59da9b24ca
am: 4ed5fe8191

Change-Id: I678ec9518c7c88acefd1bb99bcb3add27ca52b87
2017-02-01 03:24:04 +00:00
Lorenzo Colitti
3c9beea4c9 Merge changes If420bd66,Icbb161ca,Ida190e5a,Iae75781f am: 2ec8b8bcb6 am: 8fcc6a34f0 am: 10d3007e66
am: b8d609eb82

Change-Id: Ice652a68cbccd70bedc36e33ba109bbcfa88e332
2017-02-01 03:19:47 +00:00
Peter Qiu
9e7725040b Merge "hotspot2: implement hashCode() for classes with equals() function"
am: 2ac992fcad

Change-Id: I15cec4598a8a97b25c6b8ce62864ccb6b240bfde
2017-02-01 03:19:27 +00:00
Lorenzo Colitti
70fbc78896 ConnectivityServiceTest: remove remaining poll loops. am: d2706127d0 am: 54e9050710 am: 67d6d41954
am: 6e7f7dc643

Change-Id: Idc5d60f9ed5fbbb39256b9983a5b292a0302b2f1
2017-02-01 03:18:46 +00:00
Lorenzo Colitti
e45952c825 Rename AvoidBadWifiTracker to MultinetworkPolicyTracker am: 58ebe1c6f1 am: 0bc8070fce am: 338241de94
am: d526434f05

Change-Id: I5aefc453c022286e6ee2332a53e6c9f36472e9a5
2017-02-01 03:17:19 +00:00
Lorenzo Colitti
7d8b56b801 Attempt to make waitForIdleHandler reliable. am: ae3ce81cc3 am: 8780a8afeb am: 943808385a
am: 8e3718459b

Change-Id: Ia2d7a4405ce60ca99b1ee6c80c0babf93983cf64
2017-02-01 03:16:18 +00:00
Yohei Yukawa
fa49c00089 Remove unnecessary Binder.clearCallingIdentity()
This is a follow up CL to my previous CL [1] for Bug 26663589.

This is also a preparation CL for Bug 34838583, where the warning
shown from the method in question is to be suppressed.

The fix still works, but the Binder.{clear, restore}CallingIdentity()
block introduced by that CL is not actually necessary, because
WindowManagerInternal#clearLastInputMethodWindowForTransition() only
updates some internal variables.  No system privilege is involved.

 [1]: Ib567daa009c1139858dccadcfc6a04465ebecf36
      833bdcedce

Test: Manually verified that Bug 26663589 is still fixed.
       1. Flash a new OS image.
       2. Complete the setup wizard.
          Make sure a voice IME (subtype mode="voice") is installed.
          Make sure you can type with LatinIME.
       3. Connect to an external hardware keyboard.
       4. Launch an app whose window has "stateAlwaysVisible" bit.
       5. Focus in an EditText on the app.
       6. Hit the right ALT key on the hardware keyboard.
          Make sure that LatinIME shows symbol keyboard.
       7. Hit the "ABC" button at the left botton on keyboard.
       8. Tap the mic icon on the keyboard.
          Make sure that the voice IME is shown.
Bug: 26663589
Bug: 34838583
Change-Id: I88b3abb9fa88b54e4844dabd89126f5dcdda6405
2017-01-31 19:15:00 -08:00