196101 Commits

Author SHA1 Message Date
Raph Levien
1149cdc84b Make measureText(String, int, int) not use context
The measureText method when applied to a string should just measure
the substring, rather than treat the entire string as context. It was
less likely to cause problems than the similar issues with char
arrays, but still wrong. This patch makes the behavior consistent.

Bug: 20087437
Change-Id: I1c6e07a694b151f4fb097edae8e271805e996d06
2015-06-24 14:05:52 -07:00
Adam Powell
c412be6824 Fix ChooserActivity check for still-alive ChooserTargets
Only prune ChooserTargets if the resolved activity source they came
from is still present after refreshing the list. Compare this directly
against the ComponentName rather than ResolveInfo.equals, as the
latter isn't implemented.

Bug 21953672

Change-Id: I6486bda85c19d7371167affe2a2b80a2668bd734
2015-06-24 13:54:10 -07:00
Adam Lesinski
c30454c104 Allow callers holding PACKAGE_USAGE_STATS permission to call ActivityManager#getPackageImportance()
Bug:22055550
Change-Id: I1e732e95698daf44bcb223cafde3d3c22746d232
2015-06-24 13:35:46 -07:00
Christopher Tate
1af5fe2308 Merge "Require that verified intent filters only have http/https <data> decls" into mnc-dev 2015-06-24 20:35:18 +00:00
Andrew Solovay
94f5fe8612 am f5222156: am 00ebd145: docs: Added "Single Use Devices" video to Android for Work main page
* commit 'f522215653bef1dc6bc5a140d6e1cb0cd2db7824':
  docs: Added "Single Use Devices" video to Android for Work main page
2015-06-24 20:27:51 +00:00
Robert Schaub
f496648e2d docs: Removed sentence from permissions doc
Bug: 21788582
Change-Id: Ifffed46dece0adb00671199c26c2fe995c4179ea
2015-06-24 13:19:49 -07:00
Christopher Tate
413020a6ca Require that verified intent filters only have http/https <data> decls
It is malformed to write a single intent filter like this:

  <intent-filter android:autoVerify="true">
    <data android:host="foo.example"
          android:path="/"
          android:scheme="http" />
    <data android:host="*"
          android:path="/custom"
          android:scheme="fooexamplecustomscheme" />
  </intent-filter>

In practice this app is accidentally defining a filter that will match
"http://*".  This is now detected, and will never be auto-verified for
any of the mentioned domains.

Verified intent filters must *only* handle the http & https schemes.

Bug 21920537

Change-Id: I933cddbea23185d242565cac940e1e7a7e4e289b
2015-06-24 13:16:20 -07:00
Andrew Solovay
f522215653 am 00ebd145: docs: Added "Single Use Devices" video to Android for Work main page
* commit '00ebd145d1572e0d12403ed0194d540926996f0e':
  docs: Added "Single Use Devices" video to Android for Work main page
2015-06-24 20:15:17 +00:00
Alex Klyubin
d4e9e0e1d6 Merge "Keymaster INT, LONG and DATE tag values are unsigned." into mnc-dev 2015-06-24 20:03:10 +00:00
Tony Mantler
e16ee482a6 Merge "Notify on BAD_REMOVAL and pass fsUuid in broadcast" into mnc-dev 2015-06-24 19:48:34 +00:00
Christopher Tate
80b60bbb5e Merge "Fix NPE when walking the set of packages to update app link policy" into mnc-dev 2015-06-24 19:45:29 +00:00
Makoto Onuki
0633ae7481 Merge "Actually wait for installd" into mnc-dev 2015-06-24 19:25:28 +00:00
Christopher Tate
af15d9e755 Fix NPE when walking the set of packages to update app link policy
Bug 21851441

Change-Id: I3616c5a7e40f5ff9ad9bbfee579a4a2fb2b1f7fd
2015-06-24 12:21:14 -07:00
Chris Wren
a05db3816b remove setLatestEventInfo
This has been deprecated since API 11.

Bug: 18510449
Change-Id: Ibd052572aa8c332daf5f6a604afe1925e8998a2b
2015-06-24 15:18:34 -04:00
Andrew Solovay
00ebd145d1 docs: Added "Single Use Devices" video to Android for Work main page
See first comment for doc stage location.

Change-Id: I0b64f8462eebc5d11c7972fd49147fdd1d6cdd3a
2015-06-24 11:56:56 -07:00
John Spurlock
6b0f384f00 Merge "Volume Motion: Initial show and expand transition." into mnc-dev 2015-06-24 18:47:08 +00:00
Adam Lesinski
67f170993f Merge "Fix unit issue in Slog.wtf output" into mnc-dev 2015-06-24 18:45:54 +00:00
Tony Mantler
f0d710578e Notify on BAD_REMOVAL and pass fsUuid in broadcast
b/21328721

