Commit Graph

301953 Commits

Author SHA1 Message Date
Bill Yi
fd9d6dc79f Import translations. DO NOT MERGE
am: 1b9fbcf993  -s ours

Change-Id: I62087ae560d498455ea0c50cdee622475eb31100
2016-11-11 18:54:51 +00:00
Marco Nelissen
01d023e966 Make AmrInputStream use MediaCodec
Bug: 32114618
Test: ran CTS test
Change-Id: I9fe77689bf0bcd1bc8f6c5a4d62135271c7bef8b
2016-11-11 10:53:09 -08:00
TreeHugger Robot
8f278a7e06 Merge "Import translations. DO NOT MERGE" into cw-f-dev 2016-11-11 18:48:48 +00:00
TreeHugger Robot
47e6925d54 Merge "Import translations. DO NOT MERGE" into cw-f-dev 2016-11-11 18:47:31 +00:00
Manu Cornet
26eec78179 Move the 'next launch target' logic into the task stack
For better reusability in other flavors of Recents.

Bug: 32101881
Test: Behavior is covered by existing automated tests.
Change-Id: Ibe39cbae0b5973210cad478a9c5ab75280ee0ac2
2016-11-11 10:30:17 -08:00
Tyler Gunn
7519e16698 Merge "Add CAPABILITY_SUPPORTS_VIDEO_CALLING to PhoneAccount." 2016-11-11 18:01:25 +00:00
Manu Cornet
1c714db4d0 Allow fallthrough taps on Recents background to go Home
In some cases the recents view isn't entirely occupied by task views.
Taps on the empty space should take the user home, which was mostly
supported except for this small missing part.

Bug: 32101881
Test: Locally on Ryu device.
Change-Id: I264202397f7408608aa444a421765715fb1e74ba
2016-11-11 09:28:34 -08:00
Jason Monk
3713151425 Merge changes I52007c69,I6503947e,Icf677f4a,I2ae7ed61
* changes:
  Unit testing for fragments.
  Plugin fragment support
  Move QS to a fragment
  Fragments in SysUI!
2016-11-11 16:38:57 +00:00
Jason Monk
bd199a2b93 Merge "android.provider.Setting test utilities" 2016-11-11 16:28:39 +00:00
Jason Monk
8852905b0b Unit testing for fragments.
Set up a base class for testing fragments that will generate the host
and run the fragment through some lifecycle checks to make sure it
does ok with standard lifecycle.

Fragment tests will also automatically check for any sort of leaks
related to bindings, receivers, or other callbacks in sysui. This
requires changing the statusbar.policy classes with callbacks to
have a common interface.

Lastly also fixes a few lifecycle bugs in QS found from the above
tests.

Bug: 32609190
Test: runtest systemui
Change-Id: I52007c696c2fd41914bba4ba9d8055f2b564a7d8
2016-11-11 11:20:10 -05:00
Jason Monk
f4e019aaad Plugin fragment support
Allows fragments to be easily switched over to plugins and a provides
a convenient base class for plugins to use that makes sure the layout
inflater and context point at the plugin's and not sysui's.

Bug: 32609190
Test: runtest systemui

Change-Id: I6503947e980f66ddcd826f6ca9a92b591ce0eb1e
2016-11-11 11:19:52 -05:00
Jason Monk
0ceef21187 Move QS to a fragment
There is now a bit too much of the view/layout logic touching the
fragment, but sort out that later and get something over to fragments
for now.

Bug: 32609190
Test: Manual
Change-Id: Icf677f4a70e6b92892a0fc27a0e673940ebc7a73
2016-11-11 11:19:16 -05:00
Jason Monk
bbac121e44 Fragments in SysUI!
Add system to add fragments to sysui windows for better code
modularity and testability.

Bug: 32609190
Test: Manual
Change-Id: I2ae7ed6133aff3fc5cdbdb3ec89d55183b7ac797
2016-11-11 11:19:15 -05:00
Jason Monk
e97892844a android.provider.Setting test utilities
Add a way to fake values for settings in tests. Since the content
provider is cached in the NameValueCache, there is one static
FakeSettingsProvider that passes through all values to the
real SettingsProvider by default. Values that are required for
the test can be acquired and locked for the duration of the test
easily.

