Commit Graph

75601 Commits

Author SHA1 Message Date
Kurt Nelson
5fe738da3b Merge "Improve StrictMode CTS Testing" 2017-09-18 21:40:33 +00:00
Felipe Leme
f60da8690f Merge "Added more metrics for Autofill:" into oc-mr1-dev am: d4f72ac3c4
am: b093daa296

Change-Id: Iae09ba2c6a082b87b74bd05320222955bde30dda
2017-09-18 21:26:55 +00:00
Felipe Leme
b093daa296 Merge "Added more metrics for Autofill:" into oc-mr1-dev
am: d4f72ac3c4

Change-Id: I46c2bb4e865c06a84245800dddb0fe018d8a52af
2017-09-18 21:20:23 +00:00
TreeHugger Robot
d4f72ac3c4 Merge "Added more metrics for Autofill:" into oc-mr1-dev 2017-09-18 21:05:44 +00:00
Felipe Leme
cbb7bc1511 Merge "Merge "Clarified how to set for autofill views representing creditcard expiration dates." into oc-mr1-dev am: daf9b2ee15" into oc-mr1-dev-plus-aosp
am: 606f2d1b93

Change-Id: I704f41d28f27c6c1559ab778cd49c35169995fc5
2017-09-18 20:37:44 +00:00
Felipe Leme
3cabdc8880 Merge "Clarified how to set for autofill views representing creditcard expiration dates." into oc-mr1-dev
am: daf9b2ee15

Change-Id: I5fa55acdf7b8328be82410144155ee019d096c2d
2017-09-18 20:17:37 +00:00
Eino-Ville Talvala
20ed207f70 Merge "DngCreator: Don't use default locale for writing date/time into DNG" into oc-mr1-dev am: 7c1f9cd750
am: 6e70e977df

Change-Id: I5d482de95a494d73667a6abbea42bf3f5e29c8aa
2017-09-18 20:17:20 +00:00
Eino-Ville Talvala
6e70e977df Merge "DngCreator: Don't use default locale for writing date/time into DNG" into oc-mr1-dev
am: 7c1f9cd750

Change-Id: I4a8dab62082f80452bf3eb003486e5d0febdd820
2017-09-18 20:06:43 +00:00
TreeHugger Robot
daf9b2ee15 Merge "Clarified how to set for autofill views representing creditcard expiration dates." into oc-mr1-dev 2017-09-18 19:29:46 +00:00
TreeHugger Robot
7c1f9cd750 Merge "DngCreator: Don't use default locale for writing date/time into DNG" into oc-mr1-dev 2017-09-18 19:10:11 +00:00
Ruina Liu
c59951dc28 Merge "Fix extracting 32-bit uuid error via calling method uuidToBytes" am: ac421b8f44 am: 8c65620d31 am: 311d031d22
am: 57a1d7a669

Change-Id: Ia77a11df8f4e4ed64df96b0323c27f8057bd2992
2017-09-18 18:13:29 +00:00
Ruina Liu
57a1d7a669 Merge "Fix extracting 32-bit uuid error via calling method uuidToBytes" am: ac421b8f44 am: 8c65620d31
am: 311d031d22

Change-Id: I151f0dc74bfeca44db6aa0c428f8cfbb8b2d3891
2017-09-18 18:06:30 +00:00
Ruina Liu
311d031d22 Merge "Fix extracting 32-bit uuid error via calling method uuidToBytes" am: ac421b8f44
am: 8c65620d31

Change-Id: I70ded26f7487e0cf0cbb2f3fa1184c85ed00b765
2017-09-18 18:00:58 +00:00
Ruina Liu
8c65620d31 Merge "Fix extracting 32-bit uuid error via calling method uuidToBytes"
am: ac421b8f44

Change-Id: I9c6b453e0ef71a70cd972a47763d042943fe3f36
2017-09-18 17:53:31 +00:00
Felipe Leme
9f4ff59902 Merge "Minor fixes on WebView.onProvideAutofillVirtualStructure() javadoc." into oc-mr1-dev am: d96b0d1b47
am: 358f7fdff3

Change-Id: I06636c95b5f4e72f2f344b9f9449a5762813b9ca
2017-09-18 17:04:29 +00:00
Felipe Leme
358f7fdff3 Merge "Minor fixes on WebView.onProvideAutofillVirtualStructure() javadoc." into oc-mr1-dev
am: d96b0d1b47