Change-Id: I6d2fd18468bcde72e4c050b975fd7286716fbc50
2015-06-24 11:45:25 -07:00
Adam Lesinski
7b3c7529c7 Fix unit issue in Slog.wtf output
Bug:22063930
Change-Id: I02add66892eb32b1df7e845b8542beb928d2b3ca
2015-06-24 11:42:49 -07:00
Alan Viverette
9bf9a3a99e Merge "Constrain FastScroller max width to be >= 0" into mnc-dev 2015-06-24 18:22:33 +00:00
Todd Volkert
5f8e4675ae Remove unused PermissionsInfo class
b/22008424

Change-Id: I53fc04af89c89cc1726dd80b05f2e18d5cc53524
2015-06-24 11:10:37 -07:00
John Spurlock
22def3d4eb Volume Motion: Initial show and expand transition.
Also re-enable the content collapse layout transition animations,
supported by ensuring the dialog window is tall enough for long
enough to complete the transition, avoiding clipping.

Bug: 21335976
Change-Id: Ibc4cbb1e882c1e11c4406463752afa177fb1e6d7
2015-06-24 14:04:18 -04:00
Chris Craik
6659ac77ed Merge "Avoid over-damaging layer area for multidraws" into mnc-dev 2015-06-24 17:58:01 +00:00
Chris Wren
ccba036dd3 Merge "don't clear notification effects in response to peeks" into mnc-dev 2015-06-24 17:54:23 +00:00
Geoff Mendal
521db337f3 Merge "Import translations. DO NOT MERGE" into mnc-dev 2015-06-24 17:48:33 +00:00
Nancy Chen
8e0aab7dd5 Merge "Add public action to open voicemail settings." into mnc-dev 2015-06-24 17:37:45 +00:00
Santos Cordon
c8cedd5311 Merge "InCallService meta-data [2/4]" into mnc-dev 2015-06-24 17:37:13 +00:00
Andres Morales
070fe63962 [LockSettings] clear secure user id when user is removed
Needed for QCOM HALs and for general good housekeeping

Bug: 22011857
Change-Id: I6cc157a88ee125ecbf81fc51c226c63ba1d34b80
2015-06-24 10:37:10 -07:00
Santos Cordon
b6acf517ff Merge "Additional javadoc." into mnc-dev 2015-06-24 17:36:58 +00:00
Geoff Mendal
1ee2070e99 Import translations. DO NOT MERGE
Change-Id: Ifa40f7574852f801ed717c87cc9803a64dac5d78
Auto-generated-cl: translation import
2015-06-24 10:30:01 -07:00
Alan Viverette
c98922ba2f Constrain FastScroller max width to be >= 0
Bug: 22055552
Change-Id: Ib0bba93e5490ad9d8668c9532f23654a8cb702d9
2015-06-24 10:22:02 -07:00
Chris Wren
1689594851 don't clear notification effects in response to peeks
When the heads up appears it generates a visibility event for the panel.
This always clears the notification effects (buzz, beep, blink).
If we suppress that for heads up notifications, we never get another chance.
So we add a new call when we open the shade from the heads up to catch this case.

Bug: 20947591
Change-Id: I233e5346617ca2fce7851bd85154c838849df8f7
2015-06-24 13:21:47 -04:00
Selim Cinek
245273ec8d Fixed an inconsistency when booting up with SIMPIn
The lockscreen was skipped when the security mode was
swipe, which is inconsistent with the normal bootup
behavior.

Bug: 21850021
Change-Id: I2c59b1428d489fad566097771ca449ba667f34d2
2015-06-24 13:17:56 -04:00
Makoto Onuki
c8a2cfed01 Actually wait for installd
Bug 19337445

Change-Id: I70bdaa0ac3695ac9d03ba34fe9d35fe775a5300d
2015-06-24 09:52:58 -07:00
Selim Cinek
edd32b8817 Fixed a bug with encryption where the keyguard was never shown with PIN
This led to the network being unusable.
We now ensure that the Keyguard is not notified of the SIM PIN
changes until after the initial dismissal logic is done.
In addition, the fullscreen PIN is now always shown immediately
and not until the user swipes up, which was an error before.
Also made sure that the Keyguard Scrim is correctly visible
when shown.

Bug: 21850021
Change-Id: I81804124bae30adf0e17e26cc42f67e48fc446e8
2015-06-24 12:52:19 -04:00
Chris Craik
3375f8ad30 Avoid over-damaging layer area for multidraws
bug:19608961

