235256 Commits

Author SHA1 Message Date
Brian Carlstrom
7f284419f7 Merge "Remove unneeded dependecy on core-tests to fix build" into nyc-dev 2016-03-09 03:29:55 +00:00
Makoto Onuki
5504622fb0 ShortcutManager: add remaining APIs.
- Icons are now persisted. (under /data/system_ce, as PNGs)
- the "load icon" APIs in LauncherApps are supported.
- Implement updateShortcuts()

- Addressed all the comments on the previous CL
- @hide the newly added constructor for PersistableBundle

- Enhance incoming shortcut validation
- A lot of internal clean-up.

Bug 27548047

Change-Id: I8e3c1ccd3e0a997a6d271c84d81170f0c022b60e
2016-03-08 18:37:32 -08:00
Muyuan Li
a8446ef782 Merge "Partial screenshot" into nyc-dev 2016-03-09 02:36:52 +00:00
Aga Wronska
91484b4af6 Merge "Add haptic feedback when entering ActionMode" into nyc-dev 2016-03-09 02:25:02 +00:00
Jaewan Kim
3cd0cf5e28 PIP: Prepare PIP strings for translations
Change-Id: Ieaee9b4c083b67cb6504cc1ccb7f1190f770db17
2016-03-09 11:14:48 +09:00
Jaewan Kim
0997873eff Merge "PIP: Provide a way to show onboarding everytime" into nyc-dev 2016-03-09 02:03:35 +00:00
Dianne Hackborn
6e3eb8e5fd Fix issue #27408705: Runtime restart: WATCHDOG KILLING SYSTEM PROCESS...
...Blocked in monitor com.android.s

There was a change awhile ago to make the IInstrumentationWatcher
callbacks synchronous, to avoid issues with them spamming non-responsive
watches and filling the binder transfer buffer.  However, you can't
just do this, because the activity manager calls these with its
lock held.

To allow them to stay synchronous with the activity manager getting
blocked on the watcher, introduce a new thread for dispatching calls
to the watcher.  This thread is created as needed, and dispatches
a queue of callback commands to make to instrumentation watchers.
The callback is still synchronous, so it won't dispatch a new one
until the previous completes.

Change-Id: I8384bd475a1a004c567a4ae20ea64385244f45c5
2016-03-08 17:58:36 -08:00
Aga Wronska
7d5a247c67 Add haptic feedback when entering ActionMode
Bug: 27357146
Change-Id: I3712a0b077dd8ac8d77a3ec561cc813a4c789cad
2016-03-08 17:58:19 -08:00
Yohei Yukawa
a23aba5345 Merge changes I2b5a6989,Ie3d61458 into nyc-dev
* changes:
  Reset TSMS when the device is unlocked.
  Add copy-on-write mode to TextServicesSettings.
2016-03-09 01:52:06 +00:00
Makoto Onuki
76cb56bb21 Merge "Implement LauncherApps.startShortcut()." into nyc-dev 2016-03-09 01:38:37 +00:00
Brian Carlstrom
03cec27e7a Remove unneeded dependecy on core-tests to fix build
Bug: 27555885

(cherry picked from commit 2687673025f9b5a86f917135d2a8288d4f31818b)

Change-Id: I1c40ed0a565216652acdbef61dd8f44ce8df70f8
2016-03-08 17:34:07 -08:00
Chris Tate
37a67e0bc2 Merge "Add 'shell cmd jobscheduler run ....' to run a job immediately" into nyc-dev 2016-03-09 01:31:27 +00:00
Rakesh Iyer
11e237e6c6 Fix issue with app launch from CarNavigationBar.
Seems like mCurrentPackage name can get stale and the optimization
to cache is isn't all that needed so remove it in the name of app
launch reliability.

Bug: 27505472
Change-Id: I641284c1392f8ff1f392f8dbf2c31177a64b4326
2016-03-08 17:29:47 -08:00
Makoto Onuki
43204b8357 Implement LauncherApps.startShortcut().
Bug 27548047

Change-Id: I357732e22be0959fb573fd6cdaee7c6b439ef7c4
2016-03-08 17:26:28 -08:00
Abhijith Shastry
d1a766e820 Merge "Document that emergency numbers will not be blocked by the platform." into nyc-dev 2016-03-09 01:22:21 +00:00
Zhijun He
924dd55528 Merge "ImageReader/Writer: refactor and cleanup" into nyc-dev 2016-03-09 01:09:34 +00:00
Abhijith Shastry
e3e686cff8 Document that emergency numbers will not be blocked by the platform.
BUG: 27534486
Change-Id: Idd339ca16e2b754112fc5d0966a7cf76d9990c98
2016-03-08 16:55:01 -08:00
fionaxu
c71e824c0d Add default Carrier cfg for IMS_WFC
Bug: 26954117
Change-Id: I2a8fda969d73e30425729019a4428a02f551bbb2
2016-03-08 16:49:24 -08:00
Christopher Tate
5d346051bd Add 'shell cmd jobscheduler run ....' to run a job immediately
During development one needs to be able to test changes conveniently,
and when the jobs would normally have hard-to-simulate constraints
like idle-time or long minimum latencies, testing becomes difficult.
This CL introduces the ability to run a specific job immediately
from the adb shell.