Change-Id: Ia209d29b9bd71e4fde44cadf8c5c07c5967f6d47
2017-09-18 16:58:08 +00:00
TreeHugger Robot
d96b0d1b47 Merge "Minor fixes on WebView.onProvideAutofillVirtualStructure() javadoc." into oc-mr1-dev 2017-09-18 16:47:40 +00:00
TreeHugger Robot
b2a0009cce Merge "Added WindowConfigurationProto and friends" 2017-09-18 16:06:22 +00:00
Charles He
2fe81c0605 Merge "Status bar: correctly register disable flags" 2017-09-18 14:49:02 +00:00
Wale Ogunwale
0d5609ba8c Added WindowConfigurationProto and friends
Also added WindowContainerProto and ConfigurationContainerProto
Will be used by cts tests in upcoming CLs that replace StackId APIs.

Test: adb shell dumpsys window --proto
Bug: 64146578
Change-Id: Id6ca2a93e3d15ac696ab54cb241870e973985967
2017-09-18 07:23:23 -07:00
Charles He
ede390982c Status bar: correctly register disable flags
StatusBarManager has two sets of disable flags to control the visibility
of various UI components. These flags are registered in DisableRecord.
This CL fixes a bug where clearing one set of disable flags causes both
sets of flags to be cleared.

Bug: 65813446
Test: runtest systemui
Change-Id: I95948fd2464402b6f2fd123dba34b64aeeb80c90
2017-09-18 14:31:17 +01:00
Joachim Sauer
0d25e75d92 Merge "Remove use of MeasureUnit.internalGetInstance" 2017-09-18 10:37:47 +00:00
Ruina Liu
044e0fe5c5 Fix extracting 32-bit uuid error via calling method uuidToBytes
A new defined method of uuidToBytes is used to convert
Bluetooth uuid to bytes in the case of BLE advertising.
But the most significant 16 bits of a 32-bit uuid
will be cleared after the and operations with
0X0000FFFF00000000L in the function of
getServiceIdentifierFromParcelUuid.
0XFFFFFFFF00000000L should be used as bit mask.

Change-Id: I83e22ffbecd718540e644289fee12bf9c3b66305
Test: Advertise with payload contains 32-bit uuid
2017-09-15 17:08:32 -07:00
Felipe Leme
58390fe9ae Minor fixes on WebView.onProvideAutofillVirtualStructure() javadoc.
Test: mmm -j108 frameworks/base/:doc-comment-check-docs
Bug: 65751159

Change-Id: Ie60b1f32e4d9acc675c6e25b7d3e606049b6a3c3
2017-09-15 16:48:41 -07:00
Jeff Sharkey
76ffccc044 Merge "Move long-running calls to async with listeners." 2017-09-15 22:46:00 +00:00
Eino-Ville Talvala
ace890aaae DngCreator: Don't use default locale for writing date/time into DNG
Explictly use Locale.US since EXIF/TIFF date/time fields require it.

Test: Switch to Arabic locale, verify no crash and resulting DNGs have valid metadata,
    plus CTS DngCreatorTest passes.
Bug: 65748590

Change-Id: I729ee6d849f7a39e5d396cfd8dd5d44325381822
2017-09-15 15:15:51 -07:00
Selim Cinek
56867b7072 Merge "Increased the text size for colorized notifications" into oc-mr1-dev am: dd3b6c83c6
am: f83e81117a

Change-Id: Ideb598d0c28ce8bb0b84913e4683dda453d522a6
2017-09-15 21:34:25 +00:00
Selim Cinek
f83e81117a Merge "Increased the text size for colorized notifications" into oc-mr1-dev
am: dd3b6c83c6

Change-Id: Ifd1e83f3400bd870d087c1a248bb74b305aa313f
2017-09-15 21:26:46 +00:00
Selim Cinek
dd3b6c83c6 Merge "Increased the text size for colorized notifications" into oc-mr1-dev 2017-09-15 21:20:44 +00:00
Felipe Leme
f3d30a2139 Clarified how to set for autofill views representing creditcard expiration dates.
Test: mmm -j108 frameworks/base/:doc-comment-check-docs
Fixes: 65673410

Change-Id: I0ebf452dff401d0863d841d714fc1350f73c2542
2017-09-15 13:38:56 -07:00
Jeff Sharkey
b302c54f11 Move long-running calls to async with listeners.
Now that we're using Binder, we can have callers provide explicit
listeners for every request instead of trying to squeeze them all
into unsolicited socket events.

