Commit Graph

312031 Commits

Author SHA1 Message Date
TreeHugger Robot
10180bb47b Merge "wifi: update passpoint to Passpoint in comments" into oc-dev 2017-03-29 19:31:42 +00:00
TreeHugger Robot
202dc5e18d Merge "Only use cacheLock when it's needed" into oc-dev 2017-03-29 19:27:15 +00:00
Kevin Chyn
943b19ece7 Merge "Revert "finished implementation of fingerprintservice enumerate"" into oc-dev 2017-03-29 19:25:13 +00:00
TreeHugger Robot
dd83c2006b Merge "TextClassifier: Switch model based on locale" into oc-dev 2017-03-29 19:17:36 +00:00
TreeHugger Robot
9c847fdc7e Merge "Removing PiP notification channel." into oc-dev 2017-03-29 19:13:13 +00:00
TreeHugger Robot
5301d9e6d3 Merge "Do not use many FDs in FontManagerService." into oc-dev 2017-03-29 19:11:41 +00:00
Tima Vaisburd
e4776416d4 Merge "TextClassifier: add API to WebView" into oc-dev 2017-03-29 18:50:07 +00:00
Kevin Chyn
32a12e9ae0 Revert "finished implementation of fingerprintservice enumerate"
This reverts commit f8ff36c47f.
Test: manual

Change-Id: Ib7a887ad2b185d83174d171832cd9c3bc87939c0
2017-03-29 18:45:52 +00:00
TreeHugger Robot
94696c5ac5 Merge "Fix bad Java docs in View.java" into oc-dev 2017-03-29 18:33:11 +00:00
Winson Chung
bd0fdb19fd Merge "Prevent invisible PiP menu activity from having touch focus." into oc-dev 2017-03-29 18:18:11 +00:00
TreeHugger Robot
fb1e49a5c4 Merge "Do not allow printing until preview is updated" into oc-dev 2017-03-29 17:59:00 +00:00
TreeHugger Robot
36bceefafa Merge "Fix problem with ListView accessibility focus" into oc-dev 2017-03-29 17:47:13 +00:00
TreeHugger Robot
bf6b4efa6d Merge "AudioAttributes: make getVolumeControlStream() non static" into oc-dev 2017-03-29 17:40:01 +00:00
TreeHugger Robot
ddb280b1ac Merge "Reserve space for preference icon." into oc-dev 2017-03-29 17:34:08 +00:00
Etan Cohen
6fd057cf58 Merge "[AWARE] Fix unit tests" into oc-dev 2017-03-29 17:32:23 +00:00
Peter Qiu
6bbc8955c1 wifi: update passpoint to Passpoint in comments
Per API Council, we should use the trademark name Passpoint
instead of passpoint in the code comments.

Bug: 35854283
Test: make -j32
Change-Id: Iea6697191a936d1d779c0ea50cd19c134bc7df02
2017-03-29 10:29:21 -07:00
Winson Chung
26db39793e Prevent invisible PiP menu activity from having touch focus.
- Mark the decor view as invisible when the the PiP menu activity is
  hidden.  We don't call Activity.setVisible() as that alters other
  internal states that affect the system's understanding of whether
  the activity will draw or not.

Bug: 36225602
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: I6b1ed7098e1f0ff427f0655c45e566ca60979623
(cherry picked from commit 8c8ba19e0d)
2017-03-29 17:28:56 +00:00
Fyodor Kupolov
9ac40f1cf1 Only use cacheLock when it's needed
When reading from cache, we can avoid synchronization on dbLock if we 
only read from cache (no db access).

When doing updates to db and cache, we should hold cacheLock only when 
updating the cache.

This change improves locking in the following methods:
 - getAccountVisibilityFromCache
 - saveAuthTokenToDatabase
 - getAccountsFromCacheLocked no longer allows outside locking. The 
   method was renamed to getAccountsFromCache and now self-manages locks
 - writeAuthTokenIntoCacheLocked
 - readAuthTokenInternal

Test: AccountManagerServiceTest
Bug: 36485175
Bug: 35262596
Change-Id: I9aca45c31716c4f0e0fd9f07859e88a7f5ba6922
2017-03-29 17:27:57 +00:00
Seigo Nonaka
c0cf4f09f4 Do not use many FDs in FontManagerService.
Currently there are over 170 font files are installed in system directory.
Opening 170+ files and keep them is not unacceptable. Pass URI instead.

At the same time, this CL hides full font path from FontConfig since
/system/fonts directory will be deprecated in future.

Bug: 36660849
Test: android.text.cts.FontManagerTest passed
Change-Id: I1d216dc9c6dec702a4ce3b946bfda6dcbe12b7fe
(cherry picked from commit 455f1bfc05)
2017-03-29 17:01:16 +00:00
Winson Chung
5cd54168e7 Removing PiP notification channel.
- Using the General channel instead.