Change-Id: Ib7495f155da62a352e9a010a362fd40ec0acad21
2015-06-24 09:43:54 -07:00
Esteban Talavera
e4ffec210e Merge "Reset permission policy to default when device owner goes away" into mnc-dev 2015-06-24 16:42:36 +00:00
Esteban Talavera
28b9570d02 Reset permission policy to default when device owner goes away
Otherwise after the Device Owner is gone, runtime
permissions might still be auto granted/denied.
I understand that there are many other policies that
we don't reset after the device/profile owner goes
away (e.g. keyguard enabled/disabled). At least now
we have a single method when we could clear the
ones that we care about.

Bug: 21889278
Change-Id: I6997655e6ef6d474bd25ae1c323eca5b17944b16
2015-06-24 17:19:19 +01:00
Michael Wright
5edd0e06d5 Merge "Add new SOURCE_BLUETOOTH_STYLUS." into mnc-dev 2015-06-24 16:12:22 +00:00
Luan Nguyen
838a29a659 am c1b4b058: am c5a480d1: am fdad629f: am 6859a9f0: Merge "docs: Pare down the adb guide and remove sections that are duplicated in the tools list." into lmp-docs
* commit 'c1b4b0580ccdbccee25f4bc97e94530e4982e1f7':
  docs: Pare down the adb guide and remove sections that are duplicated in the tools list.
2015-06-24 15:29:47 +00:00
Luan Nguyen
c1b4b0580c am c5a480d1: am fdad629f: am 6859a9f0: Merge "docs: Pare down the adb guide and remove sections that are duplicated in the tools list." into lmp-docs
* commit 'c5a480d112f6ce8645d9e294c42b2baab3b56ab9':
  docs: Pare down the adb guide and remove sections that are duplicated in the tools list.
2015-06-24 15:16:57 +00:00
Luan Nguyen
c5a480d112 am fdad629f: am 6859a9f0: Merge "docs: Pare down the adb guide and remove sections that are duplicated in the tools list." into lmp-docs
* commit 'fdad629fc089783fa0b3caad62ba99a9083f8645':
  docs: Pare down the adb guide and remove sections that are duplicated in the tools list.
2015-06-24 15:05:13 +00:00
Tom Hudson
a81a0c8647 Merge "Sync canvas proxy CTM (b/21945972)" into mnc-dev 2015-06-24 14:53:58 +00:00
Luan Nguyen
fdad629fc0 am 6859a9f0: Merge "docs: Pare down the adb guide and remove sections that are duplicated in the tools list." into lmp-docs
* commit '6859a9f09049d1dc760b98a6cbb278b591de63a6':
  docs: Pare down the adb guide and remove sections that are duplicated in the tools list.
2015-06-24 14:51:30 +00:00
Luan Nguyen
6859a9f090 Merge "docs: Pare down the adb guide and remove sections that are duplicated in the tools list." into lmp-docs 2015-06-24 14:43:31 +00:00
Tom Hudson
90fb1f6732 Sync canvas proxy CTM (b/21945972)
SkiaCanvasProxy was being created with an identity transform, ignoring
any transform that may have been applied in Java (or C++) to the
android graphics Canvas it was proxy for. This CL makes sure the
DisplayListCanvas transform is propagated to the Proxy every time
asSkCanvas() is called.

We could instead move the code to the SkiaCanvasProxy constructor
if we got rid of the cached proxy on DisplayListCanvas; nobody's
using the proxy heavily enough that that should be a performance
hit at this time.

BUG:21945972
R=djsollen@google.com

Change-Id: I99ed1563802a2449bb9939cb67976cd60dd8611c
2015-06-24 10:43:16 -04:00
Geoff Mendal
e042f952b3 Import translations. DO NOT MERGE
Change-Id: I23e3d5c71af8db285d657cf5dafbebc5c4bbad6b
Auto-generated-cl: translation import
2015-06-24 08:58:21 -05:00
Erik Kline
ed1b45968e Don't lose critical success/failure messages
Occasionally, "dumpsys connectivity --diag" will show measurement
results without success or failure messages.  Properly record the
error before decrementing the countdown latch.

Bug: 20733156
Change-Id: Ic654dedb753a65a96fe870f79fb296fbfc459fcb
2015-06-24 20:02:20 +09:00
Andrei Stingaceanu
2e5615467e Merge "Floating toolbar shown after rotation in extract mode" into mnc-dev 2015-06-24 09:16:36 +00:00
Lorenzo Colitti
9ce8a9da40 Use heads-up notifications when selecting networks with no Internet
Currently, when connecting to a network that has a captive portal
or has no Internet access, we display a regular notification.
Because this notification is easy to miss, switch to using a
heads-up notification if the user just manually selected the
network. If the system connects automatically, continue to use a
regular notification.

Bug: 20081183
Change-Id: I7a988b2bddfe898a0d2607ad85a04b227d678469
2015-06-24 17:47:44 +09:00