OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Automatically open roots pane if default dir is empty." into nyc-dev
Steve McKay [Wed, 10 Feb 2016 02:28:12 +0000 (02:28 +0000)]
Merge "Automatically open roots pane if default dir is empty." into nyc-dev

8 years agoCheck parent existance when adding/removing documents.
Daichi Hirono [Sun, 7 Feb 2016 05:23:43 +0000 (14:23 +0900)]
Check parent existance when adding/removing documents.

BUG=26212981
Change-Id: I8109e2324c027ec2182c6f521d57f3fe078a8660
(cherry picked from commit df803ec6ebd47ddc7f97ea8ef13aa359ecc7fb95)

8 years agoFix flakiness of testFilesList_LiveUpdate.
Tomasz Mikolajewski [Mon, 8 Feb 2016 06:36:04 +0000 (15:36 +0900)]
Fix flakiness of testFilesList_LiveUpdate.

Change-Id: I87618d5640e2e17de3188554d561abc5f3a3152a
(cherry picked from commit 1008c2d4878abde1890560ef48eec229a4253445)

8 years agoMerge "Don't apply fancy back logic when drawer is not present." into nyc-dev
Steve McKay [Wed, 10 Feb 2016 02:00:37 +0000 (02:00 +0000)]
Merge "Don't apply fancy back logic when drawer is not present." into nyc-dev

8 years agoAdd Developer menu entry to disable Bluetooth absolute volume
Andre Eisenbach [Wed, 10 Feb 2016 01:28:58 +0000 (17:28 -0800)]
Add Developer menu entry to disable Bluetooth absolute volume

NOTE: Original CL updated: Developer-related settings in
res/values/strings.xml are now in SettingsLib .

Bug: 27078729
Change-Id: I499c420b1eb8cafd674cd69f29ed64f6126307f0

8 years agoFix build
Chulwoo Lee [Wed, 10 Feb 2016 01:42:32 +0000 (17:42 -0800)]
Fix build

Change-Id: I9498ecda9b05c7166faf9f648f0b61682a88c4da

8 years agoMerge "Encode/Decode genres using CSV" into nyc-dev
Chulwoo Lee [Wed, 10 Feb 2016 01:33:54 +0000 (01:33 +0000)]
Merge "Encode/Decode genres using CSV" into nyc-dev

8 years agoEncode/Decode genres using CSV
Chulwoo Lee [Tue, 9 Feb 2016 00:47:50 +0000 (16:47 -0800)]
Encode/Decode genres using CSV

Currently, the delimiter of genres is comma, but it is also used in the
broadcast genre, so we decided to encode the genre to CSV format.
Let's support only a simple CSV not a complex cases like fully double
quoted string to simplify the encode/decode method and encourage the
TIS to use these methods for broadcast genres.

Bug: 25241891
Change-Id: Id745d4fee43dbcdc508c0f6fad83477b6209ecd8

8 years agoMerge "Language list heading: add padding and make it bold [DO NOT MERGE]" into nyc-dev
Roozbeh Pournader [Wed, 10 Feb 2016 01:02:49 +0000 (01:02 +0000)]
Merge "Language list heading: add padding and make it bold [DO NOT MERGE]" into nyc-dev

8 years agoLanguage list heading: add padding and make it bold [DO NOT MERGE]
Mihai Nita [Fri, 5 Feb 2016 19:33:37 +0000 (11:33 -0800)]
Language list heading: add padding and make it bold [DO NOT MERGE]

This makes it consistent with heading labels used in other areas
of the Settings app.

Bug: 26758145
Change-Id: I9b66e97b5a0a8b0646e4b345b25b6d93178fc8e6
(cherry picked from commit 5d1e9977350b85828f3ba533f3bf9d17917a9977)

8 years agoFix Keyboard overlap with navigation bar
Jorim Jaggi [Tue, 9 Feb 2016 03:17:07 +0000 (19:17 -0800)]
Fix Keyboard overlap with navigation bar

FLAG_FULLSCREEN is really the wrong flag for determining whether
to subtract the window insets in the decore view and layout
it with a reduced size - FLAG_LAYOUT_IN_SCREEN suits these needs
much better.

Bug: 26014496
Bug: 26984057
Change-Id: I5c7a0fb7468d3981b91b23aa4c8b1e4841202131

8 years agoFix build
Chris Craik [Wed, 10 Feb 2016 00:32:32 +0000 (16:32 -0800)]
Fix build

Change-Id: I24d82c44db9d9e04098a0d7cb9289d6b9fc19e41

8 years agoAutomatically open roots pane if default dir is empty.
Steve McKay [Wed, 10 Feb 2016 00:17:24 +0000 (16:17 -0800)]
Automatically open roots pane if default dir is empty.

Move drawer fiddling out of DirectoryFragment into respective
    FragmentTuner instance.

Bug: 27084308
Change-Id: Ia13fc2be1442e1a7164c2d67ea6ce4bcfda68bcc