Move benchmarking to be async to avoid blocking other commands for
up to several minutes.  Remove post-trim benchmarking flag, since
benchmarking now requires a separate callback.  Will bring back in
a future CL.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AdoptableHostTest
Test: adb shell sm fstrim
Bug: 62201209, 13758960
Change-Id: I26f76c66734ac2fd0f64713b8ab9828430499019
2017-09-15 14:19:46 -06:00
Felipe Leme
b22d635dad Added more metrics for Autofill:
- AUTOFILL_VALUE_RESET
- FIELD_AUTOFILL_PREVIOUS_LENGTH
- AUTOFILL_DATASET_AUTHENTICATED
- AUTOFILL_INVALID_DATASET_AUTHENTICATION
- AUTOFILL_INVALID_AUTHENTICATION
- FIELD_AUTOFILL_SAVE_TYPE
- AUTOFILL_SAVE_CUSTOM_DESCRIPTION
- AUTOFILL_SAVE_CUSTOM_SUBTITLE
- AUTOFILL_SAVE_LINK_TAPPED
- AUTOFILL_SAVE_VALIDATION
- AUTOFILL_PENDING_SAVE_UI_OPERATION

Also tagged all metrics with FIELD_AUTOFILL_SERVICE, and added missing
package name on AUTOFILL_DATASET_APPLIED.

Test: CtsAutoFillServiceTestCases pass

Bug: 65118073
Bug: 65376559
Bug: 65697068

Change-Id: I678193c99d9d1b2dac56a62a88dcf20043d1b401
2017-09-15 13:08:24 -07:00
Jan Althaus
6ec03f7c1f Merge "New metrics fields for selection logs" into oc-mr1-dev
am: 0fe3b1aa13

Change-Id: I09186a100a8a10d6713ae79b71e56ba75c6ffecb
2017-09-15 19:45:22 +00:00
Selim Cinek
299b3302ef Increased the text size for colorized notifications
Increased the text sizes a bit to make them more prominent.

Test: add colorized notifications of all styles
Change-Id: Ie22053edcb0297e7c3ee0c43b29cdd0e7b6a4516
Fixes: 	35925915
2017-09-15 11:08:30 -07:00
Joachim Sauer
aa5629e608 Remove use of MeasureUnit.internalGetInstance
MeasureUnit.internalGetUnit() is a method on ICU MeasureUnit which is
used to construct and register MeasureUnits. Calling it from non-ICU
code makes future calls to MeasureUnit.getAvailable(type) return the
newly-created MeasureUnit, but that MeasureUnit will not be fully
supported by ICU (no translations, ...).

This code creates a MeasureUnit by calling a constructor reflectively to
avoid the registration, which is a workaround.

