231695 Commits

Author SHA1 Message Date
Narayan Kamath
6608a80fb3 Revert "FloatingToolbar: Fix orientation change handling."
This reverts commit a874e30959c9a19275ff3ce47ba6deda1955d094.

Change-Id: I8e61e4d1f4af8dea71f69babbe6224c01bb6c6ac
2016-02-01 13:40:43 +00:00
Erik Kline
1e91e4ebb6 Support static IP configuration internally
Also, stop passing around "reason" for IPv4 provision success
or failure.

Bug: 17345682
Change-Id: I4c4b22977a93048e0b291206721d0ccc77cfaaf2
2016-02-01 22:32:21 +09:00
Geoff Mendal
9eb94d7173 Import translations. DO NOT MERGE
Change-Id: I67ade5e23bfdea3b831bcdf4868456e27d735ff0
Auto-generated-cl: translation import
2016-02-01 05:18:12 -08:00
Sungsoo Lim
8e3fb58621 MediaBrowser: Minor fixes
- Change double spaces to a single space.
- Add IntDef annotation.
- Use a plural noun for 'flag'.
- Check parentId using TextUtils.isEmpty().

Change-Id: Ic268e543a60fbe281a4deaa24d4d9bde9c0bc22d
2016-02-01 21:54:52 +09:00
Abodunrinwa Toki
cc3fb7a463 Merge "FloatingToolbar: Fix orientation change handling." 2016-02-01 12:54:10 +00:00
Narayan Kamath
b368bb20a3 Merge "close file in PersistentDataBlockService jni" am: c71c44a524
am: 8e5a0d7da7

* commit '8e5a0d7da7f6df2c10d752b526a50ed4f5ade3fe':
  close file in PersistentDataBlockService jni
2016-02-01 11:42:45 +00:00
Narayan Kamath
8e5a0d7da7 Merge "close file in PersistentDataBlockService jni"
am: c71c44a524

* commit 'c71c44a524e3b5f1f6a9864a0f03b20acd153a6d':
  close file in PersistentDataBlockService jni
2016-02-01 11:38:27 +00:00
Narayan Kamath
c71c44a524 Merge "close file in PersistentDataBlockService jni" 2016-02-01 11:31:22 +00:00
Lianwei Wang
5c74bb313f close file in PersistentDataBlockService jni
The opened file should be closed.

Change-Id: I8a43b338c5c9eb0a5b1b5329eec767c6395bc7eb
Signed-off-by: Lianwei Wang <lianwei.wang@gmail.com>
2016-02-01 11:31:12 +00:00
Kenny Root
1c008de8db Track libcore change
Internal master also has test-current.txt which needs the new Java8 SNI
things added to it.

Change-Id: I36ad96ffc57cbcec4f0996e4f9dd390aff260017
2016-02-01 03:24:05 -08:00
Kenny Root
cdf8bc9449 Merge changes from topic \'sni\' am: c76789d35a
am: a849f1e430

* commit 'a849f1e4309e7624bdb3da7b443907cfd829a82e':
  Track libcore change
  Track libcore change
2016-02-01 11:09:20 +00:00
Kenny Root
a849f1e430 Merge changes from topic \'sni\'
am: c76789d35a

* commit 'c76789d35a7ca92c0b334cc6cf4a44a0044b2a44':
  Track libcore change
  Track libcore change
2016-02-01 11:05:01 +00:00
Kenny Root
c76789d35a Merge changes from topic 'sni'
* changes:
  Track libcore change
  Track libcore change
2016-02-01 10:58:14 +00:00
Kenny Root
779efda769 Track libcore change
This tracks libcore change I5972095a2b51da50249016fda11ed4c046af4211
which adds honor-cipher-suite-ordering API.

Change-Id: I7f17e42561c76b4c0a3f451d1126458480c90273
2016-02-01 02:55:34 -08:00
Kenny Root
542349a995 Track libcore change
This tracks libcore change I23b85308ac25fd00307d37cff1d93ee6c2bfba98
which adds SNI support.

Change-Id: I93d8a4b07cc1f599123565a5c0672dd7848f05bf
2016-02-01 02:55:17 -08:00
Rubin Xu
c3cd05f8a4 Add DevicePolicyManager APIs for process logging.
Add Device Owner APIs for controlling and retrieving the logs. Retrieving the
logs should be rate limited unless we are at the risk of losing logs due to
constrained buffer space.

Bug: 22860162
Change-Id: I80658f5a14e86d7cfd42402fbc5e98dc11698c0e
2016-02-01 10:28:24 +00:00
Clara Bayarri
6b6c5a2035 Make Notification Redaction independent for work profiles
Bug: 26709332
Change-Id: Ifc13c3c5a62110a3dfc44c2a02df9db11d92b431
2016-02-01 10:13:23 +00:00
Erik Kline
4cc9ef8c74 Initial refactoring to group IP-related elements into an IpManager
am: a636761bd6

