306971 Commits

Author SHA1 Message Date
Yohei Yukawa
efdb428959 Merge "Eliminate out-of-sync IMM#mFullscreenMode error" 2017-02-09 16:55:04 +00:00
TreeHugger Robot
df185d7502 Merge "avoid race condition on very fast tests" 2017-02-09 16:46:53 +00:00
TreeHugger Robot
024d22fdb7 Merge "AAPT2: Fix pseudolocalization to respect <xliff:g>" 2017-02-09 16:17:18 +00:00
TreeHugger Robot
34895c404b Merge changes I348c18dc,I0c33d519
* changes:
  SysUiLeaks: Detect leaks in TunerService
  SysUiLeaks: Detect leaks of NotificationData.Entry
2017-02-09 15:45:09 +00:00
Jason Monk
7898e87be2 Merge "Add better method test handlers/loopers in sysui" 2017-02-09 15:43:19 +00:00
Chris Wren
6f6c0cd4b8 avoid race condition on very fast tests
most of the use cases for this involve uiautomator tests,
which are slow anyway. In this case it may be possible for
the checkpoint to record the current time, and then the
test event arrive before the clock ticks over to the
next millisecond, which would cause them to be ignored.

If this fixes the flakiness we should consider a more gneeral fix.

Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java
Bug: 35138327
Change-Id: Idc4aec50df1a75be710c5a69522af058f7e68ec1
2017-02-09 09:51:50 -05:00
TreeHugger Robot
5706614868 Merge "SysUiLeaks: Add LeakDetector" 2017-02-09 14:03:22 +00:00
Shubham Ajmera
a6e5041a83 Merge "Replace RandomAccessFile with BufferedInputStream" 2017-02-09 12:14:23 +00:00
Bill Yi
7607b0ebae Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 740ddc38bc -s ours
am: cde8fa7e9f  -s ours

Change-Id: I540f10c9fa9e7c54aa5578551e1377ec68f0e28f
2017-02-09 11:41:51 +00:00
Bill Yi
b58dc2112f Import translations. DO NOT MERGE am: d0bc779893 -s ours
am: 49e6b18eeb  -s ours

Change-Id: Ib68c0f50355c4d87be79078542696de7e1e4cb4f
2017-02-09 11:40:51 +00:00
Bill Yi
cde8fa7e9f Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev
am: 740ddc38bc  -s ours

Change-Id: I967c516afc18ee97b2790cedd4747e8f93c57368
2017-02-09 11:36:58 +00:00
Bill Yi
49e6b18eeb Import translations. DO NOT MERGE
am: d0bc779893  -s ours

Change-Id: I06ce169e1bebd7c4543090b2ba0c3b119121d954
2017-02-09 11:36:52 +00:00
TreeHugger Robot
740ddc38bc Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-02-09 11:28:26 +00:00
Peeyush Agarwal
651ea36f5a Merge "Extend MenuItem to allow modifier keys for shortcut" 2017-02-09 11:17:25 +00:00
Bill Yi
d0bc779893 Import translations. DO NOT MERGE
Change-Id: I751a4937bc2753f50aaf1177868c9199e8d201ec
Auto-generated-cl: translation import
2017-02-09 01:57:11 -08:00
Adrian Roos
6b2852e03f SysUiLeaks: Detect leaks in TunerService
Bug: 34932615
Test: manual
Change-Id: I348c18dc4e5772637828c1f53f15c84ad4c39485
2017-02-09 10:33:04 +01:00
Adrian Roos
f6d562b83f SysUiLeaks: Detect leaks of NotificationData.Entry
Bug: 34932615
Test: manual
Change-Id: I0c33d5194fe94e99b7bebe3a04a3730e41575080
2017-02-09 10:33:03 +01:00
Adrian Roos
e1e0b483be SysUiLeaks: Add LeakDetector
Bug: 34932615
Test: runtest -x $ANDROID_BUILD_TOP/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
Change-Id: Id4a9cbdaddc83ca3e25923eec33d53b6761c54cb
2017-02-09 10:33:02 +01:00
Martijn Coenen
849a31075c Merge "Don't generate and send reply object in oneway calls." am: 60f11f3d16 am: 14cc9c291e am: 53e5640589
am: b2c70c8877

