Commit Graph

309172 Commits

Author SHA1 Message Date
Bryce Lee
a163b76570 Allow opening activity to specify orientation.
An activity's window is initially not visible. This means it is not
accounted for until it becomes visible, which means requested
orientations will not be honored until after onCreate.

This changelist removes the visibility check previously used determining
the orientation.

This changelist also addresses an issue where an ActivityRecord member
variable tracking the last configuration sent was not being initially
updated.

Fixes: 33844887
Fixes: 33814250
Fixes: 34165818
Fixes: 34177026
Fixes: 33809086
Fixes: 34111451
Fixes: 33844423

Test: Verified reported issues fixed in apps mentioned in bugs
Test: bit FrameworksServicesTests:com.android.server.wm.WindowContainerTests
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test android.server.cts.ActivityManagerAppConfigurationTests
Change-Id: If9243792b9f2d137dc5addbf6fb735a0048fa192
2017-02-01 12:41:25 -08:00
Julia Reynolds
48a9e264dc Merge "Check disqualifying notifications synchronously." 2017-02-01 20:25:16 +00:00
Julia Reynolds
986c32dafe Merge "Deprecate notification fields" 2017-02-01 20:24:24 +00:00
Phil Weaver
1f2b03a42a Merge "Correct accessibility check for current user" 2017-02-01 20:17:03 +00:00
TreeHugger Robot
e916e1741a Merge "Fix incorrect comments" 2017-02-01 20:14:04 +00:00
Julia Reynolds
27f4f4a57a Merge "Remove unneeded callbacks to systemui." 2017-02-01 20:03:52 +00:00
Adrian Roos
58c4d503b5 Merge "AOD: Fix in-place ambient layout updates" 2017-02-01 20:02:11 +00:00
Brad Ebinger
65b7857908 Merge "Turn off Dynamic IMS switching for now" am: 2bb0d95e91 am: 9f1ccbf5f9 am: cb8180033a
am: aca8a2a707

Change-Id: I2dc6102e9bd875603f26fcfb87ce34b1a72e1a23
2017-02-01 19:58:06 +00:00
Brad Ebinger
aca8a2a707 Merge "Turn off Dynamic IMS switching for now" am: 2bb0d95e91 am: 9f1ccbf5f9
am: cb8180033a

Change-Id: If5baf2ffc7b4010c6598ec730d48602b48738cc2
2017-02-01 19:53:27 +00:00
TreeHugger Robot
386405dbc5 Merge "Import translations. DO NOT MERGE" 2017-02-01 19:51:06 +00:00
Brad Ebinger
cb8180033a Merge "Turn off Dynamic IMS switching for now" am: 2bb0d95e91
am: 9f1ccbf5f9

Change-Id: If9be849f743e9722ca49543a92d33d09978dc6ce
2017-02-01 19:49:24 +00:00
Brad Ebinger
e3482c2601 Merge "Adds @hide permission granting API for ImsServices" am: 390ec27f9d am: 6734275c2f am: fa1dca0ad6
am: 3aaf673c60

Change-Id: I6a6a2d136f0f31bbac984e4ba18f9f6b90808705
2017-02-01 19:46:55 +00:00
Brad Ebinger
9f1ccbf5f9 Merge "Turn off Dynamic IMS switching for now"
am: 2bb0d95e91

Change-Id: Ie74b53ca5f0b6463b371368608c793d402878d50
2017-02-01 19:44:55 +00:00
Brad Ebinger
3aaf673c60 Merge "Adds @hide permission granting API for ImsServices" am: 390ec27f9d am: 6734275c2f
am: fa1dca0ad6

Change-Id: Id2875b5b60401405e31e76eb07968798144df700
2017-02-01 19:42:16 +00:00
Brad Ebinger
2bb0d95e91 Merge "Turn off Dynamic IMS switching for now" 2017-02-01 19:36:48 +00:00
Brad Ebinger
fa1dca0ad6 Merge "Adds @hide permission granting API for ImsServices" am: 390ec27f9d
am: 6734275c2f