Test: runtest systemui
Change-Id: Ibc31ac8509fb31a22c522358a9c1bae6ec63553b
2016-11-11 09:52:17 -05:00
Julia Reynolds
3785605a44 Make getter & setting names consistent.
Test: runtest systemui-notification
Change-Id: Iff746f0ae149d1b09792e240503db9d008fe267c
2016-11-11 09:36:52 -05:00
Jerome Gaillard
a10973ebd1 Rename native methods that were changed in the platform
This is following commits f22859757b, 94931bd87e, 4387190d8e
and caa08ff5e9.

Test: Run TestDelegates
Change-Id: If90028492c036fc5f69913e4dcad5a1a5fca4b55
2016-11-11 14:11:03 +00:00
Jason Monk
97a06a12ed Add switchable theme to tuner
Allows option in tuner to switch between system theme overlays
if multiple exist. Requires a restart to take effect.

Test: Settings -> Tuner -> Other -> Theme
Change-Id: Iea43b9cbb67fd91c6008be594ad4cfd19c3f57ec
2016-11-11 09:01:20 -05:00
Jerome Gaillard
126dd25d5b Merge "Update testActivity" 2016-11-11 12:56:51 +00:00
Bill Yi
f5ffd25c53 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 32766034
Change-Id: I9086f7b84b9bcdb6df83033e3d0fac621ec2c6e0
2016-11-10 21:16:01 -08:00
Bill Yi
1b9fbcf993 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 32766034
Change-Id: If37bb6852c438a2b3579f4af2045841d30be829e
2016-11-10 21:12:09 -08:00
Bill Yi
b8aaaa8949 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 32766034
Change-Id: Iedf58d553e92d709ee8e7b4c7423d7e5a13a4996
2016-11-10 20:49:23 -08:00
Bill Yi
05a48e2a3d Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 32766034
Change-Id: Iaad4fea006740a06defea8a03fcd070f670e331a
2016-11-10 20:46:18 -08:00
Bill Yi
3bd78c2416 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 32766034
Change-Id: Iade7d25f2c66d2014fe58640bd66dc953649edf2
2016-11-10 20:43:06 -08:00
Bill Yi
c51dd09193 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 32766034
Change-Id: Ib8d20a325693588125631810c810665922d4191a
2016-11-10 20:39:44 -08:00
Brian Carlstrom
b272d7cb13 Merge "Zygote : Block SIGCHLD during fork." into mnc-dr-dev am: 5d0cabf78e
am: 3be5dec18a

Change-Id: Ib0a197c84b21a8f7ce40d0e4c56b2e8d8346804c
2016-11-11 04:19:17 +00:00
Yohei Yukawa
5959af13d0 Introduce EditorInfo.IME_FLAG_NO_PERSONALIZED_LEARNING
In some situations it would be useful if the application can give a
hint that the user is not likely to want the IME to update
personalized data such as typing history and personalized language
model based on what the user typed the input area.

Typical use cases are:
 * When the application is in a special mode, where user's activities
   are expected to be not recorded in the application's history.
   Some web browsers and chat applications may have this kind of
   modes.
 * When storing typing history does not make much sense. Specifying
   this flag in typing games may help to avoid typing history from
   being filled up with words that the user is less likely to type
   in their daily life. Another example is that when the application
   already knows that the expected input is not a valid word (e.g.
   a promotion code that is not a valid word in any natural language).

Applications need to be aware that the flag is not a guarantee, and
some IMEs may not respect it.

Since this is basically about the general behavior that can be
combined with any of type of input types, this CL uses
EditorInfo.imeOptions instead of EditorInfo.inputType.

Also so far it look OK to do nothing in EditorInfo#makeCompatible()
regarding this flag because 1) this bit (0x1000000) has never been
used and 2) it is less likely that just passing that bit to an IME
that do not know about this bit causes any issue.

Bug: 28157942
Test: compile only as this is just a hint and OS does nothing
Change-Id: Ibf5ac3d2b8f39542baf2635c0cadbe242b059f81
2016-11-10 20:18:30 -08:00
Narayan Kamath
52021073a4 Zygote : Block SIGCHLD during fork. am: b6f3751599
am: b23e864573

