Commit Graph

309538 Commits

Author SHA1 Message Date
Narayan Kamath
a352d2473a fd_utils: add missing logging for a couple of failure cases.
Also start using libbase style logging. Other log statements will
be converted in a follow up.

Test: make
Bug: 33579623
Change-Id: I34bb2ccab57e5bdd22aa35be8f8dcb68fdc4e097
2017-03-02 17:11:00 +00:00
Bryce Lee
7fbeb8a5d7 Remove mTask from AppWindowToken.
mTask was a duplicate reference to the WindowContainer's parent. The
main benefit of this refenrece was type, as its callers require an
instance of type Task.

With the introduction of the method getTask, we can shift away from
this variable and instead directly cast the parent here. If the
window hierarchy changes in the future (such as AppWindowToken parent
types not being Task), we can re-evaluate and adjust how task is
returned.

Test: manual
Change-Id: Idd6bba1121056ed79745911efe838edfa685bbf2
2017-03-02 09:07:50 -08:00
Charlie Tsai
3f7408fcd9 Merge "Add the test function for rectangle shadow" 2017-03-02 16:51:56 +00:00
Anton Philippov
deb244d3e5 Add more instrumentation to BackupManagerService
Test: manual
Change-Id: I41096b47f594c5254f499778bab996dfdfc13f66
2017-03-02 16:50:50 +00:00
Bryce Lee
aa5e8c3a29 Remove activity from task if not set properly.
We do not start an activity in the case of a lock task mode
violation. However, the activity is still associated with the task
and therefore participates in future interactions, such as
visibility checks.

This changelist addresses this issue by removing the assocation in
the case of failures.

Change-Id: Ibf7edd2bd4532de5e7f355311a808ffd21e542e3
Fixes: 35034729
Fixes: 35035258
Fixes: 34179495
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_deviceOwnerUser
2017-03-02 08:49:19 -08:00
TreeHugger Robot
d1c7bb771c Merge "JavaDoc improvements as suggested by API council." 2017-03-02 16:38:56 +00:00
Sunny Goyal
80af6a27fd Adding platform constants for various install reasons.
Bug: 33415829
Test: Not a  testable change
Change-Id: Ib0803e55f71a1c6b46e12b1a324db4e028a20529
2017-03-02 08:34:22 -08:00
Jason Monk
1eb3d839e2 Copy callback list to avoid crash
Change-Id: I66928a793a1712cdd753055a4d0457a94eb5588b
Fixes: 35591913
Test: Unlock ryu
2017-03-02 11:27:15 -05:00
Winson Chung
7466610e09 Resize task to fullscreen when moving from pinned stack.
- This was a regression in the original change to move the tasks to the
  fullscreen stack when the pinned stack was removed.  The task kept its
  old bounds, which causes the next animation into the PiP to not run
  since the stack bounds are taken from task bounds (which are the old
  pinned stack bounds)

Bug: 35326108
Test: run-test CtsServicesHostTestCases
Change-Id: I234910107cf62cc23b2d663161d250b9d59b3934
2017-03-02 08:14:17 -08:00
Jason Monk
28cc166060 Disable flaky test
Don't have a fix yet, disable to avoid any unwanted flakes.

Bug: 35866797
Test: runtest systemui
Change-Id: I8865253fbb58f619eb23d1c24c4370e819c58a29
2017-03-02 10:57:36 -05:00
Julia Reynolds
5a31193497 Allow translatable channel names.
Bug: 35336590
Test: runtest sytemui runtest systemui-notification, manual
Change-Id: I1e6ebbcc36cab22ab9b2dfde505a68513544ef52
2017-03-02 15:48:12 +00:00
TreeHugger Robot
c20082bd46 Merge "Change MaskableBitmap to AdaptiveBitmap Test: $ make dist -j30 b/35399620" 2017-03-02 15:15:43 +00:00
George Mount
0882330c39 Merge "Fix NPE when combining pop with add transaction." 2017-03-02 15:12:30 +00:00
Filip Pavlis
fd59645ba7 JavaDoc improvements as suggested by API council.
Bug: b/35813554
Test: Not needed.
Change-Id: I009497bab66c9cc624f434f6d2dde0d80381d961
2017-03-02 14:26:58 +00:00
Michal Karpinski
55e15bcc3a Use iterator to remove elements from collection when traversing it
Per Java documentation "Iterator.remove is the only safe way to
modify a collection during iteration; the behavior is unspecified
if the underlying collection is modified in any other way while
the iteration is in progress."

Test: updated gmscore to check that onPackageRemoved() works correctly
Bug: 35846264
Change-Id: I878e581db3bf60b9c6b2cf861f66d8b427202b02
2017-03-02 12:05:57 +00:00
Hugo Benichi
00a5f2a658 Merge "ConnectivityManager: no double NetworkCallback registration" am: 06a192fa49 am: 5983a772cb
am: 974e83cc0b