Without the "-f"/"--force" flag, the job still won't run if it has
unmet "functional" requirements such as being connected via an
unmetered network.  With that flag, the job will be run immediately
regardless of its declared constraints (so it may not work properly
due to lack of network connectivity or similar).

Bug 27501783

Change-Id: Icc046f53f8846690c8234e60066e85c283d325ce
2016-03-08 16:45:25 -08:00
Aga Wronska
836202114a Merge "Added word 'selected' to action bar description of selected elements" into nyc-dev 2016-03-09 00:39:39 +00:00
Aga Wronska
91c1a434c1 Added word 'selected' to action bar description of selected elements
Bug: 27296839
Change-Id: I30d3b726f281872da298dbc481a22241fbd45a9a
2016-03-08 16:34:14 -08:00
Adrian Roos
c192f6bf35 Merge "Fix flashing of the scrim" into nyc-dev 2016-03-09 00:26:30 +00:00
Selim Cinek
c75af36bee Fixed a bug where notification y positions would animate
When draging down the y positions were animating even though
they didn't need to as they were not scaling anymore.

Bug: 24866646
Change-Id: Ied6c39a32522756b5f4d8eab7203c87d1958c278
2016-03-09 00:25:24 +00:00
Zachary Kuznia
9002a152c4 Increase threshold for gesture detection timeout
After a user study, it appears a little extra slack for gesture
recognition is a good idea.

Change-Id: I8ff90c715a77c985e8bab671c3782bc8679cc564
2016-03-08 16:08:52 -08:00
Ryan Bavetta
6e3eeadee2 Merge "Fix unsynchronized access to model hashmap" into nyc-dev 2016-03-09 00:05:33 +00:00
Yohei Yukawa
f0f1680663 Reset TSMS when the device is unlocked.
This ports my previous CL for InputMethodManagerService [1] to
TextServicesSettings (TSMS).

With File-Based Encryption (FBE), now we have yet another runteime event
to reset TSMS state in order to keep the list of available spell
checkers updated.

See my previous commit message [1] for details about the idea.

Rebuild spell checker list when the system becomes ready.

  [1]: Ifa2225070bf8223f8964cf063c86889e312c5e9a
       0e367d08aab2c1cb2d0fb9cbf1e8a6d09d1ac523

Bug: 27456430
Change-Id: I2b5a6989a99fd18b3bf109f5cda6270ccadaaf6d
2016-03-08 16:04:58 -08:00
Paul Mclean
70612efe65 Merge "Make native_release() methods in AudioTrack and AudioRecord JNI-callable." into nyc-dev 2016-03-09 00:00:08 +00:00
Felipe Leme
aa00f2d909 Vibrate after a screenshot is taken, not before.
BUG: 27389320
Change-Id: I383b4252a80ae2f1d820a97b9deb930dccf50313
2016-03-08 15:59:46 -08:00
Teng-Hui Zhu
f10d08a3d4 Update the VD and AVD's getOpacity()
static VectorDrawable should be returning Transparent while root alpha is 0.
AnimatedVectorDrawable running on RenderThread now, and the opacity should
be conservatively set as Translucent.

http://b/27554766

Change-Id: I9a78696cab94f10ba40a733cc9c00f1c2d7ebb7f
2016-03-08 15:54:50 -08:00
Adrian Roos
5f72c92e2b Fix flashing of the scrim
Bug: 27345657
Change-Id: I4a20d86c678a46159466b8f68fe8f429554be950
2016-03-08 15:54:38 -08:00
Alan Viverette
4d1ad994d3 Set DatePickerListener last during DatePickerDialog construction
Prevents us from calling the listener before we're fully set up.

Bug: 27475444
Change-Id: I0def384b60c09c44d36e60503ddb8434055dfb6f
2016-03-08 18:48:47 -05:00
Shuzhen Wang
783929368b Camera2: Handle binder death on ICameraDeviceUser
Call onError(CAMERA_SERVICE) when binder death happens on ICameraDeviceUser.

Bug: 27206055
Change-Id: Ic720933d057559966556658d478ff6d3536f0e3f
2016-03-08 15:47:32 -08:00
Yohei Yukawa
49ed140176 Add copy-on-write mode to TextServicesSettings.
This ports my previous CL for InputMethodManagerService [1] to
TextServicesSettings (TSMS).