Change-Id: I01281c04a6fba8ce2b7240b9654df3ff515fb8f6
2016-11-11 04:18:07 +00:00
Bill Yi
e65092639f Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 32766034
Change-Id: Ife576e74510d81bdf004e911f46d294a75aba7b5
2016-11-10 20:12:02 -08:00
Brian Carlstrom
3be5dec18a Merge "Zygote : Block SIGCHLD during fork." into mnc-dr-dev
am: 5d0cabf78e

Change-Id: I7df6aac34bab92746b226b622db56c7f9d1d8cef
2016-11-11 04:11:38 +00:00
Narayan Kamath
b23e864573 Zygote : Block SIGCHLD during fork.
am: b6f3751599

Change-Id: I1bc21b7ede2151803313cb3c827b051d4decf795
2016-11-11 04:11:35 +00:00
Brian Carlstrom
5d0cabf78e Merge "Zygote : Block SIGCHLD during fork." into mnc-dr-dev 2016-11-11 04:03:02 +00:00
liangweikang
84086bb997 Merge "fixed applyConfigurationToResourcesLocked WeakReference is null" am: 264d1f12a3 am: 45562df8bb am: b95e567919
am: 04a9be65c8

Change-Id: I94321a4192a854feb171b35fc2930887095d2da3
2016-11-11 03:46:14 +00:00
Yohei Yukawa
e9b99f8260 Merge changes I7918c0a3,I19d87fc1
* changes:
  Support content URIs w/ userId in IC#commitContent
  Fix up content URI for different users
2016-11-11 03:40:32 +00:00
liangweikang
04a9be65c8 Merge "fixed applyConfigurationToResourcesLocked WeakReference is null" am: 264d1f12a3 am: 45562df8bb
am: b95e567919

Change-Id: I2916de2a4c09849e12bff2dea5a4cd34c080b2f9
2016-11-11 03:39:39 +00:00
Yohei Yukawa
3933a6e0c3 Support content URIs w/ userId in IC#commitContent
With this CL, one can specify a content URI with an embedded user ID to
InputContentInfo, like such a URI is supported in
Context#grantUriPermission().

Note that such a scenario is actually possible when 1) an application
running as User X sets a content URI to the system clipboard then 2) the
IME runing as User Y who share the clipboard with User X obtains the
content URI from the system and tries to create a new instance of
InputContentInfo.

Bug: 32427307
Bug: 32778718
Test: 'adb shell dumpsys activity permissions' with a custom IME that
      instantiates InputContentInfo from the content URI obtained from
      the clipboard.
Change-Id: I7918c0a379b8f3e7e64b106447b42447876f9057
2016-11-11 03:39:25 +00:00
Yohei Yukawa
16e67edb36 Fix up content URI for different users
Currently Commit Content API work only when the content URI provided by
the IME is accessible to the target application.  This is non-trivial if
the target application is running as a different user (profile) and it
is actually a possible scenario when managed profile is enabled.

This CL takes care of such a situation, by fixing up the content URI
when and only when InputContentInfo#getContentUri() is called from a
different user than the owner of the content URI.

This CL also makes it clear that we currently do not support content
URIs that already have embedded user IDs.  Since
IActivityManager#grantUriPermissionFromOwner() does not support such
URIs, we should have had a special handling for such a case, which will
be addressed in a subsequent CL.

Bug: 32427307
Bug: 32778718
Test: Made sure that Commit Content API works as expected on a managed
      profile created by
      https://github.com/googlesamples/android-testdpc
Change-Id: I19d87fc19beea248f49b59ec5a5711b95bcbb466
2016-11-11 03:38:15 +00:00
liangweikang
b95e567919 Merge "fixed applyConfigurationToResourcesLocked WeakReference is null" am: 264d1f12a3
am: 45562df8bb

Change-Id: Ibd3818f9b37ee58c6225a9b6d7cefd486f20bdb9
2016-11-11 03:32:05 +00:00
liangweikang
45562df8bb Merge "fixed applyConfigurationToResourcesLocked WeakReference is null"
am: 264d1f12a3

Change-Id: Icfaf039b078d7ce43b23bed09cd0102427c6f047
2016-11-11 03:25:41 +00:00
Treehugger Robot
264d1f12a3 Merge "fixed applyConfigurationToResourcesLocked WeakReference is null" 2016-11-11 03:16:42 +00:00
Robert Sesek
06af1c0ede Respect force_mount_namespace in MountEmulatedStorage().
In Ieb75cc3009ed26b7366213409d5fad836f597084, the unshare step was
skipped if no storage is required. But the change failed to take the force
parameter into account

