232381 Commits

Author SHA1 Message Date
Chad Brubaker
7879b8f4ab Use provided context directly
getApplicationContext may return null so use the provided context
instead.

Bug:27293859
Change-Id: Ic3b218bf5b0c23982c75a793f0374870bd8e9da1
2016-02-22 11:08:59 -08:00
Selim Cinek
9e37a70c1d Merge "Removed the notification scroller top stack" into nyc-dev 2016-02-09 19:25:05 +00:00
Glenn Kasten
f1cf2afd52 Merge "Update documentation for offset and size" into nyc-dev 2016-02-09 19:06:23 +00:00
Andres Morales
7364905303 Merge "updates to FrameStatsObserver API" into nyc-dev 2016-02-09 19:00:32 +00:00
Selim Gurun
75827b2fb6 Fix build break
Bug: 26874366
Change-Id: Ic7634cb9d823d4f74d2893f4c46a77a5af02a0a1
2016-02-09 10:55:33 -08:00
Glenn Kasten
518432e366 Update documentation for offset and size
Change-Id: Id9d5ef62767155cc8597795b43c4422f623574ed
2016-02-09 10:47:56 -08:00
Andres Morales
910beb8f5d updates to FrameStatsObserver API
- Rename to FrameMetrics to avoid collision with existing
  android.view.FrameStats class
- Make FrameMetricsObserver implementation detail,
  exposing FrameMetricsListener interface as public API
  and wrapping in FrameStatsObserver to maintain state
- Remove dropped frame count call, in favor of passing as
  parameter to callback method.
- Move away from raw timestamp access in favor of Metric IDs
  which represent higher-level, more stable stages in a frame
  lifecycle and match the categories exposed in the onscreen
  bars.
- Support many-to-many Window<->FrameMetricsListener relationship

Change-Id: I00e741d664d4c868b1b6d0131a23f8316bd8c5c2
2016-02-09 10:40:01 -08:00
Daichi Hirono
9fca541ab8 Relax mapping rule to make the mapping logic simple.
MtpDocumentsProvider remembers the mapping between SAF's ID and MTP's
ID. Sometimes we need to do heuristic to restore the mapping when MTP
device is reconnected.

Previously we do the mapping files that shares the same name more
strictly. For example,

1. Found file name "test.txt". Assign document ID "1".
2. MTP device is disconnected and the MTP ID of "1" is lost.
3. Found two files that have same name "test.txt" in the same directory.

Previously we don't reuse existing document ID "1" for neither of two
"test.txt" because it's not 1-to-1 mapping and we cannot determine which
one should be mapped with existing document ID. It means we need the
complete list of files in a directory to remap IDs. It takes long time
to fetch all file names in a directory when a directory has 100+
files. It's rare that a MTP device has the two files sharing the same
name in the same directory. Also the strict rule makes the mapping code
more complex.

The CL relax the rule of mapping, and it allows to reuse existing
document ID even if it is not 1-to-1 mapping. For the previous example,
it assigns "1" for either of "test.txt".

BUG=27053734
Change-Id: I19406fafc21f13ab94ba99411ce5e7f55ce7f658
(cherry picked from commit acdbc6e740ffbd465488b6eb0cf9388d43ae860a)
2016-02-09 18:36:27 +00:00
Selim Gurun
8b67c1697e Merge "Introduce a use32bitAbi flag" into nyc-dev 2016-02-09 18:32:28 +00:00
Brad Ebinger
65a803f4f2 Merge "Update TelecomManager docs regarding PhoneAccounts" into nyc-dev 2016-02-09 18:26:26 +00:00
Samuel Tan
eddbff07c4 Merge "WifiEnterpriseConfig: allow getting and setting of ca_path" into mm-wireless-dev
am: 8629390701

* commit '8629390701efe0ed74730a06ab2fc868a7ca265d':
  WifiEnterpriseConfig: allow getting and setting of ca_path
2016-02-09 18:23:43 +00:00
Selim Gurun
2d291d89f9 Introduce a use32bitAbi flag
Bug: 26874366

On Multiarch apps, it might be necessary to prioritize 32bit Abi ahead
of 64bit ones. The use32bitAbi flag enables this.

This CL also reverts the public api changes in  I2c1fd1d036efe72b28b5fe996416df69a583959f and Ie3ecea6d84e2cb1522e736a21c3a3a24ac62eb27. Previously
the same functionality was provided using a raw abi string that
utilized cpuabioverride flag.

Change-Id: Idce3cbfedd11ef9079ce8a2901e69d30b1cf9ef4
2016-02-09 10:20:21 -08:00
Samuel Tan
8629390701 Merge "WifiEnterpriseConfig: allow getting and setting of ca_path" into mm-wireless-dev 2016-02-09 18:18:05 +00:00
Pavel Zhamaitsiak
d820abddd2 Make ACTION_RADIO_OFF protected
Bug: 25113145
Change-Id: Idcb88cb1fd06d4761ef1f634136f8ec697bf0851
(cherry picked from commit ae6688ca5d2b506eff29ba27c7532513f2da7da8)
2016-02-09 18:16:48 +00:00
Chris Wren
ccdd08d37c Merge "don't allow assistant to block notifications." into nyc-dev 2016-02-09 17:49:45 +00:00
Winson Chung
e65db9b952 Merge changes I1eda3134,Ia7ad36a3 into nyc-dev
* changes:
  Updating paging animation to spec.
  Adding logging for timeout and other features.