8 years agoMerge "Further improvement to determining visiblility of tasks in home stack." into...
Wale Ogunwale [Wed, 10 Feb 2016 00:19:41 +0000 (00:19 +0000)]
Merge "Further improvement to determining visiblility of tasks in home stack." into nyc-dev

8 years agoMerge "Reduce jank during pinned stack animation" into nyc-dev
Wale Ogunwale [Wed, 10 Feb 2016 00:11:10 +0000 (00:11 +0000)]
Merge "Reduce jank during pinned stack animation" into nyc-dev

8 years agoMerge "Go to root from child directory when root tapped. Bug: 27060001" into nyc-dev
Aga Wronska [Tue, 9 Feb 2016 23:58:42 +0000 (23:58 +0000)]
Merge "Go to root  from child directory when root tapped. Bug: 27060001" into nyc-dev

8 years agoMerge "Implement PgUp/PgDn support. (cherry-pick DO NOT MERGE)" into nyc-dev
Ben Kwa [Tue, 9 Feb 2016 23:37:32 +0000 (23:37 +0000)]
Merge "Implement PgUp/PgDn support.  (cherry-pick DO NOT MERGE)" into nyc-dev

8 years agoMerge "Handle null list from getPackagesForOps" into nyc-dev
Tony Mantler [Tue, 9 Feb 2016 23:30:20 +0000 (23:30 +0000)]
Merge "Handle null list from getPackagesForOps" into nyc-dev

8 years agoHandle null list from getPackagesForOps
Tony Mantler [Tue, 9 Feb 2016 22:12:43 +0000 (14:12 -0800)]
Handle null list from getPackagesForOps

b/27101914

Change-Id: I468da1a0f38f78e1cd7fec50e3bc78cec6fd2771

8 years agoMerge "Calculate clip bounds correctly when serializing" into nyc-dev
Chris Craik [Tue, 9 Feb 2016 23:04:53 +0000 (23:04 +0000)]
Merge "Calculate clip bounds correctly when serializing" into nyc-dev

8 years agoMerge "More encryption-aware triaging." into nyc-dev
Jeff Sharkey [Tue, 9 Feb 2016 23:00:54 +0000 (23:00 +0000)]
Merge "More encryption-aware triaging." into nyc-dev

8 years agoMerge "Add attestation API to Android KeyStore." into nyc-dev
Shawn Willden [Tue, 9 Feb 2016 22:57:23 +0000 (22:57 +0000)]
Merge "Add attestation API to Android KeyStore." into nyc-dev

8 years agoMore encryption-aware triaging.
Jeff Sharkey [Tue, 9 Feb 2016 22:56:11 +0000 (15:56 -0700)]
More encryption-aware triaging.

Most of these callers are okay having results omitted when a package
is uninstalled or encryption unaware.  For example, jobs and
notifications can only be enqueued by already running apps.

When clearing zen rules, keep around rules inserted by apps on
ejected external storage devices.

Make ServiceWatcher stricter by requiring that the matching package
be in the system image.

Bug: 2647120527105254
Change-Id: Ie41ea8042ac1a54e9cbe0c35cec89e70521e9bed

8 years agoDon't apply fancy back logic when drawer is not present.
Steve McKay [Tue, 9 Feb 2016 20:40:07 +0000 (12:40 -0800)]
Don't apply fancy back logic when drawer is not present.

Add test coverage. Booya!

Bug: 27078649
Change-Id: Id2ce53009ee212b3af8d143091859d30e2bc76b1

8 years agoMerge "Make ServiceWatcher encryption-aware." into nyc-dev
Jeff Sharkey [Tue, 9 Feb 2016 21:59:03 +0000 (21:59 +0000)]
Merge "Make ServiceWatcher encryption-aware." into nyc-dev

8 years agoMerge "Make InputMethodInfo#isEncryptionAware() strict." into nyc-dev
Yohei Yukawa [Tue, 9 Feb 2016 21:48:33 +0000 (21:48 +0000)]
Merge "Make InputMethodInfo#isEncryptionAware() strict." into nyc-dev

8 years agoMake InputMethodInfo#isEncryptionAware() strict.
Yohei Yukawa [Tue, 9 Feb 2016 21:39:50 +0000 (13:39 -0800)]
Make InputMethodInfo#isEncryptionAware() strict.

This is a follow up CL to the previous CL [1], which unintentionally
relied on whether the entire application rather than the
InputMethodService is marked to be encryption-aware.  This wasn't
obvious because right now LatinIME is entirely marked to be
encryption-aware, which probably needs to be reconsidered in subsequent
CLs.

This CL drops "encryptionAware" line from InputMethodInfo#dump() as it
is redundant.  The same information is already dumped in the
'ServiceInfo' section.

 [1] Icf921fe3661eccf4a589b08b616d05decc561356
     69811a98f161a04af8e8ec9978c3a5efe1ea0f29

Bug: 26279466
Change-Id: I6cea5fe5731f4a6a64ea722b854b99c5154a15ae