* commit 'a636761bd67963385397ee920dcf76ec7cf113fb':
  Initial refactoring to group IP-related elements into an IpManager
2016-02-01 10:08:40 +00:00
Erik Kline
a636761bd6 Initial refactoring to group IP-related elements into an IpManager
Bug: 17345682
Change-Id: I88f3f4bd32d18cd8d4f1404493648c8bcc1deeec
2016-02-01 17:59:47 +09:00
Daichi Hirono
163e4b6ae8 Add launch notification for MTP devices.
The CL adds launch notification that are shown after MTP/PTP device is
connected to Android device. By tapping the notification, Users can
launch an applicaiton that can handle USB_DEVICE_ATTACHED intent of MTP
device.

BUG=26611224

Change-Id: I6fd179ccd436531dfff6ff9a50dc2b754c20f190
2016-02-01 13:28:01 +09:00
Tomasz Mikolajewski
7fa765a40e Merge "Cleanup copyDocument and moveDocument in SAF." 2016-02-01 00:17:30 +00:00
Michael Lentine
03d8f76836 Adding plumbing for passing the lib directory.
Added call in handleBindApplication which will pass the library path into
HardwareRender which then passes it to libvulkan through ThreadedRenderer's
jni interface.

Change-Id: I7dc1fec9c7a1566716a4501a0d5697ea94e57b53
2016-01-31 15:37:14 -06:00
Wale Ogunwale
14a79bd12a Merge changes I8d546487,Ib62d357f
* changes:
  Allow resizeableActivity to be specified at the application level
  Renamed manifest attributes initialWidth/Height to defaultWidth/Height
2016-01-31 20:02:45 +00:00
Wale Ogunwale
174d36d87a Merge "Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT" 2016-01-31 19:57:16 +00:00
Wale Ogunwale
1902169600 Merge "API council recommended changes to bounds APIs in ActivityOptions" 2016-01-31 19:51:37 +00:00
Casey Burkhardt
7ef48bec6f Update AccessibilityAction docs
Adds info to AccessibilityAction on how the class is typically used.
Also adds a warning to indicate a view must be important for accessibility
in order for the actions on a View to be discovered.

Change-Id: I5a48712e61a2411f331321142df4e5695e002de5
2016-01-31 11:51:09 -08:00
Wale Ogunwale
e0dacc11ad Allow activities without FLAG_ACTIVITY_NEW_TASK set to be home activities
Some callers can launch the home activity without setting
FLAG_ACTIVITY_NEW_TASK on the intent. When this occurred we were
putting a copy of the home activity in the application stack
which causes a few issues like the home activity showing up in
the recents list.
We now don't check the FLAG_ACTIVITY_NEW_TASK flag when determining
if the activity is a home activity is it meets all the other
requirements.

Bug: 26797267
Change-Id: I8176c6d9c27d26e9db6fa9f0f1a48e2e1388fb46
2016-01-31 11:43:25 -08:00
Wale Ogunwale
673cbd2b69 Improved logic for determining visiblility of activities in the home stack
- No other activity in the home stack should be visible behind the home
activity. Home activities is usually a translucent activity with the
wallpaper behind them. However, when they don't have the wallpaper
behind them, we want to show activities in the next application stack
behind them vs. another activity in the home stack like recents.

- We don't want any other activities in the home stack visible if the
recents activity is going to be returning to an application activity
type. We do this to preserve the visible order the user used to get
into the recents activity. The recents activity is normally
translucent and if it doesn't have the wallpaper behind it the next
activity in the home stack shouldn't be visible when the home stack
is brought to the front to display the recents activity from an app.

- Also fixed issue with not setting correct return type for tasks
when they don't have Intent.FLAG_ACTIVITY_TASK_ON_HOME flag set.

Bug: 26571156
Change-Id: I45ef795c6a19ab859e9f6204fb059e875ad798c5
2016-01-31 11:29:37 -08:00
Jeff Sharkey
a8b42780c2 Ignore null actions.
Bug: 26862905
Change-Id: I30a21e67b0f60ebca5eaccc843834059e52a6b78
2016-01-30 17:58:09 -07:00
Jeff Sharkey
634dc42c9e Throw when using deprecated file modes.
installd no longer grants o+x to private app data directories for
apps targeting N, so the long-deprecated MODE_WORLD_READABLE and
MODE_WORLD_WRITEABLE flags no longer have any effect, which may lead
to frustrating debugging sessions.

So to help clearly communicate that these flags no longer work, let's
throw when an app targeting N tries using them.

Bug: 26886867
Change-Id: I97dae6182fc3c55639ff37a39c4aae6dd0bed507
2016-01-30 17:48:32 -07:00
Jeff Sharkey
35871f2c2b Offer to migrate databases and SharedPreferences.
Databases and SharedPreferences often involve multiple files under
the hood, so developers wanting to migrate them between different
storage contexts should ask us to make sure all relevant files are
migrated correctly.

This makes a best-effort attempt to recover from battery pulls
during migration, while still trying to alert developers to
conflicting files.

