235657 Commits

Author SHA1 Message Date
Diego Perez
adf62b3ebc Do not deallocate on Bitmap.recycle
Layoutlib only disposes the bitmap and doesn't recycle them. This causes
a double deallocation that triggers an assertion.
This change makes Bitmaps to be only freed when the finalizer is called.

Bug: http://b.android.com/203129
Change-Id: Ieabc1443544cfd2b4bf8ba9c8f9a4df8dd6e8220
2016-03-14 09:31:07 +00:00
Keisuke Kuroyanagi
f8e0da2624 Show SuggestionsPopup when there is a misspelled span.
Due to I20a86c1bdeb361686, SuggestionsPopup was not shown when there
is a suggestion span that has misspelled flag and doesn't has any
suggestions. This CL makes SuggestionHelper#getSuggestionInfo return
misspelled span info separately.

Bug: 27534987

Change-Id: Ib76588f9388287a04f1f6c9d9067ae439e493a95
2016-03-14 15:48:18 +09:00
Daichi Hirono
497b473b8a MtpDocumentsProvider returns mime type from file extension.
File extensions contain more information to determine mime type than MTP
format codes. The CL lets MtpDocumentsProvider return mime type from
file extensions if it's not inconsitent with format code.

BUG=27004954

Change-Id: I08a4a91235b1d3f48e77b70b28c8c5aedf8d601d
2016-03-14 15:30:37 +09:00
Jaesung Chung
1043f56185 ExifInterface: ignore exceptions when getting wrong images
In order to maintain compatibility with the old versions of
ExifInterface, non-JPEG image files, for instance, PNG, GIF and so on,
need to be handled by generating an empty result rather than throwing
an exception in the constructor. And corrupted JPG files also should be
handled in the same way.

Bug: 27587980
Change-Id: If33b63c683bfb672999d1abd370a8edf29932ac1
2016-03-14 15:16:47 +09:00
Jaewan Kim
eafce4537e PIP: Update char limit and description for translation
This also includes the PIP bound fix.

Bug: 27604658, Bug: 27600435
Change-Id: I57ca971e5ed19475cb8d29e1c838d4defc1e106f
2016-03-14 14:56:57 +09:00
Seigo Nonaka
62006a72a6 Merge "Remove duplicated test cases." into nyc-dev 2016-03-14 04:11:01 +00:00
Pierre Imai
68fe236172 Merge "Remove an unnecessary InputStream and prevent leaking memory." into nyc-dev 2016-03-14 02:54:11 +00:00
Carlos Valdivia
d39600585b Permissions: Get rid of GET_ACCOUNTS
Second attempt. Still need to add strict mode violation checks and
logging.

Bug: 21901286

This reverts commit bf33bd4d31cfec895c96990525b0cb856407c8d6.

Change-Id: I5d73343544c32ce4fc4c377ba44db8e677a1287d
2016-03-13 17:13:54 -07:00
Roozbeh Pournader
8829e6b730 Merge "Remove Basque hyphenation patterns" into nyc-dev 2016-03-13 09:19:25 +00:00
Roozbeh Pournader
217a86c709 Remove Basque hyphenation patterns
Change-Id: Ib59de7c96fe19da9534fe65c3d553dc7c5399a1f
2016-03-12 20:56:23 -08:00
Brian Carlstrom
66f4831aa1 frameworks/base: Make Thread::run threadName argument required
Bug: 27557176
Change-Id: Icff15e51fb7c99387ac8317181d12749f343439a
2016-03-12 16:07:48 -08:00
Nick Kralevich
3972507684 fix spelling
Change-Id: I82e64fa8a64be0fbfda748e6b57b5d339fd6f903
2016-03-12 15:00:50 -08:00
Mady Mellor
466b702cac Merge "Revert "Revert "Improve interaction around showing / hiding the gear behind notifications""" into nyc-dev 2016-03-12 17:50:42 +00:00
Zachary Kuznia
fd6aa8a1fa Fix double tap issue in TouchExplorer
In certain conditions, the first tap in a double tap could be detected
as Touch Exploration.  This ensures that cannot occur.

Change-Id: I20941be54413534d9dc74e5a3152c27dd0c998fe
2016-03-11 20:21:13 -08:00
Ryan Bavetta
c92bbd7cdb Adds E2E tests for soundtrigger stub HAL load/start/trigger/stop/unload
These tests can only be run with the stub HAL. The test's Android.mk
file excludes these tests when run without the flag
SOUND_TRIGGER_USE_STUB_MODULE=1

To run the stub HAL tests, run:
SOUND_TRIGGER_USE_STUB_MODULE=1 runtest \
--path ./frameworks/base/tests/SoundTriggerTests