8 years agoMerge "Delete only the target user" into nyc-dev
Svetoslav Ganov [Tue, 9 Feb 2016 20:54:29 +0000 (20:54 +0000)]
Merge "Delete only the target user" into nyc-dev

8 years agoDelete only the target user
Svetoslav Ganov [Tue, 9 Feb 2016 20:50:49 +0000 (12:50 -0800)]
Delete only the target user

bug:27094971

Change-Id: I5b43d59ff6edeefc0e05a6ec90d04d388e707c29

8 years agoReduce jank during pinned stack animation
Wale Ogunwale [Sat, 6 Feb 2016 21:58:29 +0000 (13:58 -0800)]
Reduce jank during pinned stack animation

- Don’t launch Pip overlay activities during pinned stack animation.
This causes extra CPU load and takes a way resources from the running
animation.
- Finish Pip overlay activities before starting pinned stack resize
animation. Reduces the amount of work the system needs to do to keep
the overlays in-sync with the other activities in the pinned stack.
- Use AM.resizeStack with null bounds to take Pip to fullscreen so that
we can animate the bounds changed.
- Also, fixed Activity.enterPictureInPicture API to animate the transition
if Pip is entered from the app instead of Pip manager.

Bug: 25672053
Change-Id: I82399c10f1b8c675ea3861ba973dc8ecfbfbe50f

8 years agoAAPT2: Switch to protobuf for intermediate format
Adam Lesinski [Thu, 4 Feb 2016 23:59:23 +0000 (15:59 -0800)]
AAPT2: Switch to protobuf for intermediate format

Without needing to conform to the runtime data format,
it is much easier to add new features such as debugging symbols
and carrying over product data to link time.

This also simplifies the runtime format parser and serializer,
which will change much less frequently than the protobuf intermediate
format.

Change-Id: I209787bbf087db0a58a534cb8511c51d21133e00

8 years agoMerge "Importance slider logging." into nyc-dev
Julia Reynolds [Tue, 9 Feb 2016 19:58:32 +0000 (19:58 +0000)]
Merge "Importance slider logging." into nyc-dev

8 years agoMerge "Use Context#createConfigurationContext()." into nyc-dev
Yohei Yukawa [Tue, 9 Feb 2016 19:56:58 +0000 (19:56 +0000)]
Merge "Use Context#createConfigurationContext()." into nyc-dev

8 years agoMerge changes Icf921fe3,Ie1a8ee22 into nyc-dev
Yohei Yukawa [Tue, 9 Feb 2016 19:49:19 +0000 (19:49 +0000)]
Merge changes Icf921fe3,Ie1a8ee22 into nyc-dev

* changes:
  Add a utility method to InputMethodInfo for FBE.
  Fix style issues in InputMethodInfo.java.

8 years agoMerge "Add RSN Information Element ID" into mm-wireless-dev
Randy Pan [Tue, 9 Feb 2016 19:32:18 +0000 (19:32 +0000)]
Merge "Add RSN Information Element ID" into mm-wireless-dev
am: 2750b41d0b

* commit '2750b41d0b50eb66c8aada11d62666f934ca950d':
  Add RSN Information Element ID

8 years agoMerge "Fix a crash in SystemUI when using CarNavigationBar." into nyc-dev
Rakesh Iyer [Tue, 9 Feb 2016 19:28:36 +0000 (19:28 +0000)]
Merge "Fix a crash in SystemUI when using CarNavigationBar." into nyc-dev

8 years agoMerge "Removed the notification scroller top stack" into nyc-dev
Selim Cinek [Tue, 9 Feb 2016 19:25:04 +0000 (19:25 +0000)]
Merge "Removed the notification scroller top stack" into nyc-dev

8 years agoMerge "Add RSN Information Element ID" into mm-wireless-dev
Randy Pan [Tue, 9 Feb 2016 19:13:32 +0000 (19:13 +0000)]
Merge "Add RSN Information Element ID" into mm-wireless-dev

8 years agoMerge "Update documentation for offset and size" into nyc-dev
Glenn Kasten [Tue, 9 Feb 2016 19:06:22 +0000 (19:06 +0000)]
Merge "Update documentation for offset and size" into nyc-dev

8 years agoMerge "updates to FrameStatsObserver API" into nyc-dev
Andres Morales [Tue, 9 Feb 2016 19:00:31 +0000 (19:00 +0000)]
Merge "updates to FrameStatsObserver API" into nyc-dev

8 years agoFix build break
Selim Gurun [Tue, 9 Feb 2016 18:55:33 +0000 (10:55 -0800)]
Fix build break

Bug: 26874366
Change-Id: Ic7634cb9d823d4f74d2893f4c46a77a5af02a0a1

8 years agoFix a crash in SystemUI when using CarNavigationBar.
Rakesh Iyer [Tue, 9 Feb 2016 18:51:50 +0000 (10:51 -0800)]
Fix a crash in SystemUI when using CarNavigationBar.

CarNavigationBar overrides getCurrentView() in phone NavigationBarView
but the dump() method in NavigationBarView uses mCurrentView directly,
which may be null in the auto case. Callign getCurrentView() returns
the correct overriden view.