2016-02-09 17:45:04 +00:00
Steven Ng
f854174ee6 Merge "Whitelist camera permission for SetupWizard" into nyc-dev 2016-02-09 17:32:01 +00:00
Jan Nordqvist
b1540f139d Merge "Fixed bad auto-generated method name." into mm-wireless-dev
am: cf132a1bbc

* commit 'cf132a1bbc676489cfa757317edf8af90c10a105':
  Fixed bad auto-generated method name.
2016-02-09 17:28:33 +00:00
Jan Nordqvist
cf132a1bbc Merge "Fixed bad auto-generated method name." into mm-wireless-dev 2016-02-09 17:24:21 +00:00
Phil Weaver
cc494765fa Merge "Clean up UiAutomation working alongside a11y." into nyc-dev 2016-02-09 16:59:26 +00:00
Chris Wren
4a4b49dcbc don't allow assistant to block notifications.
Bug: 26640716
Change-Id: I5c7b691ff664e8dafd39bf15cb1556731df2b0b9
2016-02-09 11:25:08 -05:00
Martijn Coenen
c61e102474 Merge "Fix dumpsys meminfo -c output." into nyc-dev 2016-02-09 13:33:46 +00:00
Neil Fuller
3fcec1a8dc Add java.util.function APIs
Bug: 26814204
(cherry picked from commit 311a97e7f41c494bc355f5d77adc276e2a400970)

Change-Id: I3fab2b12676bd1460553b4cb45b1ff602f6c09c1
2016-02-09 10:17:38 +00:00
Tomasz Mikolajewski
eb33c0a53f Cleanup sliding animation between directories.
The shadow is restored + redundant fade removed.

Bug: 26986946
Change-Id: I31dde7d03f60be470e1c5e06dcdce828d3e4eaa0
(cherry picked from commit 3134ddf99d4215041ed749f3b4e682a1910d208e)
2016-02-09 09:20:53 +00:00
Tomasz Mikolajewski
3d911ea095 Fix animation for the empty cabinet, also make other animations less jarring.
Setting android:animateLayoutChanges=true was causing flickering and problems
with sliding the cabinet while a fragment transition was already in progress.

Bug: 27060052
Bug: 26952361
Change-Id: I17e5f8b57d63cd9a586fc70ae43e030c4f232e8d
(cherry picked from commit ed82fd784301c645cb665517edc3006888d6f237)
2016-02-09 09:16:53 +00:00
Tomasz Mikolajewski
df3abce378 Remove temporary test fixes.
The tests should fail, as the features are broken.

Change-Id: Ib760ba5469164b8ca0d08c57f24273268ae2436f
(cherry picked from commit 94eca73fec7aa1857f5847df355877d523d0c8a6)
2016-02-09 09:14:49 +00:00
Tomasz Mikolajewski
7b68b868bd Merge "Migrate all tests to ActivityTest." into nyc-dev 2016-02-09 09:12:14 +00:00
Jae Seo
cd502cf715 TIF: Fix the unresolved link to #stopRecording()
Change-Id: Ifa5aeb7c6f1d8210650a1d276872aa4e22d5ffa3
2016-02-08 19:24:12 -08:00
Jae Seo
2a061b5bcf Merge "TIF: Allow the application to indicate a TV program to record" into nyc-dev 2016-02-09 02:14:12 +00:00
Jorim Jaggi
93f04f8920 Merge "Put dismiss end target at navigation bar" into nyc-dev 2016-02-09 01:56:23 +00:00
Tomasz Mikolajewski
c7b832202a Migrate all tests to ActivityTest.
ActivityInstrumentationTestCase2 takes care of starting and closing
the activity, which prevents flakyness.

Change-Id: I2d3908f6605a67a3c2d11e18a9c4799443828df9
(cherry picked from commit e366886c7d91b62fe1478a057fc4c0a104d12b02)
2016-02-09 01:42:50 +00:00
Wei Wang
c5c898640f Merge "Enable RTT Responder Role (1/4)." into mm-wireless-dev
am: 03a6b18350

* commit '03a6b1835060b6c2082ea231fb1ad539aefd916e':
  Enable RTT Responder Role (1/4).
2016-02-09 01:14:34 +00:00
Winson
05e46ca8f3 Updating paging animation to spec.
- To handle the specific animation spec, we just animate the views
  manually instead of animating the stack scroll (like how we do when
  swiping to dismiss)
- Fixing a regression in settings the initial focused index when
  alt-tabbing
- Minor tweak to make the front most task smaller when in the initial
  non-paging mode

Change-Id: Ic5fd54500fd8ce8284c7aaeddb102b2291bcecac