Change-Id: I6d502db3362aafcfed426b6598be0bd39dd38890
2017-02-01 19:35:56 +00:00
Robert Carr
fd4c9891f3 Scale PiP to stack instead of crop.
When changing stacks the finalCrop or crop may not be set
so relying on either one for the scaling factor is error prone.
Just scale to the stack size. I initially avoided this because I
thought some of the crop code may be relevant in computing the size
we wan't...but I'm now pretty sure it won't.

Test: Expand PiP back to fullscreen on phone, verify no crash.
Change-Id: I172daade74bec7374b5fd3310c1bf554e46d8832
2017-02-01 11:32:33 -08:00
Brad Ebinger
6734275c2f Merge "Adds @hide permission granting API for ImsServices"
am: 390ec27f9d

Change-Id: I0f3d38811925884681d11cf18e12f1b0574d64c6
2017-02-01 19:30:41 +00:00
Treehugger Robot
390ec27f9d Merge "Adds @hide permission granting API for ImsServices" 2017-02-01 19:24:11 +00:00
TreeHugger Robot
7985f41871 Merge "Fixed NPE during monkey testing." 2017-02-01 19:18:18 +00:00
Winson Chung
14fbe141e0 Adding initial TRON logging for picture-in-picture.
Bug: 33756317
Test: Run PIP activity
Change-Id: Iad270dfdf6521d4659653a0697effaed4a0d4137
2017-02-01 11:12:30 -08:00
Winson Chung
bb348802d3 Disallow entering PiP when activity is locked.
- Also ensuring that when we request for a task to be locked
  via the shell, we directly set the locked state instead of
  relying on the SystemUI to show a prompt to lock (necessary
  for the CTS test to run).

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testDisallowEnterPipActivityLocked

Change-Id: Ice608e6d8e7f018dbd5e20ae457343bfdd0a8630
2017-02-01 11:12:06 -08:00
Winson Chung
4dabf2396f Preventing cases where an app can be stopped while entering PiP.
- Ensure that we clear the timeouts on the old stack and reschedule
  them on the new stack when moving an activity to a new stack,
  otherwise the pause timeout from the old stack will cause onStop()
  to be called.
- When adding an activity to the stopping list for processing, prevent
  scheduling an idle immediately in case an activity tries to enter
  picture-in-picture when handling onUserLeaveHint().  In that case,
  schedule an idle after the default idle delay instead.
- In addition, when resuming a resumeWhilePausing activity, prevent the
  activity idle to trigger pausing activities to be immediately put into
  a stopped state.  This was a race between the handling of pause/resume
  that would cause a pip activity to get onStop() even if it called enter
  pip on pause. Instead, when processing an idle from the activity or
  from an immediate idle scheduled by the system, we defer processing
  pausing activities until a later idle (that it reschedules).

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testEnterPipWithResumeWhilePausingActivityNoStop

Change-Id: I375369a800b7fadaa57d6e00e0564bc3ee338979
Signed-off-by: Winson Chung <winsonc@google.com>
2017-02-01 11:10:33 -08:00
Dennis Kempin
ac1b31da2b Disable touch slop for generated gesture events
This accounts for a special flag for gesture events generated by
InputFlinger. For these events we do not need a touch slop since we
can reliably tell that the intention is to scroll.

Bug: 31799135
Bug: 32944705
Test: None
Change-Id: Ibca8eaebca61bd4eb401708f5b19463c19c23309
(cherry picked from commit 8e07f0f91d8e6e8965faaaadc94b4bac18ba3310)
(cherry picked from commit 3e1b4218e6f0117e58a5452bcb725b105d32b528)
2017-02-01 11:06:44 -08:00
Felipe Leme
0200d9ea15 Improved AutoFill Save workflow.
Currently, the onProvideAutoFillStructure() methods can be called
twice: to auto-fill an activity and to save the activity's data
in the service.

The problem with this approach is that when the save workflow is
called, the activity might have been gone. Hence, a proper approach
is to keep the initial AssistStructure data in the system_service
memory, watch for view changes, and then passed the new structure
back to the AutoFillService.