This patch makes the change to dump() to use getCurrentView().

Bug: 27046536
Change-Id: I92e5655325247d27faac1e33d8622783652bdb10

8 years agoUpdate documentation for offset and size
Glenn Kasten [Sat, 31 Oct 2015 01:25:38 +0000 (18:25 -0700)]
Update documentation for offset and size

Change-Id: Id9d5ef62767155cc8597795b43c4422f623574ed

8 years agoupdates to FrameStatsObserver API
Andres Morales [Wed, 3 Feb 2016 00:19:40 +0000 (16:19 -0800)]
updates to FrameStatsObserver API

- Rename to FrameMetrics to avoid collision with existing
  android.view.FrameStats class
- Make FrameMetricsObserver implementation detail,
  exposing FrameMetricsListener interface as public API
  and wrapping in FrameStatsObserver to maintain state
- Remove dropped frame count call, in favor of passing as
  parameter to callback method.
- Move away from raw timestamp access in favor of Metric IDs
  which represent higher-level, more stable stages in a frame
  lifecycle and match the categories exposed in the onscreen
  bars.
- Support many-to-many Window<->FrameMetricsListener relationship

Change-Id: I00e741d664d4c868b1b6d0131a23f8316bd8c5c2

8 years agoRelax mapping rule to make the mapping logic simple.
Daichi Hirono [Sun, 7 Feb 2016 04:20:22 +0000 (13:20 +0900)]
Relax mapping rule to make the mapping logic simple.

MtpDocumentsProvider remembers the mapping between SAF's ID and MTP's
ID. Sometimes we need to do heuristic to restore the mapping when MTP
device is reconnected.

Previously we do the mapping files that shares the same name more
strictly. For example,

1. Found file name "test.txt". Assign document ID "1".
2. MTP device is disconnected and the MTP ID of "1" is lost.
3. Found two files that have same name "test.txt" in the same directory.

Previously we don't reuse existing document ID "1" for neither of two
"test.txt" because it's not 1-to-1 mapping and we cannot determine which
one should be mapped with existing document ID. It means we need the
complete list of files in a directory to remap IDs. It takes long time
to fetch all file names in a directory when a directory has 100+
files. It's rare that a MTP device has the two files sharing the same
name in the same directory. Also the strict rule makes the mapping code
more complex.

The CL relax the rule of mapping, and it allows to reuse existing
document ID even if it is not 1-to-1 mapping. For the previous example,
it assigns "1" for either of "test.txt".

BUG=27053734
Change-Id: I19406fafc21f13ab94ba99411ce5e7f55ce7f658
(cherry picked from commit acdbc6e740ffbd465488b6eb0cf9388d43ae860a)

8 years agoMerge "Introduce a use32bitAbi flag" into nyc-dev
Selim Gurun [Tue, 9 Feb 2016 18:32:27 +0000 (18:32 +0000)]
Merge "Introduce a use32bitAbi flag" into nyc-dev

8 years agoMerge "Update TelecomManager docs regarding PhoneAccounts" into nyc-dev
Brad Ebinger [Tue, 9 Feb 2016 18:26:26 +0000 (18:26 +0000)]
Merge "Update TelecomManager docs regarding PhoneAccounts" into nyc-dev

8 years agoMerge "WifiEnterpriseConfig: allow getting and setting of ca_path" into mm-wireless-dev
Samuel Tan [Tue, 9 Feb 2016 18:23:43 +0000 (18:23 +0000)]
Merge "WifiEnterpriseConfig: allow getting and setting of ca_path" into mm-wireless-dev
am: 8629390701

* commit '8629390701efe0ed74730a06ab2fc868a7ca265d':
  WifiEnterpriseConfig: allow getting and setting of ca_path

8 years agoIntroduce a use32bitAbi flag
Selim Gurun [Sat, 6 Feb 2016 01:50:53 +0000 (17:50 -0800)]
Introduce a use32bitAbi flag

Bug: 26874366

On Multiarch apps, it might be necessary to prioritize 32bit Abi ahead
of 64bit ones. The use32bitAbi flag enables this.

This CL also reverts the public api changes in  I2c1fd1d036efe72b28b5fe996416df69a583959f and Ie3ecea6d84e2cb1522e736a21c3a3a24ac62eb27. Previously
the same functionality was provided using a raw abi string that
utilized cpuabioverride flag.

Change-Id: Idce3cbfedd11ef9079ce8a2901e69d30b1cf9ef4

8 years agoMerge "WifiEnterpriseConfig: allow getting and setting of ca_path" into mm-wireless-dev
Samuel Tan [Tue, 9 Feb 2016 18:18:04 +0000 (18:18 +0000)]
Merge "WifiEnterpriseConfig: allow getting and setting of ca_path" into mm-wireless-dev

8 years agoMake ACTION_RADIO_OFF protected
Pavel Zhamaitsiak [Mon, 1 Feb 2016 20:04:44 +0000 (12:04 -0800)]
Make ACTION_RADIO_OFF protected

