232554 Commits

Author SHA1 Message Date
Julia Reynolds
41466449aa Merge "Importance slider logging." into nyc-dev 2016-02-09 19:58:33 +00:00
Yohei Yukawa
f2dc2a926d Merge "Use Context#createConfigurationContext()." into nyc-dev 2016-02-09 19:56:59 +00:00
Julia Reynolds
81afbcdbf9 Allow apps to know what users think of their notifications.
- App wide blocking
- Topic importance

Change-Id: I9026e5c26c5dbcab1c86c385beede891f961933f
2016-02-09 14:54:08 -05:00
Yohei Yukawa
2ba26dd87c Merge changes Icf921fe3,Ie1a8ee22 into nyc-dev
* changes:
  Add a utility method to InputMethodInfo for FBE.
  Fix style issues in InputMethodInfo.java.
2016-02-09 19:49:20 +00:00
Randy Pan
12232f76fd Merge "Add RSN Information Element ID" into mm-wireless-dev
am: 2750b41d0b

* commit '2750b41d0b50eb66c8aada11d62666f934ca950d':
  Add RSN Information Element ID
2016-02-09 19:32:18 +00:00
Rakesh Iyer
cd412bae12 Merge "Fix a crash in SystemUI when using CarNavigationBar." into nyc-dev 2016-02-09 19:28:37 +00:00
Selim Cinek
9e37a70c1d Merge "Removed the notification scroller top stack" into nyc-dev 2016-02-09 19:25:05 +00:00
Randy Pan
2750b41d0b Merge "Add RSN Information Element ID" into mm-wireless-dev 2016-02-09 19:13:33 +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
Rakesh Iyer
f51fe4eb2c Fix a crash in SystemUI when using CarNavigationBar.
CarNavigationBar overrides getCurrentView() in phone NavigationBarView
but the dump() method in NavigationBarView uses mCurrentView directly,
which may be null in the auto case. Callign getCurrentView() returns
the correct overriden view.

This patch makes the change to dump() to use getCurrentView().

Bug: 27046536
Change-Id: I92e5655325247d27faac1e33d8622783652bdb10
2016-02-09 10:51:50 -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 Cinek
d592191b74 Improved the heads up logic to launch fullscreen intents less
Fullscreen intents are always less distracting when heads upped
instead of launched fullscreen, so when snoozed or if the ranking
isn't high enough we now prefer HUN instead of simply launching
it.

Change-Id: Iae16d35c6a6d3f11f3d1f6db6e1dc067018a5172
2016-02-09 10:33:01 -08: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
Julia Reynolds
b1a235f952 Importance slider logging.
Change-Id: I3c4ad73d1460e4d28cb1a10846159128590d2b20
2016-02-09 13:06:46 -05:00
Ben Kwa
1e2fa5e79f Implement PgUp/PgDn support. (cherry-pick DO NOT MERGE)
- Clean up our LayoutManager code.  We actually only need a single
  layout manager, since a GridLayoutManager is a LinearLayoutManager,
  and list layout is simply grid layout with one column.  Make it so.

- Use the layout manager to compute item offsets for one page's worth of
  items.  Use that to implement page up/page down.

BUG=25195770

Change-Id: I23ddd5fd38532682e7f099b44e188d8c3fec02be
(cherry picked from commit 4d4bf9a21a16bae3497f94dbb558a2ede9d989ee)
2016-02-09 18:06:11 +00:00
Sanket Padawe
ce4f22e84e Add OEM specific error code space which can by used to replace Generic errors.
BUG=27038563

Change-Id: I125e083e0a3145ac09806a84ea8b53864c04dc22
2016-02-09 10:02:02 -08: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
Yohei Yukawa
69811a98f1 Add a utility method to InputMethodInfo for FBE.
This is another preparation for Bug 26279466.  Whether an input method
is marked to be encryption-aware or not would become the thing here and
there in the Framework code.  Having a utility method and debug info
in dumpsys should make our lives easier.

Bug: 26279466
Change-Id: Icf921fe3661eccf4a589b08b616d05decc561356
2016-02-09 01:10:27 -08:00
Yohei Yukawa
285765014f Fix style issues in InputMethodInfo.java.
This has nothing to do with Bug 26279466 but might be something nice to
fix just as a preparation.

Bug: 26279466
Change-Id: Ie1a8ee2248081a70728c29e52c657b3a0ed919b1
2016-02-09 01:10:17 -08:00
Yohei Yukawa
5d64399c51 Use Context#createConfigurationContext().
Nothing is changed in the test expectations.
Major changes in this CL are:

  1. To obtain a custom context with the given locale,
     Context#createConfigurationContext() is the way to go.
     Modifying any internal state of the resource that is owned by the
     context is not supported at all.
  2. As a preparation to test cases where multiple locales are specified
     in the system settings, unit tests need to switch to
     Confituration#setLocales(LocaleList).

Bug: 27076327
Change-Id: I6caa76627677c7625a1c42d76a275f67ae65a9b2
2016-02-08 23:21:37 -08: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
Jeff Sharkey
58482c55d0 Make ServiceWatcher encryption-aware.
This utility class automates the process of binding to the best
matching service, including rebinding as packages change over time.

This design means it's easy to become encryption-aware: we use the
default PackageManager behavior that filters components based on
their encryption-aware status, and we just kick off another
evaluation pass once the user is unlocked.

This change cleans up some of the internal logic so we only rebind
when the implementation switches, and it fixes several bugs along
the way.  For example, we would never trigger a rebind if a service
was refactored to a different ComponentName.  Another subtle bug was
that we'd never fallback to an older implementation if a higher
version was uninstalled/disabled.  And finally, if all implementations
were uninstalled/disabled, we'd leave the last connection bound.

Bug: 26280056
Change-Id: I259af78e6564d61353a772ac03cf5799a398d535
2016-02-08 19:05:53 -07: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
Chris Craik
b4f4f3e16d Calculate clip bounds correctly when serializing
bug:26585671

Change-Id: Ic70769bce6fa2a7b65cb893ba4a45c65fdc0b7e3
2016-02-09 01:27:56 +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