A side effect of this change is that we need another way to determine
if the view is sanitized or not. For "standard" views, that will be
defined based on whether the view content come from a resource or not,
but that logic is not implemented yet (for now, all views will be
considered sanitized, except for TextView passwords). For "custom"
views (such as WebView), this logic is responsibility of the view
implementation, through the newChild() method, which now takes a
flag (whose value could be AUTO_FILL_FLAG_SANITIZED for sanitized
views).

The SaveCallback.onSuccess() method was simplified: it does
not need a list of saved ids anymore the auto-fill UI will not use it
anymore.

Another side effect is that the Save notification is gone - until
it's attached again, it can be test by using:

    adb shell cmd autofill save

Finally, hook AutoFillUI on ACTION_CLOSE_SYSTEM_DIALOGS events.

BUG: 33269702
BUG: 31001899
Test: manual verification
Test: CtsAutoFillServiceTestCases passes
Change-Id: I907a7e21d1b3cd1ab6dec3a08d144a52655da46f
2017-02-01 11:00:15 -08:00
Mario Bertschler
86882f4587 App Widget Service with dump in protobuf format
Test: This protobuf format is validated as a CTS test
Bug: 33088921
Change-Id: I9d2a983052ade06cd3a13857b7e7f9e3d9bc275e
2017-02-01 10:58:31 -08:00
Pierre Lecesne
8a7b4cb992 Backbone of the new aapt2 strip command.
The strip command takes an APK as argument and a --target-densities flag which
contains the list of screen densities for which to optimize the APK. All
the resources that would be unused for a device having the given
densities are stripped from the APK leaving only the ones actually being
used.

Test: Manual.

Change-Id: I68368b00876a18ccdbbfc0a8dd265bd361117933
2017-02-01 18:49:19 +00:00
Adam Powell
0621742d3c Fix setting null target fragments
Bug 34869013
Test: CTS

Change-Id: Ibeed66f9a889a8e395bfabedcf22aebcbb848908
2017-02-01 10:45:12 -08:00
Jean-Michel Trivi
6deaa4c8cf Merge "Notification playback synchronized with audio focus" 2017-02-01 18:43:36 +00:00
Steven Moreland
2f379ca7d9 Cleanup hwbinder getService code.
- Remove memory leaks.
- Make sure proper errors are getting thrown.
- Avoid SIGABRT

Test: hidl_test_java
Change-Id: Ia5680fd0ebf83d0f174bf0d8109bf60327be5f9d
2017-02-01 10:42:23 -08:00
Nimrod Gileadi
24e602a99b Merge "Add Wear keycodes to emulator key layout file. am: 119a06ce55 am: c85e503d52" into nyc-mr2-dev-plus-aosp
am: da5289b6ed

Change-Id: I34d2a4a3945579820af1c3fdb04da53b956bf665
2017-02-01 18:10:07 +00:00
Nimrod Gileadi
ba5f6308e0 Add Wear keycodes to emulator key layout file. am: 119a06ce55 am: c85e503d52
am: 0dea9e896f

Change-Id: I69418d80868e6cb27fcc82635150c47da03c3654
2017-02-01 18:10:00 +00:00
Nimrod Gileadi
2dac5c7212 Add Wear keycodes to emulator key layout file. am: 119a06ce55 am: 9576ce6696
am: 00620e70d5

Change-Id: Ie9e186901a6d846ee1417b1b1db9ed091e854b89
2017-02-01 18:08:49 +00:00
Anthony Chen
3cb3ad9998 Refactor notification to allow for overlay by Android Auto.
Android Auto requires different styling for notifications. In
particular:

- Background of scrim to be a different color
- Notification shade should always be full width
- No quick settings
- User switcher always visible
- Card styling, such as rounded corners and more spacing between items.
- Notification shade to be triggered from a button on the navigation
  bar.

Refactored different areas of the framework to allow for this. This
mostly means extending notification code and overriding methods where
appropriate.