Bug: 25113145
Change-Id: Idcb88cb1fd06d4761ef1f634136f8ec697bf0851
(cherry picked from commit ae6688ca5d2b506eff29ba27c7532513f2da7da8)

8 years agoImportance slider logging.
Julia Reynolds [Tue, 9 Feb 2016 17:57:02 +0000 (12:57 -0500)]
Importance slider logging.

Change-Id: I3c4ad73d1460e4d28cb1a10846159128590d2b20

8 years agoImplement PgUp/PgDn support. (cherry-pick DO NOT MERGE)
Ben Kwa [Wed, 3 Feb 2016 07:00:02 +0000 (23:00 -0800)]
Implement PgUp/PgDn support.  (cherry-pick DO NOT MERGE)

- Clean up our LayoutManager code.  We actually only need a single
  layout manager, since a GridLayoutManager is a LinearLayoutManager,
  and list layout is simply grid layout with one column.  Make it so.

- Use the layout manager to compute item offsets for one page's worth of
  items.  Use that to implement page up/page down.

BUG=25195770

Change-Id: I23ddd5fd38532682e7f099b44e188d8c3fec02be
(cherry picked from commit 4d4bf9a21a16bae3497f94dbb558a2ede9d989ee)

8 years agoMerge "don't allow assistant to block notifications." into nyc-dev
Chris Wren [Tue, 9 Feb 2016 17:49:43 +0000 (17:49 +0000)]
Merge "don't allow assistant to block notifications." into nyc-dev

8 years agoMerge changes I1eda3134,Ia7ad36a3 into nyc-dev
Winson Chung [Tue, 9 Feb 2016 17:45:04 +0000 (17:45 +0000)]
Merge changes I1eda3134,Ia7ad36a3 into nyc-dev

* changes:
  Updating paging animation to spec.
  Adding logging for timeout and other features.

8 years agoMerge "Whitelist camera permission for SetupWizard" into nyc-dev
Steven Ng [Tue, 9 Feb 2016 17:32:00 +0000 (17:32 +0000)]
Merge "Whitelist camera permission for SetupWizard" into nyc-dev

8 years agoMerge "Fixed bad auto-generated method name." into mm-wireless-dev
Jan Nordqvist [Tue, 9 Feb 2016 17:28:33 +0000 (17:28 +0000)]
Merge "Fixed bad auto-generated method name." into mm-wireless-dev
am: cf132a1bbc

* commit 'cf132a1bbc676489cfa757317edf8af90c10a105':
  Fixed bad auto-generated method name.

8 years agoMerge "Fixed bad auto-generated method name." into mm-wireless-dev
Jan Nordqvist [Tue, 9 Feb 2016 17:24:20 +0000 (17:24 +0000)]
Merge "Fixed bad auto-generated method name." into mm-wireless-dev

8 years agoMerge "Clean up UiAutomation working alongside a11y." into nyc-dev
Phil Weaver [Tue, 9 Feb 2016 16:59:25 +0000 (16:59 +0000)]
Merge "Clean up UiAutomation working alongside a11y." into nyc-dev

8 years agodon't allow assistant to block notifications.
Chris Wren [Tue, 9 Feb 2016 16:25:08 +0000 (11:25 -0500)]
don't allow assistant to block notifications.

Bug: 26640716
Change-Id: I5c7b691ff664e8dafd39bf15cb1556731df2b0b9

8 years agoMerge "Fix dumpsys meminfo -c output." into nyc-dev
Martijn Coenen [Tue, 9 Feb 2016 13:33:44 +0000 (13:33 +0000)]
Merge "Fix dumpsys meminfo -c output." into nyc-dev

8 years agoAdd java.util.function APIs
Neil Fuller [Tue, 19 Jan 2016 00:43:38 +0000 (16:43 -0800)]
Add java.util.function APIs

Bug: 26814204
(cherry picked from commit 311a97e7f41c494bc355f5d77adc276e2a400970)

Change-Id: I3fab2b12676bd1460553b4cb45b1ff602f6c09c1

8 years agoCleanup sliding animation between directories.
Tomasz Mikolajewski [Mon, 8 Feb 2016 09:08:18 +0000 (18:08 +0900)]
Cleanup sliding animation between directories.

The shadow is restored + redundant fade removed.

Bug: 26986946
Change-Id: I31dde7d03f60be470e1c5e06dcdce828d3e4eaa0
(cherry picked from commit 3134ddf99d4215041ed749f3b4e682a1910d208e)

8 years agoFix animation for the empty cabinet, also make other animations less jarring.
Tomasz Mikolajewski [Mon, 8 Feb 2016 08:42:51 +0000 (17:42 +0900)]
Fix animation for the empty cabinet, also make other animations less jarring.

Setting android:animateLayoutChanges=true was causing flickering and problems
with sliding the cabinet while a fragment transition was already in progress.