Change-Id: Iac144c51b8a387e94ad25d283715842d46e6e618
2016-03-11 20:06:05 -08:00
Chris Craik
701b3cc0db Dump full Glop in GlopBuilder::dump
Change-Id: I022b3c8c265998fd97d41f13964f4703025b338a
2016-03-11 18:39:01 -08:00
George Mount
ca11a73cb1 Added internal test for AutoTransition.
Change-Id: Ieee0f4ed8a418293043f19f6edfc1c8302fec7f2
2016-03-11 18:23:17 -08:00
Wale Ogunwale
9185fb07c4 Disable FLAG_LAYOUT_NO_LIMITS window flag in multi-window mode
FLAG_LAYOUT_NO_LIMITS allows a window to extend its dimensions outside
the screen area by setting the display frame to a really big value.
We don't want this in multi-window mode since all window frames should
be limited to their parent task/stack dimensions.

Bug: 27577275
Change-Id: Ie0a8b8c13de91561e06dadc27aac3a5ba209d05b
2016-03-11 18:15:58 -08:00
Dianne Hackborn
20c9aa735e Merge "Fix issue #27530395: API Review: JobInfo.Builder" into nyc-dev 2016-03-12 02:12:12 +00:00
Carlos Valdivia
83d036f497 Merge "Logging to KEY_INTENT security failure" into nyc-dev 2016-03-12 02:06:39 +00:00
Chris Tate
fcbe17e1e0 Merge "Once restored, the wallpaper needs to actually draw" into nyc-dev 2016-03-12 01:55:19 +00:00
Christopher Tate
41297ff82c Once restored, the wallpaper needs to actually draw
We now wait until both the wallpaper imagery and the metadata have
been restored [if present], and then explicitly regenerate the crop
from the source based on that.

Bug 27423845

Change-Id: I986efd13b6b73d25b5ab1215af516ccea3a5c609
2016-03-11 17:51:33 -08:00
Selim Cinek
48103be6a2 Merge "Fixed a bug where the expandhelper was expanding to quickly" into nyc-dev 2016-03-12 01:43:50 +00:00
Carlos Valdivia
6ede9c3d22 Logging to KEY_INTENT security failure
To help debugging we would like to know the targetPackageName and uid of
the KEY_INTENT that is being rejected.

Bug: 27598664
Change-Id: Idcf1eea82a96913947975b6fe3aa1e9c6e5109a7
2016-03-11 17:42:55 -08:00
Michael Wright
4b0fa173de Make display mirroring for local displays configurable.
While in general we still want to mirror the content of the default
displays onto content-less displays, some devices (e.g. Android Auto)
know they're going to have a secondary display for specific
information and don't want this behavior.

Change-Id: I068cc898a4118e78a5fff67bba27ad54504d9e2f
2016-03-11 17:28:35 -08:00
Selim Cinek
821d6a7735 Fixed a bug where the expandhelper was expanding to quickly
It was expanding even when the xDifference was bigger than the
yDifference.

Bug: 27376558
Change-Id: Ie5faeb40a1b8391ace8822f9f210f519302ca133
2016-03-11 17:24:19 -08:00
Mady Mellor
3a5e8dd820 Revert "Revert "Improve interaction around showing / hiding the gear behind notifications""
This reverts commit 88eca2aa0e707c06731fc273af4e6181ad743c3c.

It additionally fixes an issue with notification scrolling after gear is displayed
by indicating that the user is no longer swiping by calling onDragCancelled

Change-Id: Ieba0cea35bba9c383d8b5fdca08cb5ff083666c3
2016-03-11 17:17:00 -08:00
Jean-Michel Trivi
a40c017ba2 Merge "Dynamic audio policies: allow device passing for RENDER mixes" into nyc-dev 2016-03-12 01:09:11 +00:00
Ronghua Wu
f173c32344 core: add hdr capabilities to display
Bug: 25684127
Change-Id: I6f86a77cf9507576e871bf20a2a99148deb45b5a
2016-03-11 17:01:10 -08:00
Stephen Hines
102c51229f Merge "Fix some errors in errorCalculator.rs." into nyc-dev 2016-03-12 00:56:44 +00:00
Selim Cinek
53c9fa98e2 Merge "Fixed a bug where expanding in the bottom stack messed up the whole layout" into nyc-dev 2016-03-12 00:56:11 +00:00
Stephen Hines
1eeceefb04 Fix some errors in errorCalculator.rs.
Bug: http://b/26987366

This code was accidentally casting a uchar4 to a single integer, which
the latest llvm-rs-cc will flag as an error. The comparison was also
incorrectly using a single integer comparison, instead of looking at all
4 uchar vector components.

(cherry picked from commit 74be0c9b4329bb79ed46f2532022995429ffdfe8)