Bug: 36670134
Test: Ensure no PiP channel in settings
Change-Id: If186a2565bb6911c6e15b25788908fd909a54287
2017-03-29 09:57:43 -07:00
Rob Carr
76d779374a Merge "SurfaceView: Make surfaceRedrawNeededAsync work with WM bypass." into oc-dev 2017-03-29 16:44:41 +00:00
Philip P. Moltmann
dc90922f78 Fix bad Java docs in View.java
Test: Used intelliJ to warn about bad docs
Change-Id: Idb119aff8ce0f2370f66707bd583e2d131fb0751
(cherry picked from commit f4946e7f15)
2017-03-29 16:29:22 +00:00
Philip P. Moltmann
d0e44c5ee3 Do not allow printing until preview is updated
Otherwise we might end up in the situation where we print something that
was not previewed.
This is of course bad for the user as he prints something he has not seen.
It is also bad for the print spooler as in the case the layout did not
describe the amount of pages, we do not know the number of pages available
until the update is complete.

We now allow changing of printer at any time unless printing is in final
stage. If we don't allow this the changing of printer would be blocked
until the intial document was written which might take some time.

Fixes: 36599750
Test: cts-tradefed run cts-dev -m Print
Change-Id: I93e910c02f2a770008b845028f0adf17b3d410e2
(cherry picked from commit 378cddbc41)
2017-03-29 16:13:32 +00:00
Abodunrinwa Toki
c39006a1cd TextClassifier: Switch model based on locale
Test: cts-tradefed run cts-dev -m CtsViewTestCases -t
android.view.textclassifier.cts.TextClassificationManagerTest

Change-Id: I91f814fc47bd75922c0e42a774dc7376daf65366
2017-03-29 17:12:56 +01:00
TreeHugger Robot
1af2928767 Merge "Re-enable throw when notifications posted can't find channel" into oc-dev 2017-03-29 15:35:02 +00:00
Phil Weaver
ec66fb8f99 Fix problem with ListView accessibility focus
A scrap view was retaining accessibility focus, leading to
a confusing experience for screen reader users.

Part of the problem is that views can change even when the
adapter has stable ids. This change tightens the condition
for restoring a11y focus to the same view.

AbsListView also allowed scrap views to maintain a11y focus.
While this may make sense if the views will be reused, it is
wrong if the views are not reused.

Bug: 29403113
Test: Verified that a11y focus stays put when toggling the
preference: Settings -> System -> Language & input ->
Virtual keyboards -> Advanced -> Symbol for physical keyboard

Change-Id: Ie4a15027088f158d9ed4bb3f3eeff5a288c25832
(cherry picked from commit ab4717aa2a)
2017-03-29 15:34:30 +00:00
Etan Cohen
a85dcbbd8e [AWARE] Fix unit tests
Update to reflect new mockito semantics.

No functional change, no change to test semantics!

(cherry-pick of commit afddcc3c98)

Bug: 36680830
Test: unit tests now passing
Merged-In: Ic210f20ce47ab19da25bd0835ae2ee5ae0f73011
Change-Id: Ic210f20ce47ab19da25bd0835ae2ee5ae0f73011
2017-03-29 08:07:22 -07:00
TreeHugger Robot
92b3242827 Merge "Add audio service support to BridgeContext" into oc-dev 2017-03-29 13:26:25 +00:00
Geoffrey Pitsch
ed0a854b0c Re-enable throw when notifications posted can't find channel
Only applies for non-user builds, and for apps that have tried using
channels.

Test: runtest systemui-notification
Change-Id: I7e28545ba28eadae75bf015bdf490093223e2940
2017-03-29 09:19:50 -04:00
Diego Perez
31f7d6f535 Add audio service support to BridgeContext
Bug: http://b.android.com/259326
Test: N/A
Change-Id: Ie43ccca49a5e77d82426b4f265e3c05dddfacad9
2017-03-29 12:03:58 +01:00
Tony Mak
ec319aba34 Introduce AMS.getLastResumedActivityUserId to fix work profile icon issue
Problem:
Work profile status bar icon feeature is relied on two callbacks
1. onForegroundProfileSwitch  (AMS.setResumedActivityLocked)
2. appTransitionStarting (WMS)

We assume callback 1 is always called before 2, but it is not the case.
These two callbacks are triggered by two handlers in two different threads,
and hence race condition happens.

Solution:
Not rely on onForegroundProfileSwitch to update mManagedProfileFocused
flag anymore. Query getLastResumedActivityUserId in appTransitionStarting.
Also, make sure mLastResumedActivity is updated before sending message
to WMS in setResumedActivityLocked.

Test: Start a work app, observe that the work icon is shown.
Test: Start a personal app, observe that work icon is gone.
Test: Dock the work app, tap on it (give it focus), observe that work
      icon is shown.
Test: Start a work app, switch user, can see the icon is gone. Switch back,
      icon is back.

Bug: 34159089