Test: manually tested
Bug: 33487455
Change-Id: Ifcea70e121c1cbbeb057bb6ce8d351336ae41554
2017-02-01 10:05:07 -08:00
Android Build Merger (Role)
da5289b6ed Merge "Add Wear keycodes to emulator key layout file. am: 119a06ce55 am: c85e503d52" into nyc-mr2-dev-plus-aosp 2017-02-01 18:03:11 +00:00
Sergei Vasilinetc
40c509ff0f Merge "Call ActivityCallbacks after corresponding activity methods" 2017-02-01 18:02:34 +00:00
Nimrod Gileadi
0dea9e896f Add Wear keycodes to emulator key layout file. am: 119a06ce55
am: c85e503d52

Change-Id: I6840265835199d454d735e443fb53228c0ae2fd2
2017-02-01 18:02:17 +00:00
Nimrod Gileadi
00620e70d5 Add Wear keycodes to emulator key layout file. am: 119a06ce55
am: 9576ce6696

Change-Id: Ic10c9e353a264c60cef3dac79a2fc4b57eebb244
2017-02-01 18:01:45 +00:00
Romain Guy
91627f6170 Fix incorrect comments
Bug: 33010587
Test: comment only
Change-Id: Icdfa79bac50545bb73f4c40727fe51780ef4a56d
2017-02-01 09:59:02 -08:00
Nimrod Gileadi
9576ce6696 Add Wear keycodes to emulator key layout file.
am: 119a06ce55

Change-Id: I33d2b0f9b8281c22422677f03d6046a1be0bd94f
2017-02-01 17:57:16 +00:00
Nimrod Gileadi
c85e503d52 Add Wear keycodes to emulator key layout file.
am: 119a06ce55

Change-Id: Ieb06380c3bd43af7087463543960cc4ee1889050
2017-02-01 17:57:11 +00:00
fionaxu
015a2ede72 remove SIM_ACTIVATION_RESPONSE_CODE from sysapi
those response codes was introduced from N.
But only parts of the implementation was checked-in and has been
disabled since then. in O, we introduce the SimActivationTracker
inside telephonyFramework with a new set of activation status
which will replace those deprecated activation response code.

Bug: 31061369
Test: Manual
Change-Id: Idae5d7f6e76f36a60e602bf2ec48116b5748ca0f
2017-02-01 09:51:28 -08:00
Jerome Gaillard
584f563e5b Ignore justified in layoutlib for the moment
In Change Icbfab2fa, a new justified alignment for text is implemented.
We make layoutlib compatible with those changes without implementing
the new alignment.

Test: layoutlib tests
Change-Id: Ic8254f0f4b2915d654124874fee72c90fd8aa6c6
2017-02-01 17:12:02 +00:00
Bryce Lee
a99952c18d Merge "Revert "Allow opening activity to specify orientation."" 2017-02-01 17:11:34 +00:00
Bryce Lee
2fb7de3d51 Revert "Allow opening activity to specify orientation."
This reverts commit f0a6fdbf53.

Reason for revert: Submitted before complete.

Change-Id: I545ff45b5e870c79d66884b7a2a80981293b1b24
2017-02-01 17:09:18 +00:00
Bryce Lee
26dbff358c Merge "Allow opening activity to specify orientation." 2017-02-01 17:06:13 +00:00
Jerome Gaillard
0c37a9eafb Update Canvas_Delegate after Change I3edc963a
Test: layoutlib tests
Change-Id: I1f285c3baac267bd47324802c12b33d34f8b581f
2017-02-01 16:59:55 +00:00
Julia Reynolds
d94054f956 Check disqualifying notifications synchronously.
Don't wait to check on the handler.

Test: runtest systemui-notification and
platform_testing/tests/functional/notificationtests

Change-Id: Ife1ad8bc5c40420cd6682329b8135744cfe38e4a
2017-02-01 11:47:21 -05:00
TreeHugger Robot
451911ea3a Merge "Remove setDockedStackMinimized credentials prompt" 2017-02-01 16:42:24 +00:00
Ricky Wai
38bb832e7d Change "Long pressing work mode in quick settings" to managed profile settings
Test: Long pressing work mode can go to managed profile settings now.

Bug: 34189626
Change-Id: Ic2260aa9dbf9e42f7e3c532aca329d2ba3cd1421
2017-02-01 16:21:53 +00:00