Bug: 27060052
Bug: 26952361
Change-Id: I17e5f8b57d63cd9a586fc70ae43e030c4f232e8d
(cherry picked from commit ed82fd784301c645cb665517edc3006888d6f237)

8 years agoRemove temporary test fixes.
Tomasz Mikolajewski [Mon, 8 Feb 2016 06:05:24 +0000 (15:05 +0900)]
Remove temporary test fixes.

The tests should fail, as the features are broken.

Change-Id: Ib760ba5469164b8ca0d08c57f24273268ae2436f
(cherry picked from commit 94eca73fec7aa1857f5847df355877d523d0c8a6)

8 years agoMerge "Migrate all tests to ActivityTest." into nyc-dev
Tomasz Mikolajewski [Tue, 9 Feb 2016 09:12:13 +0000 (09:12 +0000)]
Merge "Migrate all tests to ActivityTest." into nyc-dev

8 years agoAdd a utility method to InputMethodInfo for FBE.
Yohei Yukawa [Mon, 8 Feb 2016 22:05:27 +0000 (14:05 -0800)]
Add a utility method to InputMethodInfo for FBE.

This is another preparation for Bug 26279466.  Whether an input method
is marked to be encryption-aware or not would become the thing here and
there in the Framework code.  Having a utility method and debug info
in dumpsys should make our lives easier.

Bug: 26279466
Change-Id: Icf921fe3661eccf4a589b08b616d05decc561356

8 years agoFix style issues in InputMethodInfo.java.
Yohei Yukawa [Mon, 8 Feb 2016 21:57:15 +0000 (13:57 -0800)]
Fix style issues in InputMethodInfo.java.

This has nothing to do with Bug 26279466 but might be something nice to
fix just as a preparation.

Bug: 26279466
Change-Id: Ie1a8ee2248081a70728c29e52c657b3a0ed919b1

8 years agoUse Context#createConfigurationContext().
Yohei Yukawa [Tue, 9 Feb 2016 07:21:37 +0000 (23:21 -0800)]
Use Context#createConfigurationContext().

Nothing is changed in the test expectations.
Major changes in this CL are:

  1. To obtain a custom context with the given locale,
     Context#createConfigurationContext() is the way to go.
     Modifying any internal state of the resource that is owned by the
     context is not supported at all.
  2. As a preparation to test cases where multiple locales are specified
     in the system settings, unit tests need to switch to
     Confituration#setLocales(LocaleList).

Bug: 27076327
Change-Id: I6caa76627677c7625a1c42d76a275f67ae65a9b2

8 years agoTIF: Fix the unresolved link to #stopRecording()
Jae Seo [Tue, 9 Feb 2016 03:24:12 +0000 (19:24 -0800)]
TIF: Fix the unresolved link to #stopRecording()

Change-Id: Ifa5aeb7c6f1d8210650a1d276872aa4e22d5ffa3

8 years agoMerge "TIF: Allow the application to indicate a TV program to record" into nyc-dev
Jae Seo [Tue, 9 Feb 2016 02:14:11 +0000 (02:14 +0000)]
Merge "TIF: Allow the application to indicate a TV program to record" into nyc-dev

8 years agoMake ServiceWatcher encryption-aware.
Jeff Sharkey [Tue, 9 Feb 2016 00:49:17 +0000 (17:49 -0700)]
Make ServiceWatcher encryption-aware.

This utility class automates the process of binding to the best
matching service, including rebinding as packages change over time.

This design means it's easy to become encryption-aware: we use the
default PackageManager behavior that filters components based on
their encryption-aware status, and we just kick off another
evaluation pass once the user is unlocked.

This change cleans up some of the internal logic so we only rebind
when the implementation switches, and it fixes several bugs along
the way.  For example, we would never trigger a rebind if a service
was refactored to a different ComponentName.  Another subtle bug was
that we'd never fallback to an older implementation if a higher
version was uninstalled/disabled.  And finally, if all implementations
were uninstalled/disabled, we'd leave the last connection bound.

Bug: 26280056
Change-Id: I259af78e6564d61353a772ac03cf5799a398d535

8 years agoMerge "Put dismiss end target at navigation bar" into nyc-dev
Jorim Jaggi [Tue, 9 Feb 2016 01:56:23 +0000 (01:56 +0000)]
Merge "Put dismiss end target at navigation bar" into nyc-dev

8 years agoMigrate all tests to ActivityTest.
Tomasz Mikolajewski [Thu, 4 Feb 2016 08:46:35 +0000 (17:46 +0900)]
Migrate all tests to ActivityTest.

ActivityInstrumentationTestCase2 takes care of starting and closing
the activity, which prevents flakyness.

Change-Id: I2d3908f6605a67a3c2d11e18a9c4799443828df9
(cherry picked from commit e366886c7d91b62fe1478a057fc4c0a104d12b02)

8 years agoCalculate clip bounds correctly when serializing
Chris Craik [Tue, 9 Feb 2016 01:27:04 +0000 (17:27 -0800)]
Calculate clip bounds correctly when serializing

bug:26585671

