Commit Graph

309172 Commits

Author SHA1 Message Date
Andrei Stingaceanu
fbfead24c2 AutoSize TextView (part 9) - sanitize APIs naming
This CL is no-op (cosmetics only)
* renames autoSizeText type "xy" to "uniform"
* renames attribute "autoSizeStepSizeSet" to "autoSizePresetSizes"
* renames "AUTO_SIZE_TEXT_TYPE_XY" to "AUTO_SIZE_TEXT_TYPE_UNIFORM"
* renames public TextView#getAutoSizeTextPresetSizes() to public
  TextView#getAutoSizeTextAvailableSizes() because this method can
  return either preset sizes or computed sizes (via min/max/step)

Bug: 34923754
Bug: 32221168
Test: associated test renames in the same topic
Change-Id: Ifacccf21ca014b6c0a07322fa02b7859ee53e387
2017-02-09 15:30:02 +00:00
Julia Reynolds
2619b5e663 Let apps link to noti settings and vice versa.
Test: manual
Change-Id: I3536099fdea1c7a8ddbe38b223fc99b9fef9197a
2017-02-09 10:09:24 -05:00
Paul Duffin
57e490cf8c Partial Revert "Replace com.android.internal.util.Predicate with java.util.function.Predicate"
This partially reverts commit 3e5fbca0c5.

Bug: 35187548
Bug: 30188076
Bug: 35089332
Test: make checkbuild
Change-Id: I7ab4279aab604e3d56003b0a59867948aebabd28
2017-02-09 14:52:43 +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
Adrian Roos
99d2e64bdb AOD: Fix contrast calculation
Uses a new way to calculate a contrasting color for AOD in HSL space.
Previously, the search was done in LAB space which led to colors being
off-hue.

Bug: 30876804
Test: Open Ambient Display, observe color of incoming notification looks good.
Change-Id: Id9b52e266be126f3067dd73e9906d7cca59135cb
2017-02-09 14:58:58 +01:00
Yuxin Chang
6b750865ed Show connection error reason for Passpoint AP
Currently "Available via <provider friendly name>" is always shown
in the summary with Passpoint AP, even connection error happens,
so user might not notice the error happens.

Better to show error reason when connection error happens,
so that user can notice the error and take actions to solve it.

Bug: 35190091

Change-Id: If0d06e800df8de3119590372feda946457aab5e6
2017-02-09 22:28:30 +09: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
Bill Yi
bfddd29b9b Import translations. DO NOT MERGE
Change-Id: I148a1107957e81169b55693f0f7c6920e9143e9c
Auto-generated-cl: translation import
2017-02-09 01:39:21 -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
Bill Yi
4e7b57e02c Import translations. DO NOT MERGE
Change-Id: I25ada0f3e69e51176dda898f821db1a5828fd51b
Auto-generated-cl: translation import
2017-02-09 00:27:21 -08:00
TreeHugger Robot
6c0e600257 Merge "Fix ImeSubtypeListItem ordering" 2017-02-09 08:25:36 +00:00
Po-Chien Hsueh
c5ae595e6f Remove build flag ANDROID_ENABLE_RENDERSCRIPT
remove this flag and consider renderscript is always enabled

Bug: 34693640
Test: compile
Change-Id: I22464e1d64f2a55a60ba9f8ab1510f2811605552
2017-02-09 15:00:09 +08: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
Felipe Leme
0223ffb473 Improved some toString() methods.
- Never display AutoFillValue.text, because it could be sensitive.
- Simplified AutoFilllId.

Fixes: 35171960

Test: manual verification
Test: CtsAutoFillServiceTestCases passes

Change-Id: I0853cabb695b842c947b0ae007e344f5d8385395
2017-02-08 18:54:29 -08: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
      1544def0fa

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
Chris Phoenix
de69003f07 context_hub HAL uses "default" service name
The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds

Bug: 33844934
Change-Id: Ic35ae203244b77d26833f058b76fb4d46ade716d
2017-02-08 16:03:45 -08: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