Change-Id: I3e3d29f938ac86852b1353697009dec9cad545ee
2017-02-09 08:55:20 +00:00
Martijn Coenen
b2c70c8877 Merge "Don't generate and send reply object in oneway calls." am: 60f11f3d16 am: 14cc9c291e
am: 53e5640589

Change-Id: I3ee89a098a2913f5ce7f4c357b9c5c86f4bd4b15
2017-02-09 08:51:12 +00:00
Martijn Coenen
53e5640589 Merge "Don't generate and send reply object in oneway calls." am: 60f11f3d16
am: 14cc9c291e

Change-Id: I415b895812703aa8ec290234fb71d1d0a89aece9
2017-02-09 08:47:12 +00:00
Martijn Coenen
14cc9c291e Merge "Don't generate and send reply object in oneway calls."
am: 60f11f3d16

Change-Id: I790576158c1d2cae6b746f3b5d0dbecad750629a
2017-02-09 08:42:27 +00:00
Martijn Coenen
60f11f3d16 Merge "Don't generate and send reply object in oneway calls." 2017-02-09 08:37:31 +00:00
Martijn Coenen
60bf84a129 Don't generate and send reply object in oneway calls.
Bug: 35044790
Test: hidl_test, hidl_test_java
Change-Id: Iae8f5b071f89d2af5ca15360c6a1a0fbf8040e77
2017-02-09 08:34:05 +00:00
TreeHugger Robot
6c0e600257 Merge "Fix ImeSubtypeListItem ordering" 2017-02-09 08:25:36 +00:00
TreeHugger Robot
3304c8fc4b Merge "Serially (un/)register score cache in WifiTracker." 2017-02-09 06:23:32 +00:00
Chris Tate
415211c560 Merge "Whitelist LocalTransport here in the framework sysconfig" 2017-02-09 06:12:38 +00:00
TreeHugger Robot
daad456172 Merge "Make datasets one line and ellipsized." 2017-02-09 05:43:26 +00:00
Chris Tate
db64add87a Merge "Enable background restrictions" 2017-02-09 05:33:20 +00:00
Yohei Yukawa
a0e468ac33 Merge "Avoid sync IPCs from TSMS to SpellCheckerService" 2017-02-09 05:11:04 +00:00
Sundeep Ghuman
ac7b43616e Serially (un/)register score cache in WifiTracker.
Before the cache unregistration logic was posted to the worker thread.
However, when WifiSettings is quit, the onDestroy method immediately
kills the WorkHandler. This caused unregistration to never occur, which
left the cache registered and the listener to try to post work on the
dead worker thread. The cache is now registered and unregistered
serially in start and stop tracking, respectively. Furthermore, the
cachelistener is running on the mainHandler as it is a lightweight task
(posting to work handler).

Bug: 34891717
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java

Change-Id: I7739fdbe036be5b2870be45f33f670fd69d69af1
2017-02-08 20:56:07 -08:00
Tadashi G. Takaoka
61dd99b674 Fix ImeSubtypeListItem ordering
The previous CL (I47f902cc8f) fixed ImeSubtypeListItem.compareTo() is
compliant to Comparable#compareTo(T) (Bug 34255739) and introduced the
following order of comparing ImeSubtypeListItem fields.

  1. ImeSubtypeListItem#mImeName
  2. ImeSubtypeListItem#mSubtypeName
  3. ImeSubtypeListItem#mIsSystemLocale
  4. ImeSubtypeListItem#mIsSystemLanguage

But it didn't keep the previous ordering (Bug 34821121).  This CL
fixes the order of comparing ImeSubtypeListItem fields as compatible
as ones before I47f902cc8f.

  1. ImeSubtypeListItem#mImeName
  2. ImeSubtypeListItem#mIsSystemLocale
  3. ImeSubtypeListItem#mIsSystemLanguage
  4. ImeSubtypeListItem#mSubtypeName