Change-Id: I2cee141d18e8b7d5607b26dd7a2fd5bc9cd0ebb3
2017-03-29 10:03:39 +00:00
TreeHugger Robot
76c32a35a9 Merge "Allow apps to process ProxyFDCallback asynchrnously." into oc-dev 2017-03-29 04:41:44 +00:00
TreeHugger Robot
3938580b86 Merge "Change string connected_via_network_scorer_default." into oc-dev 2017-03-29 04:37:10 +00:00
Jeff Tinker
79a973f643 Revert "Make public getFragments() and onGetLayoutInflater() methods"
This reverts commit 599be3d01e.

This change is being reverted because it broke git_master build.

Change-Id: I54ab9cd3d9e08dcf870f472fda08cc44e57986d0
bug: 34703669
2017-03-29 01:25:06 +00:00
Stephen Chen
be70d89c03 Change string connected_via_network_scorer_default.
Bug:36629448
Test: make
Change-Id: I06945a64b54d7e41c542ec36ef45eb7c8cb7bf10
2017-03-28 18:14:17 -07:00
Casey Burkhardt
684607f7f6 Merge "Ensures Accessibility button always overrides IME switcher" into oc-dev 2017-03-29 01:05:39 +00:00
Conrad Chen
438be2af18 Merge "TIF: open transient columns to public" into oc-dev 2017-03-29 00:46:08 +00:00
TreeHugger Robot
334220984e Merge "NetworkPolicy gets updated due to CarrierConfigManager updates." into oc-dev 2017-03-29 00:42:25 +00:00
Tianjie Xu
b25b2f2dab Merge "Merge "improve the format of locale argument when calling recovery" am: 032c7a0a18 am: 1cd3a93288 am: bc0865bc78" into oc-dev 2017-03-29 00:29:06 +00:00
Daichi Hirono
812c95d37d Allow apps to process ProxyFDCallback asynchrnously.
Previously callback methods of ProxyFileDescriptorCallback were invoked
on a background thread prepared in the framework. So all methods were
invoked and processed synchronously. This was problem because if it took
time to fetch bytes of one file, operations for other files were also
blocked.

The CL changes ProxyFileDescriptorCallback methods to be invoked on
Handler passed by apps. Now application can prepare a Handler per file
so that one file does not block others.

Bug: 35229514
Test: cts-tradefed run cts -m CtsOsTestCases -t android.os.storage.cts.StorageManagerTest#testOpenProxyFileDescriptor_async
Change-Id: Ibadc4aad4c0373a3da586459a8f775e40288c895
(cherry picked from commit 4f156065c8)
2017-03-29 00:14:16 +00:00
TreeHugger Robot
c8d8c27c68 Merge "Make public getFragments() and onGetLayoutInflater() methods" into oc-dev 2017-03-28 23:43:23 +00:00
TreeHugger Robot
f7d650e89a Merge "ActivityManager: Allow DiskRead for wrap.sh determination" into oc-dev 2017-03-28 23:18:02 +00:00
Casey Burkhardt
2464dc9a6a Ensures Accessibility button always overrides IME switcher
In the case of both the IME switcher and Accessibility button
appearing within NavigationBarView, we want to allow the
accessibility button to always override the appearance of the IME
switcher as our target users will most-often be using
dead-reckoning to interact with the Accessibility button,
requiring consistent appearance, location, and visibility.

Bug: 35267032
Test: Manual
Change-Id: Ib39d2336efe7073f686d94b3f71fc853af3186bb
2017-03-28 16:01:00 -07:00
TreeHugger Robot
5c5bf24033 Merge "Move activity to display on launch" into oc-dev 2017-03-28 22:53:03 +00:00
Doris Ling
9ed53e35ed Reserve space for preference icon.
Add an attribute to Preference to specify whether the space of the icon
view should be reserved when no preference icon is provided.

Bug: 36448695
Test: manual
Change-Id: I03b49fe93d54bb9106cf167a677a9ea544a3e3a1
2017-03-28 22:47:18 +00:00
Ammar Aijazi
6ce48e25e5 NetworkPolicy gets updated due to CarrierConfigManager updates.
Bug: b/34385985
Test: Added unit tests to NetworkPolicyManagerServiceTest
Change-Id: I1d8249081c478e6484c8011d3eab73a53f105fac
2017-03-28 15:43:34 -07:00
Tianjie Xu
b1b38b322c Merge "improve the format of locale argument when calling recovery" am: 032c7a0a18 am: 1cd3a93288
am: bc0865bc78

Change-Id: I65bc4945d0701ecc10fd41f827c4566dfea912f9
(cherry picked from commit ee45a1f3ab)
2017-03-28 22:25:10 +00:00
Makoto Onuki
479bb430d1 Merge "Correctly set thread group to UiThread's thread." into oc-dev 2017-03-28 22:19:06 +00:00
Makoto Onuki
e56bfe0012 Merge "Log a warning if a dispatch on UiThread takes more than" into oc-dev 2017-03-28 22:03:08 +00:00
Makoto Onuki
9957151661 Log a warning if a dispatch on UiThread takes more than
a certain amount of time.

Bug: 34961340
Test: Boot and launch several apps.
Change-Id: I38bd85a1dd9c572242d04f550df4a979f5f3bea5
2017-03-28 21:49:51 +00:00