Bug: 26668510, 25860525
Change-Id: I9ffa3e8cb6191dfd4237b9466a081d6d77df3ba0
2016-01-30 17:03:23 -07:00
Wale Ogunwale
a504ca3988 Made some changes to window caption APIs
As recommended by API council.

Bug: 26509365
Change-Id: I4efca89e2e14ffcf66ab8372f694e8bbf58d6fef
2016-01-30 16:02:13 -08:00
Aga Wronska
f6ede47b78 Merge "Hide action bar search icon in directories that do not support search operation." 2016-01-30 22:01:50 +00:00
Wale Ogunwale
6afdf91b17 Allow resizeableActivity to be specified at the application level
Makes it easier for developers to set a state for all their activities
vs. doing it individually.

Bug: 26508215
Change-Id: I8d546487b6461a03f75cce7760522e7af9fc2740
2016-01-30 13:01:33 -08:00
Wale Ogunwale
b12e1099ce Renamed manifest attributes initialWidth/Height to defaultWidth/Height
Per feedback from API council.

Bug: 26508215
Change-Id: Ib62d357f0e6309ad6f6305ba5ac376c5e3ab04e7
2016-01-30 12:24:44 -08:00
Filip Gruszczynski
89db4366ae Merge "Deliver onEnterAnimationComplete when there is no transition animation." 2016-01-30 19:36:30 +00:00
Wale Ogunwale
2a25a62739 Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT
Per feedback from API council.

Bug: 26508215
Change-Id: Id17166fe981587c9c16c382ccbdf0846ed2ae5d6
2016-01-30 11:27:21 -08:00
Stephen Hines
0ff759ccae Merge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API." am: 49aee686d8
am: c033f493f2

* commit 'c033f493f23574dc69bf8ecd0f04af8910b4a47e':
  Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API.
2016-01-30 17:57:30 +00:00
Stephen Hines
c033f493f2 Merge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API."
am: 49aee686d8

* commit '49aee686d8c1c888fd0dd2778c19d5968dae0252':
  Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API.
2016-01-30 17:52:28 +00:00
Jason Monk
96a34090c9 Merge "Fix rare crash in bt detail panel" 2016-01-30 17:52:14 +00:00
Jason Monk
c17d329825 Fix rare crash in bt detail panel
Since bond state is gotten directly from the bluetooth stack it is
possible it could change, and therefore change the number of devices
if pairing happens while the detail panel is updating.  Fix this by
just dropping them into a list.

Bug: 26258223
Change-Id: I7703520391798fd7c9ab097b0057b7b43b877212
2016-01-30 12:49:41 -05:00
Stephen Hines
49aee686d8 Merge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API." 2016-01-30 17:44:52 +00:00
Jason Monk
5c9637a9ea Fix nav bar clipping
Bug: 26782800
Change-Id: I7ba3db27aeee46800f6b7f9cd239ad529b281dd8
2016-01-30 12:40:47 -05:00
Wale Ogunwale
5122df094b API council recommended changes to bounds APIs in ActivityOptions
Bug: 26509660
Change-Id: Id90fbda0e15e83145ecc85c214b0ae5763fcc902
2016-01-29 22:33:38 -08:00
Aga Wronska
91c7fb3b83 Hide action bar search icon in directories that do not support search operation.
Bug:26593318
Change-Id: Ibb8945e6eba508aaaa55b1f666ac434f30b2aaaa
2016-01-29 18:47:23 -08:00
Hall Liu
f2301bcbbf Remove check for missing parent calls
Telecom now guarantees that when sending a conference call to an in-call
service, all children will be sent before any parents. Thus, it is
acceptable for children to temporarily have invalid references to
parent calls, but not vice versa.

Bug: 26818778
Change-Id: Id34e4c3a773e6f7c75be8c85ec2642cf05dabe0a
2016-01-29 18:41:14 -08:00
Winson Chung
650e3b70e4 Merge "Re-enabling fade-in of header bar icons." 2016-01-30 02:08:03 +00:00
Winson Chung
bbb3d3de3c Re-enabling fade-in of header bar icons.
This reverts commit 133ad44269e4b45e056793b579a7628aa4d91ccb.

Change-Id: I45095211aaa63b133ad5a4076df25823fa91efa3
2016-01-29 18:02:13 -08:00
Filip Gruszczynski
3b81c90efb Deliver onEnterAnimationComplete when there is no transition animation.
Documentation says that Activity.onEnterAnimationComplete() will be
called when it's safe to draw, so developers can wait for this callback
to do work. In certain cases we never trigger this callback: when the
screen is frozen and there is no transition animation and the window
just popups into existence. In that case we should forcefully schedule
this callback, so that it can be used reliably.

Bug: 24005761
Change-Id: I2c20ca9bc7fa15ca53d9d492ad1c3f5f9608e8c4
2016-01-29 17:38:51 -08:00
Chong Zhang
63ac65c5b9 Merge "Some fixes for saved surfaces" 2016-01-30 01:14:17 +00:00