Bug: 34255739
Fixes: 34821121
Test: Install FramewroksCoreTests.apk and run
      InputMethodSubtypeSwitchingControllerTest and verify all tests passed.
Change-Id: I813403fd29c5c52a3ca375174ec4b95e4b5433f2
2017-02-09 12:30:03 +09:00
TreeHugger Robot
47c4c94100 Merge "Work on separating out the status bar management" 2017-02-09 02:48:36 +00:00
TreeHugger Robot
5ad568f32c Merge "Add command line options for some new intent flags." 2017-02-09 02:35:19 +00:00
TreeHugger Robot
dcd208d167 Merge "Fixing issue with play/pause buttons being inverted." 2017-02-09 02:17:17 +00:00
Christopher Tate
62e9fc656c Enable background restrictions
Can be disabled by setting the "debug.bgcheck" system property to
"n" or "no" or "0" or "false" or "off".  (Writing that property
requires root.)

Bug 30953212
Test: observed restrictions being enforced

Change-Id: I4cda9b7840ff25240b6bcaab210ea13888d08cad
2017-02-08 18:07:32 -08:00
Jason Monk
aa573e9e86 Work on separating out the status bar management
Lots of stuff:
 - Make StatusBarIconController be a permanent dependency
 - Break out dark stuff into DarkIconDispatcher
 - Create StatusBarFragment
   - This bit is a bit ugly for now, but will be better later
 - Other stuff probably

Test: runtest systemui
Change-Id: I4973bc9f944e66af92731bf1edd2b39657f1782f
2017-02-08 19:51:41 -05:00
Yohei Yukawa
2bc66171cc Eliminate out-of-sync IMM#mFullscreenMode error
As explained in the commit message of my previous CL [1], we have
had a design issue in how to notify the full-screen mode change
from the IME to InputMethodManager running in the target application.

Histrically we have done this by using hooking the following IPC
from the IME to the target application.

  InputConnection#reportFullscreenMode()

However, since we also want InputConnection to be deactivated in some
situations such as the when the target application is no longer
focused. In other words, InputConnection is not a reliable way to
notify something.

As a result, we have suffered from many stale state issues.
Bug 21455064 and Bug 28157836 are such examples.  In Android N, we
introduced yet another hack to work around those issues, but it is
really time to fix the protocol design instead.

The new strategy is to rely on internal IPCs provided by
InputMethodManager to deliver such critical notifications from one
process to the other. This is actually more natural because our goal
is to make sure that InputMethodManager#isFullscreenMode() always
returns the latest value as long as the caller is the focused
application.

For backword compatibility, applications that are monitoring
this callback should continue working, as InputMethodManager emulates
the previous behavior.  However, as updated in JavaDoc, IMEs are no
longer allowed to invoke InputConnection#reportFullscreenMode(),
which should be OK because even on previous releases IMEs should rely on
InputMethodService#updateFullscreenMode() instead.

 [1]: Iba184245a01a3b340f006bc4e415d304de3c2696
      1544def0facda69c210b0ae64b17394ea2860d39

Fixes: 28406127
Test: Make sure Bug 21455064 is still fixed.
       1. Input some words in extract mode.
       2. Select a word.
       3. Perform copy.
       4. Select a word.
       5. Rotate the device.
       6. Try to select a word.
       7. Make sure he word is selected and action mode starts.
Test: Make sure Bug 28157836 is still fixed.
       1. Rotate device to landscape mode.
       2. Tap on EditText and start full screen extracted mode.
       3. Rotate device to portrait mode.
       4. Long press to start action mode.
       5. Make sure Action mode gets started.
Test: `adb shell dumpsys input_method` to make sure that fullscreen
      state is synchronized across the app, IMMS, and the IME.