This is a preparation for File-Based Encryption (FBE) support in TSMS.

With this CL, we start switching TextServicesSettings from copy-on-write
mode to real mode and start rebuilding the list of available spell
checkers when the system becomes ready.  Anything else should be the
same.  See the previous commit message [1] for details.

  [1]: I9c6f9bb3d51174198e5f73588637f87ea0d90e11
       68645a638ad1bfb734b2b0f56b17fe206bb891c5

Bug: 27456430
Change-Id: Ie3d61458648df469abe149b7aaad8087c531a675
2016-03-08 15:47:18 -08:00
Eino-Ville Talvala
8c35d5be63 DngCreator: Only write orientation into IFD0
The orientation field is not expected to be present in subIFDs.
With this, the new DNG validation CTS checks pass.

Bug: 23727371
Change-Id: I959fd84bc196adbbba1de2c4369e25f568411168
2016-03-08 15:44:24 -08:00
Yohei Yukawa
bc234bb9b6 Merge "Dump spell checker service info from TSMS." into nyc-dev 2016-03-08 23:44:23 +00:00
Steve McKay
67daccc11b Merge "Don't exit selection after sharing and copying..." into nyc-dev 2016-03-08 23:44:01 +00:00
Steve McKay
779c4d38c4 Merge "Suppress Rename tests that fail consistently..." into nyc-dev 2016-03-08 23:42:50 +00:00
Hyungtae Kim
391517e9d3 Merge "Add TV apps to AppLaunch test" into nyc-dev 2016-03-08 23:42:02 +00:00
Steve McKay
ebc3c60fb9 Merge "Show more menu items on larger devices." into nyc-dev 2016-03-08 23:29:24 +00:00
Steve McKay
da4b8aa3f1 Don't exit selection after sharing and copying...
And after canceled deletes.

Bug: 27135937
Change-Id: I2cd736ce53e15d48b6b00ed1156a2b359f1aeb42
2016-03-08 15:27:20 -08:00
Adrian Roos
2289efa6d9 Merge "Fix bug and add logging in FalsingManager" into nyc-dev 2016-03-08 23:21:52 +00:00
Yohei Yukawa
85df698df5 Dump spell checker service info from TSMS.
This is a preparation CL to make TextServicesManagerService (TSMS)
encryption-aware.

This CL changes nothing except for the output of TSMS#dump().

To diagnose File-Based Encryption (FBE) related issues, it would be
useful if we can see if each spell checker service is encryption-aware
or not.  To do that this CL updates TSMS#dump() so that it can include
the result of ResolveInfo#dump() as we have done in
InputMethodManagerService.

This CL also updates TSMS#dump() so that its output can be more
consistent with IMMS#dump().

Bug: 27456430
Change-Id: Ie2321278f1d52533a3cd74d98f1f84c950a8f6d0
2016-03-08 15:16:07 -08:00
Steve McKay
f830017bd7 Show more menu items on larger devices.
Bug: 27036292, 27406771
Change-Id: I1ceee3c69fbda33a6c51c0ff4f28e52911c1ca7d
2016-03-08 15:15:48 -08:00
Paul Lawrence
20be5d6247 Add API to IMountService to get encryption state
Bug: 18002358
Change-Id: If7d9c9a5ed38ac37849fcf638ec10c76d2f419a1
2016-03-08 15:03:54 -08:00
Sudheer Shanka
e8cd832eea Merge "Remove RestrictedDropDownPreference class." into nyc-dev 2016-03-08 22:58:00 +00:00
Sudheer Shanka
97e89c624e Merge "Update DPM.getWifiMacAddress to take admin component as argument." into nyc-dev 2016-03-08 22:52:11 +00:00
Adrian Roos
b27f328262 Merge "Start trust agents earlier on successful unlocks" into nyc-dev 2016-03-08 22:51:38 +00:00
Jae Seo
e75f77326e Merge "TIF: Drop the requirement for ID tuple for non-broadcast channels" into nyc-dev 2016-03-08 22:49:30 +00:00
Adrian Roos
517b3a4d9f Start trust agents earlier on successful unlocks
Frequently, trust agents are not running because
a successful unlock is required for them to start.

Unfortunately, that means they were not able to receive the
successful unlock. To fix this, we'll now override
StrongAuth requirements and start agents early if we
detect a successful unlock.

Bug: 23021202
Change-Id: Ie85f78d9ce2823dd5c9b6215a52db069fb796d91
2016-03-08 14:48:24 -08:00
Paul McLean
c69ac54111 Make native_release() methods in AudioTrack and AudioRecord JNI-callable.
Change-Id: I31f8946579438021ba8f7ec58bf301a190082063
2016-03-08 15:47:35 -07:00