Change-Id: Ic3727e234ffc87571ccacab19b2a4efb27ac0f20
2016-03-11 16:52:09 -08:00
Selim Cinek
4e4cac3031 Fixed a bug where expanding in the bottom stack messed up the whole layout
Bug: 27596737
Change-Id: If6d5f693bbc953962eb2e746a6293d66be3c4373
2016-03-11 16:45:52 -08:00
Jean-Michel Trivi
e8924115f9 Dynamic audio policies: allow device passing for RENDER mixes
AudioMix: add system method for specifying an AudioDeviceInfo
 to be used by this mix. This only works for AudioMix
 instance with the RENDER route flag.
Previous dynamic policy implementation didn't enforce
 mix route flag check, but only supported LOOP_BACK,
 so make LOOP_BACK the default.
When a policy gets registered and the registration ID is
 set on each mix, for RENDER mixes use the device
 address for registration.

Bug 25448664

Change-Id: If5789d84ff4c4c25a6e81ba1513a39916220498a
2016-03-11 16:45:27 -08:00
Steve McKay
0a96dae887 Merge "Run all downloads through trampoline." into nyc-dev 2016-03-12 00:43:45 +00:00
Steve McKay
3e63e7de23 Run all downloads through trampoline.
This guarantees the retry/delete support in the downloads
    trampoline can do its thing.
Allow APKs not in downloads to go directly to pakcage
    manager via VIEW intent.
Add test coverage for retry dialog.

Bug: 27539337

Change-Id: I75c5db8915e24a7648c7990136d39ed86d407637
2016-03-11 16:42:51 -08:00
Felipe Leme
bded63d9c9 Merge "Don't log metrics for initial screenshot." into nyc-dev 2016-03-12 00:38:34 +00:00
Anju Mathapati
f604fc33c6 IMS: Changes for MultiEndpoint
- Interface changes for MultiEndpoint

- Extra for CallPull in -
  - TelephonyProperties
  - ImsProfile
- Error codes in ImsReasonInfo

Change-Id: I9a497cf04a412dc9d2f80b489e3455d289c3dfb7
2016-03-11 16:08:06 -08:00
Yorke Lee
26903a3431 Merge "Fix for drag start event being incorrectly cached" into nyc-dev 2016-03-12 00:04:48 +00:00
Selim Cinek
6c5dddfdcf Merge changes Ia6156d7c,I396ac936 into nyc-dev
* changes:
  Fixed a bug with autoredacted custom views.
  Fixed a bug where notifications could become all white
2016-03-11 23:52:45 +00:00
Andrii Kulian
d5db062682 Merge "Update docs for DisplayMetrics pixel size fields" into nyc-dev 2016-03-11 23:50:47 +00:00
Makoto Onuki
d4c9e541ec Add ENCRYPTION_STATUS_ACTIVE_PER_USER to...
getStorageEncryptionStatus()
Use StorageManager APIs to get the encryption
state instead of from the system properties
directly.

Bug 26547262

Change-Id: Ic27baa9489d43a93873f8bb0428084f8886aed67
2016-03-11 15:50:04 -08:00
Sergei Vasilinetc
67bd3b5256 Merge "Add GlopBuilder test for snapping" into nyc-dev 2016-03-11 23:43:10 +00:00
Mady Mellor
45eef7dbca Merge "Revert "Improve interaction around showing / hiding the gear behind notifications"" into nyc-dev 2016-03-11 23:41:08 +00:00
Andrii Kulian
a4bb9d3f52 Update Display#getRealMetrics() behaviour
Update behaviour of the method to actually return real size of the
display independent of current configuration.

Bug: 27548818
Bug: 26986895
Change-Id: I64ba65f305801d97d30aed1c9a6cf6881c94ceda
2016-03-11 15:40:53 -08:00
Steve McKay
b3df850806 Merge "Minor animation cleanup." into nyc-dev 2016-03-11 23:40:15 +00:00
Mady Mellor
88eca2aa0e Revert "Improve interaction around showing / hiding the gear behind notifications"
This reverts commit 273ed107f1d414571a01bf8ebd9c9ffa942d9e11.

Change-Id: I5f4d2c2dfa2bd965abd2ea2ec385639deb4511f9
2016-03-11 23:36:41 +00:00
Selim Cinek
a1744872f4 Fixed a bug with autoredacted custom views.
Bug: 27616717
Change-Id: Ia6156d7cadca0c1f9aadd49f76f62ac92991eced
2016-03-11 15:36:06 -08:00
Winson Chung
59917dfb6f Merge "Fix issue with the component layout not having updated on config change" into nyc-dev 2016-03-11 23:27:55 +00:00
Fyodor Kupolov
89f1622e48 Merge "Added logoutCurrentUser method" into nyc-dev 2016-03-11 23:25:10 +00:00