Change-Id: I73569fd084c14a78067e09565418f296994cd424
2017-03-02 08:12:09 +00:00
Hugo Benichi
974e83cc0b Merge "ConnectivityManager: no double NetworkCallback registration" am: 06a192fa49
am: 5983a772cb

Change-Id: Ic36fbd67d92df0d9f70fe26d6aee92ee782bfb3c
2017-03-02 08:08:01 +00:00
Hugo Benichi
5983a772cb Merge "ConnectivityManager: no double NetworkCallback registration"
am: 06a192fa49

Change-Id: I250fa7d3c5e37a66caa41cc898a44bcb18c9a0c4
2017-03-02 08:04:03 +00:00
Treehugger Robot
06a192fa49 Merge "ConnectivityManager: no double NetworkCallback registration" 2017-03-02 07:56:26 +00:00
Diego Perez
a624099635 Merge "Add perf tests to Main" 2017-03-02 07:42:16 +00:00
Jack Yu
af529a0372 Merge "Added two new RIL commands support" am: d7b60d7869 am: 01cfdb4f3a
am: b5d25274d7

Change-Id: I56789a3a56c7993fbfaf0fc3b8b76140fdb863e8
2017-03-02 06:52:35 +00:00
TreeHugger Robot
331a6f5cee Merge changes I0df55b11,I1cbeb477
* changes:
  Don't destroy preserved surfaces when cleaning up on resume.
  Don't limited pinned tasks to content area.
2017-03-02 06:22:06 +00:00
Hugo Benichi
faa70976b4 ConnectivityManager: no double NetworkCallback registration
Test: new test in ConnectivityManagerTest
Bug: 20701525
Change-Id: I205333d31d43e6e6c7fe704ce63b458065f345ce
2017-03-02 15:19:37 +09:00
Jack Yu
b5d25274d7 Merge "Added two new RIL commands support" am: d7b60d7869
am: 01cfdb4f3a

Change-Id: I40948d26d865336a31e6305012d828c6630e1e99
2017-03-02 06:18:13 +00:00
Jack Yu
01cfdb4f3a Merge "Added two new RIL commands support"
am: d7b60d7869

Change-Id: I28f1e0192db63a302daa69c2e6b13762fcbfb37b
2017-03-02 06:11:24 +00:00
Treehugger Robot
d7b60d7869 Merge "Added two new RIL commands support" 2017-03-02 06:02:20 +00:00
Elliott Hughes
c77001de51 Remove the name length limit for system properties.
Bug: http://b/33926793
Test: builds
Change-Id: Ib89b66b7abebc9a28961a0c9032b99947e3db0d6
2017-03-01 21:16:43 -08:00
TreeHugger Robot
e01e80a671 Merge "Added two new RIL commands support" 2017-03-02 04:59:01 +00:00
Bryce Lee
b85ec1c473 Merge "Clean up closing apps list when clearing anAppWindowToken's task." 2017-03-02 04:34:43 +00:00
Robert Carr
db2f6e6edf Don't destroy preserved surfaces when cleaning up on resume.
We clean up surfaces from apps which were stopping (mDestroying=true)
but not stopped when we resume, as described in commit 45e6d2d. The removal
of preserved surfaces was added earlier in eb66557 for a use case where
an app is stopped without an animation pass. It seems the clean up of preserved
surfaces on resume may be more coincidental than intentional, so let's try
disabling it! This fixes flicker at the end of the PiP animation when we use
preserved surfaces for switching in to fullscreen.

Bug: 35396882
Test: Move PiP to fullscreen. No flickers?
Change-Id: I0df55b11774c826027b0982fca7a28f4d8322d1d
2017-03-01 20:17:58 -08:00
Calin Juravle
07b6eabe79 Use DexManager logic to decide if a package is used by other apps
Stop relying on the file marker recorded by the runtime. We have the
same data available from the DexManager.

The clean up CL to remove the handling of the file markers will follow.

Test: verify that "shared packages" (e.g. gmscore) are not compiled with speed-profile.

Bug: 32871170
Change-Id: I6cc5834ac88489e69896cd5fba9ed9968aa7f5a2
2017-03-01 19:58:49 -08:00
TreeHugger Robot
9c47358b2c Merge "Improve dumpsys output for AlarmMAnager" 2017-03-02 03:42:46 +00:00
Robert Carr
e65a1c4fde Don't limited pinned tasks to content area.
During the pinned animation from fullscreen we
layout the window for as if it were fullscreen. However
this logic determines that we then overlap the content area
and unhelpfully tries to adjust us.

Test: Manual.
Change-Id: I1cbeb47731062f95c631e8cbd1f0601085d1762f
2017-03-01 19:35:52 -08:00
Jack Yu
1bab118bed Added two new RIL commands support
Added RIL_REQUEST_SEND_DEVICE_STATE and
RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER RIL requests support.

Test: telephony sanity tests
bug: 32223897, 20125037, 28294587