Signed-off-by: Winson <winsonc@google.com>
2016-02-08 17:12:14 -08:00
Winson
423295222c Adding logging for timeout and other features.
Change-Id: Ife9fca1a2ced08c6cbd38ab55d9ea878928de439

Signed-off-by: Winson <winsonc@google.com>
2016-02-08 17:12:01 -08:00
Wei Wang
03a6b18350 Merge "Enable RTT Responder Role (1/4)." into mm-wireless-dev 2016-02-09 01:07:34 +00:00
Phil Weaver
bdadd644a8 Merge "Clean up accessibility gestures." into nyc-dev 2016-02-09 01:00:18 +00:00
Oren Blasberg
8ec0c5eb13 Fix vector "right arrow" drawable to be properly 24dp.
This drawable is used for cascading menus. It was 25dp on one dimension
before, for some reason. I verified it looks fine at 24x24.

Change-Id: Iff5d4f00655d77830d9492190b1a74ef6f408f47
(cherry picked from commit c007e91cc0519adeb4ff35e9e8c436231c2be822)
2016-02-09 00:58:13 +00:00
Jorim Jaggi
81ba11eccb Put dismiss end target at navigation bar
This makes the animation when exiting docked mode a bit nicer
when you fling the divider towards to the navigation bar. However,
since the divider ends at the navigation bar, we need to immediately
dismiss it instead of fading out when the divider is fully occluded
by the navigation bar.

Change-Id: Ic5432fd118cb71be36485667b2c537caf5065ce5
2016-02-08 16:54:55 -08:00
Phil Weaver
78d2e2ddf0 Clean up accessibility gestures.
Closing two small holes in the implementation:
1. The gesture was dispatched before the callback was registered. It
was possible for gestures that failed quickly to fail to report any
status.
2. Gestures could be dispatched before the input filter was
installed. Adding a wait to give the filter a chance to install
before reporting a failure.

Also removing an unused method on the input filter.

Change-Id: I77cd80dcd2cec6c72b3761169aba5eaecf62250b
(cherry picked from commit 03465fb874ccf35ead2228b66ec03afc31d7694e)
2016-02-09 00:51:18 +00:00
Phil Weaver
f564afa4cd Clean up UiAutomation working alongside a11y.
Fix two bugs: one where Instrumentation did not properly
handle destroyed UiAutomations, another where UiAutomation
did not properly disable running accessibility services.

Change-Id: I1773dbd373f4d5b0e7c9917ff18d8d9b1a0e07c7
(cherry picked from commit 846522cea043d3113b3b96daa8f3a1b70e3beb5e)
2016-02-09 00:08:59 +00:00
Chris Craik
b251a2f51e Revert "Revert "TaskManager bench""
This reverts commit 9640477e3cc075b0f303e817a3ebcc72d7bc878b.

Change-Id: I3aa8f2830b43b9c7b211c5792a311d0bc698c51a
2016-02-08 23:28:28 +00:00
Felipe Leme
12ded41d48 Merge "Changed list metered-networks so it returns all networks." into nyc-dev 2016-02-08 23:26:13 +00:00
Felipe Leme
000b84451d Merge "Add pid on main bugreport notifications." into nyc-dev 2016-02-08 23:25:39 +00:00
Svetoslav Ganov
f2971c45df Merge "Multi packages per APK" into nyc-dev 2016-02-08 23:20:51 +00:00
Siyamed Sinir
f4aa7d2e8a Merge "Clamp EditText cursor in the drawable boundaries." into nyc-dev 2016-02-08 23:16:49 +00:00
Svet Ganov
354cd3ce22 Multi packages per APK
This change introduces the ability to have multiple packages per
APK. The feature is currently restricted to privileged apps and
updates to such apps.

In essence the manifest can have multiple child package declarations.
A child package can declare everything an Android package can except
some tags or attributes that are not applicable and instead inherited
from the parent when needed. For example, the target SDK of the parent
applies to all children.

A child package can be updated only through the parent package.
A package with multiple child packages is installed, uninstalled
atomically - no partial installs where some child packages are not
installed.

The remaining work is to ensure broadcasts are also sent for child
packages. This will come in a subsequent change.

Sample app:ag/848432

Design doc: https://docs.google.com/document/d/18nFWtJuZchLxrHf5SBbJW03-Ky9Rh_G0-OVB14b6u78

Change-Id: I6fd021d981bf5786290e0c53502724a14c97358c
2016-02-08 15:14:07 -08:00
Jean-Michel Trivi
c315398694 Merge "Support for Bundle in AudioAttributes" into nyc-dev 2016-02-08 23:13:19 +00:00
Jae Seo
4eee6a73e4 TIF: Allow the application to indicate a TV program to record
Bug: 26962040
Change-Id: I2f062a4621c8a9a6765543826ba2cd607f1468d4
2016-02-08 14:51:52 -08:00
Siyamed Sinir
087d7b7c9c Merge "Do not save TextView text when freezesText is false" into nyc-dev 2016-02-08 22:51:33 +00:00
Chris Craik
81ece00790 Merge "Fix TextDropShadowCacheTests and glyph_t everywhere" into nyc-dev 2016-02-08 22:47:35 +00:00