Change-Id: Ic70769bce6fa2a7b65cb893ba4a45c65fdc0b7e3

8 years agoMerge "Enable RTT Responder Role (1/4)." into mm-wireless-dev
Wei Wang [Tue, 9 Feb 2016 01:14:34 +0000 (01:14 +0000)]
Merge "Enable RTT Responder Role (1/4)." into mm-wireless-dev
am: 03a6b18350

* commit '03a6b1835060b6c2082ea231fb1ad539aefd916e':
  Enable RTT Responder Role (1/4).

8 years agoUpdating paging animation to spec.
Winson [Fri, 5 Feb 2016 23:40:29 +0000 (15:40 -0800)]
Updating paging animation to spec.

- To handle the specific animation spec, we just animate the views
  manually instead of animating the stack scroll (like how we do when
  swiping to dismiss)
- Fixing a regression in settings the initial focused index when
  alt-tabbing
- Minor tweak to make the front most task smaller when in the initial
  non-paging mode

Change-Id: Ic5fd54500fd8ce8284c7aaeddb102b2291bcecac

Signed-off-by: Winson <winsonc@google.com>
8 years agoAdding logging for timeout and other features.
Winson [Fri, 5 Feb 2016 18:39:46 +0000 (10:39 -0800)]
Adding logging for timeout and other features.

Change-Id: Ife9fca1a2ced08c6cbd38ab55d9ea878928de439

Signed-off-by: Winson <winsonc@google.com>
8 years agoMerge "Enable RTT Responder Role (1/4)." into mm-wireless-dev
Wei Wang [Tue, 9 Feb 2016 01:07:33 +0000 (01:07 +0000)]
Merge "Enable RTT Responder Role (1/4)." into mm-wireless-dev

8 years agoMerge "Clean up accessibility gestures." into nyc-dev
Phil Weaver [Tue, 9 Feb 2016 01:00:17 +0000 (01:00 +0000)]
Merge "Clean up accessibility gestures." into nyc-dev

8 years agoFix vector "right arrow" drawable to be properly 24dp.
Oren Blasberg [Mon, 8 Feb 2016 23:17:07 +0000 (15:17 -0800)]
Fix vector "right arrow" drawable to be properly 24dp.

This drawable is used for cascading menus. It was 25dp on one dimension
before, for some reason. I verified it looks fine at 24x24.

Change-Id: Iff5d4f00655d77830d9492190b1a74ef6f408f47
(cherry picked from commit c007e91cc0519adeb4ff35e9e8c436231c2be822)

8 years agoPut dismiss end target at navigation bar
Jorim Jaggi [Thu, 4 Feb 2016 06:04:22 +0000 (22:04 -0800)]
Put dismiss end target at navigation bar

This makes the animation when exiting docked mode a bit nicer
when you fling the divider towards to the navigation bar. However,
since the divider ends at the navigation bar, we need to immediately
dismiss it instead of fading out when the divider is fully occluded
by the navigation bar.

Change-Id: Ic5432fd118cb71be36485667b2c537caf5065ce5

8 years agoClean up accessibility gestures.
Phil Weaver [Tue, 2 Feb 2016 22:47:44 +0000 (14:47 -0800)]
Clean up accessibility gestures.

Closing two small holes in the implementation:
1. The gesture was dispatched before the callback was registered. It
was possible for gestures that failed quickly to fail to report any
status.
2. Gestures could be dispatched before the input filter was
installed. Adding a wait to give the filter a chance to install
before reporting a failure.

Also removing an unused method on the input filter.

Change-Id: I77cd80dcd2cec6c72b3761169aba5eaecf62250b
(cherry picked from commit 03465fb874ccf35ead2228b66ec03afc31d7694e)

8 years agoFurther improvement to determining visiblility of tasks in home stack.
Wale Ogunwale [Fri, 5 Feb 2016 19:48:37 +0000 (11:48 -0800)]
Further improvement to determining visiblility of tasks in home stack.

673cbd2b6932b39d6804cda2969b7f059c1ce748 introduced logic to make
non-top activities in the home stack invisible under certain
conditions. However, this caused problems with the set-up wizard which
uses the home stack to launch all its activties. Changed the logic to
determine if the next task in the home stack should be visible behind
vs. the next activity in the same task. So, activities in the same task
in the home stack can be visible at the same time, but not activities
in different tasks.

Bug: 26922407
Bug: 26571156
Change-Id: Ied20d45cd27a1adcc105703d8ca21861d1856700

8 years agoClean up UiAutomation working alongside a11y.
Phil Weaver [Tue, 2 Feb 2016 01:01:44 +0000 (17:01 -0800)]
Clean up UiAutomation working alongside a11y.

Fix two bugs: one where Instrumentation did not properly
handle destroyed UiAutomations, another where UiAutomation
did not properly disable running accessibility services.

Change-Id: I1773dbd373f4d5b0e7c9917ff18d8d9b1a0e07c7
(cherry picked from commit 846522cea043d3113b3b96daa8f3a1b70e3beb5e)