Merged-In: I148a4322dfab2d8d84faf6505fb89dfc290411e3
Change-Id: I148a4322dfab2d8d84faf6505fb89dfc290411e3
2017-03-02 03:29:07 +00:00
Jack Yu
da70ca69fd Added two new RIL commands support
Added RIL_REQUEST_SEND_DEVICE_STATE and
RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER RIL requests support.

Test: telephony sanity tests
bug: 32223897, 20125037, 28294587

Change-Id: I148a4322dfab2d8d84faf6505fb89dfc290411e3
2017-03-01 19:21:22 -08:00
David Christie
c4927db35a Merge "Create PackageManager.isInstantApp API to query whether a given package name is an instant app." 2017-03-02 03:18:05 +00:00
Elliott Hughes
7f7ae3f990 Merge "Basic javadoc for android.os.UpdateEngine." am: cbafc8d682 am: 91c1048bc7
am: 99cca40d29

Change-Id: If2513d4265890afc5bf95bb416c701ef66b74ea8
2017-03-02 03:15:10 +00:00
Elliott Hughes
99cca40d29 Merge "Basic javadoc for android.os.UpdateEngine." am: cbafc8d682
am: 91c1048bc7

Change-Id: I2130b49b61ee93ec79f1cd86f72fc98355bdc9cc
2017-03-02 03:07:33 +00:00
TreeHugger Robot
1bef83f613 Merge "Added inputType to Assist API." 2017-03-02 03:01:50 +00:00
Elliott Hughes
91c1048bc7 Merge "Basic javadoc for android.os.UpdateEngine."
am: cbafc8d682

Change-Id: I927f7e3014d7e27b4e003d2f4f4fdaa7ea0645c5
2017-03-02 03:01:34 +00:00
Elliott Hughes
cbafc8d682 Merge "Basic javadoc for android.os.UpdateEngine." 2017-03-02 02:52:09 +00:00
Steven Moreland
b2df16ae1a Merge "LightService: recover if light hal fails." 2017-03-02 02:21:25 +00:00
John Reck
00799f760d Fix NDK access to recycle'd bitmaps
Also kills off one user of GraphicsJNI.h!

Change-Id: Icbf979e485b3b6ec2f37e18ff654b8ff1e44fb35
Fixes: 34712423
Test: cts CtsGraphicsTestCases --test android.graphics.cts.BitmapTest#testNdkAccessAfterRecycle passes
2017-03-01 18:11:04 -08:00
Makoto Onuki
33955e10bb Improve dumpsys output for AlarmMAnager
Test: manual test with dumpsys alarm
Change-Id: I788be58d3cdc5e10045908b6d4501933b1603cb9
2017-03-01 18:11:00 -08:00
Fyodor Kupolov
be7febfd7d Merge "Log user running states" 2017-03-02 01:33:59 +00:00
Ray Essick
f0f6685eeb Javadoc for the recently added getMetrics()
Add javadoc comments for the getMetrics() functions that
we've added to android.media.Media{Codec,Extractor,Player}.
This describes the currently implemented functionality.

Bug: 35096098
Test: Compilation
2017-03-01 17:23:48 -08:00
TreeHugger Robot
85d0eee1a8 Merge "Fixed some issues with alert window notifications" 2017-03-02 01:04:56 +00:00
Sunny Goyal
4ad6b57700 Adding support for passing arbitrary extras when requesting to pin a widget.
Also defining an extra constant for widget preview which can be used by
developers to provide a snapshot of the widget with the pin request

Bug: 35811129
Test: All exisiting tests passing
 for f in 1 2 3 4 5 6 7 8 9 10; do \
   adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest$f \
      -w com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner; \
        done;

 adb shell am instrument -e class com.android.server.appwidget.AppWidgetServiceImplTest \
   -w com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: Id854bd28468a5bf0416ff1a1b19c44d850016f32
2017-03-01 16:58:21 -08:00
TreeHugger Robot
3f80513733 Merge changes Ic4370fa8,I81c43329,Ic563a8fe,I6d4be770,I858d1c95, ...
* changes:
  Fixed a bug where a wrong notification could be visible
  Fixed a bug where the icon would dissappear
  Continued low-priority group implementation
  Fixed an issue where the minimum height wasn't applied correctly
  Worked around a bug where the view could render blank
  Fixed another memory leak
  Creating the right views for low-priority group children
  Move the inflation away from the statusbar
2017-03-02 00:52:52 +00:00
George Mount
f05db56f24 Fix NPE when combining pop with add transaction.
Bug 35832085

When pop transactions and an add transaction are acting
in the same frame, optimized tranactions can work properly,
but unoptimized transactions have no guarantees. This fixes
a crash with unoptimized transactions so they will at least
not break.

Test: I996f54ae2540f31134e6a9a28870826a73ea1610
Change-Id: I3890dd30e9aff70f4ac142773de8479f1a9dffc8
2017-03-01 16:51:21 -08:00