Test: m
Test: angler boots
Test: fugu boots

Bug: 21643067
Change-Id: I52447f02fd25f553628564733fd6bf2523c07f7c
2016-11-10 21:50:04 -05:00
Narayan Kamath
ba6d5ee377 Zygote : Block SIGCHLD during fork. am: b1f1209d9a am: 35b8453338 am: 14bd75fa79 am: 50b0c3be57 -s ours am: e1e735bcb9
am: 072b70bae3

Change-Id: I15a813590f1e8aed95f2f7614971b40113b17521
2016-11-11 02:09:32 +00:00
Narayan Kamath
072b70bae3 Zygote : Block SIGCHLD during fork. am: b1f1209d9a am: 35b8453338 am: 14bd75fa79 am: 50b0c3be57 -s ours
am: e1e735bcb9

Change-Id: I07af6efeed14cabe3aa7d41b2a9eaad2ccff62c6
2016-11-11 02:03:00 +00:00
Fyodor Kupolov
8d3e82bdfc Report boot statistics
Added the following metrics:
- tron_varz_boot_package_manager_init_start
- tron_varz_boot_package_manager_init_ready
- tron_varz_boot_system_server_init
- tron_varz_boot_system_server_ready

Test: manual - device boots, adb logcat -b events
Bug: 32780225
Change-Id: I0eeda831e2a13a7cbcef3308d5dad1bfa63919c1
2016-11-10 17:59:01 -08:00
Clara Bayarri
7eda644785 Revert "Add Build.isAtLeastO"
This reverts commit 3b8b07c8f4.

Bug: 32668621
Test: this is a revert, no original tests
Change-Id: I893025f32423aed3fe15a64c22753d24aafc4e65
2016-11-11 01:56:32 +00:00
Narayan Kamath
e1e735bcb9 Zygote : Block SIGCHLD during fork. am: b1f1209d9a am: 35b8453338 am: 14bd75fa79
am: 50b0c3be57  -s ours

Change-Id: I745d1c8e0066b0a7864d931b268b04a9458c7984
2016-11-11 01:56:28 +00:00
Narayan Kamath
b6f3751599 Zygote : Block SIGCHLD during fork.
We close the android logging related sockets prior as late as possible
before every fork to avoid having to whitelist them. If one of the
zygote's children dies after this point (but prior to the fork), we can
end up reopening the logging sockets from the SIGCHLD signal handler.

To prevent this from happening, block SIGCHLD during this critical
section.

Bug: 32693692
Test: Manual

(cherry picked from commit e9a525829a)

Zygote: Unblock SIGCHLD in the parent after fork.

Follow up to change e9a525829a. Allows the zygote to
receive SIGCHLD again and prevents the zygote from getting into a
zombie state if it's killed.

Contributed-By: rhed_jao <rhed_jao@htc.com>
Bug: 32693692
Test: manual

(cherry picked from commit c7161f756e86b98f2244a04d9207b47149965fd7)

Change-Id: If89903a29c84dfc9b056f9e19618046874bba689
(cherry picked from commit dfcc79ee8e)
2016-11-11 01:21:35 +00:00
TreeHugger Robot
a4438c4977 Merge "Adding experiment for minimized pinned stack." 2016-11-11 00:54:13 +00:00
TreeHugger Robot
1c47a0bea6 Merge "Customize camera gesture vibrator pattern" 2016-11-11 00:43:54 +00:00
Robert Sesek
a42d5770c7 Merge "In MountEmulatedStorage() don't create a mount namespace unless actually mounting." am: c0aacbe513 am: ae06fba67a am: b82970846b
am: 97d99600e9

Change-Id: Id8d0d78e01bd8e0e876fa4564eee67fe18937065
2016-11-11 00:32:02 +00:00
Robert Sesek
97d99600e9 Merge "In MountEmulatedStorage() don't create a mount namespace unless actually mounting." am: c0aacbe513 am: ae06fba67a
am: b82970846b

Change-Id: I02bb609e76bd44130e9d3dd4082e134d935376cd
2016-11-11 00:25:51 +00:00