Change-Id: If23e7c7c265ab3dfb48c2fb6fdb361b17d22c594
2017-02-09 00:51:18 +00:00
Christopher Tate
4244c91e27 Whitelist LocalTransport here in the framework sysconfig
This shouldn't properly be emplaced as a side-effect of partner-
specific configurations; so now we don't do that any more.

Bug 35151478
Test: verify whitelist contents with 'bmgr whitelist'

Change-Id: I854ddfdbcec1def882b24f5ea7955b28d4789806
2017-02-08 16:37:57 -08:00
Dianne Hackborn
797772b162 Add command line options for some new intent flags.
Forgot to add these when the flags were added.

Test: manual
Change-Id: If71ea756ca85946155d7a6848454f61d137138c0
2017-02-08 16:33:43 -08:00
TreeHugger Robot
5a0d21156d Merge "Check for null inputs in the ctor." 2017-02-09 00:25:28 +00:00
Dianne Hackborn
0e09fddcd0 Merge "Add new VoiceInteractionSession.setUiEnabled method" 2017-02-09 00:11:01 +00:00
Greg Plesur
2d2d671229 Merge "Merge "Don't check device_provisioned on Wear devices in setDeviceOwnerSystemPropertyLocked()" into cw-f-dev am: 8a2ea2cf83 am: ddec36e31a" into nyc-mr2-dev-plus-aosp
am: c296020f55

Change-Id: I98f4fac8b063ebec21271e5b46ff3027305c1165
2017-02-09 00:03:12 +00:00
Greg Plesur
edfc9370d9 Merge "Don't check device_provisioned on Wear devices in setDeviceOwnerSystemPropertyLocked()" into cw-f-dev am: 8a2ea2cf83 am: ddec36e31a
am: 50447143c2

Change-Id: Iadf6f2217415d0498254eb4d1669c5f93ac8a9d0
2017-02-09 00:03:03 +00:00
Greg Plesur
f1929eee62 Merge "Merge "Don't check device_provisioned on Wear devices in setDeviceOwnerSystemPropertyLocked()" into cw-f-dev am: 8a2ea2cf83 am: 58fce5386b" into nyc-mr2-dev-plus-aosp
am: 735e8230ad

Change-Id: I96ba158ea11611e5d4d82d4ad36af0676b64592a
2017-02-09 00:01:44 +00:00
Greg Plesur
bfce5bcfc8 Merge "Don't check device_provisioned on Wear devices in setDeviceOwnerSystemPropertyLocked()" into cw-f-dev am: 8a2ea2cf83 am: 58fce5386b
am: 5d9343b60a

Change-Id: I2d163d2a3eb1edfd0329992ae5c98c9b11cd9ad5
2017-02-09 00:01:39 +00:00
Greg Plesur
30110eaeec Don't check device_provisioned on Wear devices in setDeviceOwnerSystemPropertyLocked() am: c7b18342ea am: 66af3515de
am: 7658c60e91

Change-Id: Ic433afeb6b791173c90546da98ce7bdddfdd5629
2017-02-09 00:00:08 +00:00
Greg Plesur
c928e9fa53 Don't check device_provisioned on Wear devices in setDeviceOwnerSystemPropertyLocked() am: c7b18342ea am: b6323817db
am: f206de957a

Change-Id: Ic1f2bd765ecc3eb7239923147a93fc4afa6eb70c
2017-02-08 23:56:33 +00:00
Android Build Merger (Role)
c296020f55 Merge "Merge "Don't check device_provisioned on Wear devices in setDeviceOwnerSystemPropertyLocked()" into cw-f-dev am: 8a2ea2cf83 am: ddec36e31a" into nyc-mr2-dev-plus-aosp 2017-02-08 23:54:12 +00:00
Greg Plesur
50447143c2 Merge "Don't check device_provisioned on Wear devices in setDeviceOwnerSystemPropertyLocked()" into cw-f-dev am: 8a2ea2cf83
am: ddec36e31a

Change-Id: Id36db178cad26adba0a43370af2f4f6cdd1a0443
2017-02-08 23:53:29 +00:00