The correct long-term fix is for ICU/CLDR to support petabyte correctly
(http://bugs.icu-project.org/trac/ticket/13355) and for us to just use
that instead.

Bug: 65632959
Test: bit CtsIcuTestCases:android.icu.dev.test.format.MeasureUnitTest
Test: coretests android.text.format.FormatterTest
Change-Id: I494fb59a3b3742f35cbdf6b8705817f404a2c6b0
2017-09-15 18:07:17 +01:00
Jan Althaus
019389a638 New metrics fields for selection logs
Changes that affect logging:
- Switched to new category/actions/fields that are used exclusively by
  selection logging.
- Action types are now logged in the tron type (the information that was
  previously in the field could be derived from other fields).
- Entity types are now logged in the tron sub type.
- Delta time from previous event is now zero for first event (was time
  since epoch).
- The smart select model version is now written for all events after
  smart select has run. (i.e. better support for analysis based on
  terminal events alone)
- Restoring the logging removed in ag/2901629.

Internal only changes:
- Made debug statement conditional on DEBUG_LOG_ENABLED.
- Reduced logging tag length to fit into 23char limit.

Bug: 64914512
Test: Manually tested that logs are correct. Will follow up with automated tests.
Merged-In: If12daa2f206fb42be53587decbe2c4abfd689f41
Change-Id: Iec0f6cf1f9f2efdc8518133cf8551cd96b095ad8
2017-09-15 18:17:57 +02:00
TreeHugger Robot
a2dfc3cc68 Merge "New metrics fields for selection logs" 2017-09-15 15:54:59 +00:00
Clara Bayarri
e128408553 Merge "Fix hint text updates in Extracted text mode" 2017-09-15 15:21:06 +00:00
Yohei Yukawa
1e88a603c9 Merge "Fix conflicting JavaDoc of TYPE_TEXT_FLAG_NO_SUGGESTIONS" into oc-mr1-dev am: 7bbe06231f
am: c6e9e15b4f

Change-Id: I92dd5fd0d4771d99fd0932cfa2e709ac6e9ec8cb
2017-09-15 14:10:09 +00:00
Jiyong Park
215df9c284 Merge "Merge "Fix missing null checking" into oc-mr1-dev am: 93d436f4bc" into oc-mr1-dev-plus-aosp
am: 2089f92625

Change-Id: Id44a81a44df376ebcaa9efd229b78328d8eaa5ac
2017-09-15 13:56:46 +00:00
Jakub Pawlowski
6d71e13630 Merge changes from topic "incl_svc_parsing_fix" am: fee4546fd6 am: 3aa179fabd am: e22de0f23f
am: 4df0b1590c

Change-Id: I5843f0f481071f795f7631dad50e9503d315434e
2017-09-15 11:40:41 +00:00
Kevin Hufnagle
8f601e7da0 Merge "docs: updated link on RemoteInput page" into oc-dev am: 6087b990df am: 91fb9b2a16 am: 677b6f5a7b
am: 86ca0d2ad4

Change-Id: I9d616a940eac9b25cb1b7b5d630dd6c4401594ae
2017-09-15 11:33:20 +00:00
Lucas Dupin
ea35a29229 Merge "Show big text on AoD" into oc-mr1-dev am: a4996f241f
am: c86252c1dc

Change-Id: I51d691cd2cec04cd9c0b979a87914e9b4cde49ce
2017-09-15 11:21:33 +00:00
Clara Bayarri
d8c5e7fc41 Fix hint text updates in Extracted text mode
Updates to the hint on a TextView were not notified to the
ExtractEditText, so there was no way it could know to update.
This change pipes through the hint value when the extracted
mode becomes visible and informs it of changes.

The Editor#reportExtractedText method has been refactored to
be more readable. Note that checks on whether the content
changed are done in the two places in the code that already
called this method, and we explicitely don't want to check
contents when there is a hint change.

Bug: 63980155
Bug: 65691495
Test: bit CtsWidgetTestCases:.TextViewTest
Change-Id: I357dd5c74b61d149cf8612d1f52c7118ec70c696
2017-09-15 12:19:29 +01:00
Alan Viverette
f91ebf5433 Merge "Use correct date pattern for displaying year in DatePicker" into oc-mr1-dev am: c668bc0d92
am: 5b8476637d

Change-Id: I5b1063b5b787f814ef78d55f6f5868dfb21c4f9d
2017-09-15 11:19:07 +00:00
TreeHugger Robot
54c6fa09d9 Merge "Removing redundant setTimestamp call" 2017-09-15 09:50:06 +00:00
Jan Althaus
786a39dfa5 New metrics fields for selection logs
Changes that affect logging:
- Switched to new category/actions/fields that are used exclusively by
  selection logging.
- Action types are now logged in the tron type (the information that was
  previously in the field could be derived from other fields).
- Entity types are now logged in the tron sub type.
- Delta time from previous event is now zero for first event (was time
  since epoch).
- The smart select model version is now written for all events after
  smart select has run. (i.e. better support for analysis based on
  terminal events alone)
- Restoring the logging removed in ag/2901629.

Internal only changes:
- Made debug statement conditional on DEBUG_LOG_ENABLED.
- Reduced logging tag length to fit into 23char limit.

Bug: 64914512
Test: Manually tested that logs are correct. Will follow up with automated tests.
Change-Id: If12daa2f206fb42be53587decbe2c4abfd689f41
2017-09-15 10:41:16 +02:00
Jakub Pawlowski
b6fc50bc39 Merge "Bluetooth: fix parameter name in onConnectionUpdated" am: 1f53eb76e4 am: 8ab1ed1789 am: dd71df9d41
am: 618ea49ccf

Change-Id: Idbd15dd35c85a456ade9cdbd2ee24e78671aceff
2017-09-15 07:35:59 +00:00
Jan Althaus
eb59c45ae4 Removing redundant setTimestamp call
As per the documentation, client supplied values are ignored and the timestamp is set when the log is persisted.
This is purely a cosmetic cleanup and doesn't change behaviour.

Bug: 64914512
Test: Confirmed in MetricsReader impl that timestamp is overridden, and tested logcat output for regressions.
Change-Id: Ia7db6410f82f08fe501607def0a87925a6aa9329
2017-09-15 09:25:41 +02:00
Adam Bookatz
c69e138213 Merge changes I54d54f24,I0c384eb3 into oc-mr1-dev am: e332629667
am: 065f4b7ea7

Change-Id: I27a13ed75f663e1d1478667cf02aa8f754201326
2017-09-15 07:09:27 +00:00