8 years agoGo to root from child directory when root tapped.
Aga Wronska [Mon, 8 Feb 2016 20:00:38 +0000 (12:00 -0800)]
Go to root  from child directory when root tapped.
Bug: 27060001

Change-Id: Iabe1f9f2c986904a4d827e74cf29b3de55e74f90
(cherry picked from commit 5652d175fedc87c796de3cfd354a9de961450690)

8 years agoRevert "Revert "TaskManager bench""
Chris Craik [Mon, 8 Feb 2016 19:36:46 +0000 (19:36 +0000)]
Revert "Revert "TaskManager bench""

This reverts commit 9640477e3cc075b0f303e817a3ebcc72d7bc878b.

Change-Id: I3aa8f2830b43b9c7b211c5792a311d0bc698c51a

8 years agoMerge "Changed list metered-networks so it returns all networks." into nyc-dev
Felipe Leme [Mon, 8 Feb 2016 23:26:13 +0000 (23:26 +0000)]
Merge "Changed list metered-networks so it returns all networks." into nyc-dev

8 years agoMerge "Add pid on main bugreport notifications." into nyc-dev
Felipe Leme [Mon, 8 Feb 2016 23:25:38 +0000 (23:25 +0000)]
Merge "Add pid on main bugreport notifications." into nyc-dev

8 years agoMerge "Multi packages per APK" into nyc-dev
Svetoslav Ganov [Mon, 8 Feb 2016 23:20:50 +0000 (23:20 +0000)]
Merge "Multi packages per APK" into nyc-dev

8 years agoMerge "Clamp EditText cursor in the drawable boundaries." into nyc-dev
Siyamed Sinir [Mon, 8 Feb 2016 23:16:48 +0000 (23:16 +0000)]
Merge "Clamp EditText cursor in the drawable boundaries." into nyc-dev

8 years agoMulti packages per APK
Svet Ganov [Thu, 17 Dec 2015 19:35:04 +0000 (11:35 -0800)]
Multi packages per APK

This change introduces the ability to have multiple packages per
APK. The feature is currently restricted to privileged apps and
updates to such apps.

In essence the manifest can have multiple child package declarations.
A child package can declare everything an Android package can except
some tags or attributes that are not applicable and instead inherited
from the parent when needed. For example, the target SDK of the parent
applies to all children.

A child package can be updated only through the parent package.
A package with multiple child packages is installed, uninstalled
atomically - no partial installs where some child packages are not
installed.

The remaining work is to ensure broadcasts are also sent for child
packages. This will come in a subsequent change.

Sample app:ag/848432

Design doc: https://docs.google.com/document/d/18nFWtJuZchLxrHf5SBbJW03-Ky9Rh_G0-OVB14b6u78

Change-Id: I6fd021d981bf5786290e0c53502724a14c97358c

8 years agoMerge "Support for Bundle in AudioAttributes" into nyc-dev
Jean-Michel Trivi [Mon, 8 Feb 2016 23:13:19 +0000 (23:13 +0000)]
Merge "Support for Bundle in AudioAttributes" into nyc-dev

8 years agoTIF: Allow the application to indicate a TV program to record
Jae Seo [Sat, 6 Feb 2016 02:11:35 +0000 (11:11 +0900)]
TIF: Allow the application to indicate a TV program to record

Bug: 26962040
Change-Id: I2f062a4621c8a9a6765543826ba2cd607f1468d4

8 years agoMerge "Do not save TextView text when freezesText is false" into nyc-dev
Siyamed Sinir [Mon, 8 Feb 2016 22:51:31 +0000 (22:51 +0000)]
Merge "Do not save TextView text when freezesText is false" into nyc-dev

8 years agoMerge "Fix TextDropShadowCacheTests and glyph_t everywhere" into nyc-dev
Chris Craik [Mon, 8 Feb 2016 22:47:34 +0000 (22:47 +0000)]
Merge "Fix TextDropShadowCacheTests and glyph_t everywhere" into nyc-dev

8 years agoMerge "Use clang to build microbench" into nyc-dev
Chris Craik [Mon, 8 Feb 2016 22:46:52 +0000 (22:46 +0000)]
Merge "Use clang to build microbench" into nyc-dev

8 years agoMerge "Fix drawing cache on sw drawing" into nyc-dev
John Reck [Mon, 8 Feb 2016 22:46:09 +0000 (22:46 +0000)]
Merge "Fix drawing cache on sw drawing" into nyc-dev

8 years agoFix TextDropShadowCacheTests and glyph_t everywhere
Chris Craik [Sat, 6 Feb 2016 04:10:50 +0000 (20:10 -0800)]
Fix TextDropShadowCacheTests and glyph_t everywhere

Change-Id: I943eae4e9408c77bdfba6304ba7ee3e862351a41

8 years agoUse clang to build microbench
Chris Craik [Sat, 6 Feb 2016 02:03:36 +0000 (18:03 -0800)]
Use clang to build microbench

Change-Id: I7ae8049fe05e99fadf905abd18553cb28596ba7f