350443 Commits

Author SHA1 Message Date
Chien-Yu Chen
5fb64cdae7 ImageReader: Make discardFreeBuffers public
Test: CTS
Bug: 64847201
Change-Id: I61008111552b5ca4641a509e5bcf5cf821582d5e
2017-11-29 14:13:01 -08:00
Todd Kennedy
3e654843d5 Fix if clauses
During a refactor, we introduced updated the method used to
verify signatures. The "&& additionalTest" clauses were added
to the wrong if statement [off-by-one]. So, we were performing
a compat signature check when we shouldn't and not throwing
an exception when we should.

Change-Id: Ie479be5b254b9b13451ab07a07d20a68c7b828ad
Fixes: 69053002
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AppSecurityTests#testSharedUidDifferentCerts
2017-11-29 22:04:36 +00:00
Andre Eisenbach
bd03daf5a4 Merge "Bluetooth: Pre-pend empty line for dumpsys section headers" am: 8a95711ef1 am: f51d382d9c
am: 2cd2bc357f

Change-Id: I02d4f21a1933bfe876b8fe60eb2b49e5771fe772
2017-11-29 21:51:20 +00:00
TreeHugger Robot
12ccf86fdb Merge "Revert "Thread-safe metric producers."" 2017-11-29 21:45:01 +00:00
Jeff Sharkey
d2bf31cc84 Add build targets to build @SystemApi diffs.
Test: make -j32 offline-system-sdk-referenceonly-diff
Bug: 69115817
Change-Id: Ib25d8e60351cb2b4ce5001435baf92d7f738e5f2
2017-11-29 14:42:54 -07:00
Chavi Weingarten
8d0e284df4 Merge "Revert "Updated screenshot code to reflect native changes."" 2017-11-29 21:42:37 +00:00
TreeHugger Robot
f7cff5e48e Merge "Verify that b/68859852 won't happen again" 2017-11-29 21:41:11 +00:00
Chavi Weingarten
ea2eb5a144 Revert "Updated screenshot code to reflect native changes."
This reverts commit 689e091c7faa30f005b9adc0b7b3d2066c62be84.

Reason for revert: SystemUI and some other places need to be updated as well. Will resubmit with the other necessary changes

Change-Id: I8d1955b289d91a89c4d3f117c0ba0c3119ff51fc
Bug: 69898957
2017-11-29 21:38:57 +00:00
Andre Eisenbach
2cd2bc357f Merge "Bluetooth: Pre-pend empty line for dumpsys section headers" am: 8a95711ef1
am: f51d382d9c

Change-Id: I698fd46b7784a9093ccfc23e6c1de020f2ac1d3b
2017-11-29 21:36:44 +00:00
Wale Ogunwale
ac36e4d041 Don't start recents multiple times when entering split-screen
ActivityStack.setWindowingMode() takes care of starting the recents
activity when split-screen is activated so we don't need to do this
all over the place anymore.

Change-Id: I62153c4125744e9da533b6293e91c0658868bd1b
Fixes: 68952186
Test: ActivityManagerSplitScreenTests#testLaunchToSideAndBringToFront
2017-11-29 13:30:26 -08:00
TreeHugger Robot
aae9f84ce8 Merge "Fix crash in slices" 2017-11-29 21:25:59 +00:00
Andre Eisenbach
f51d382d9c Merge "Bluetooth: Pre-pend empty line for dumpsys section headers"
am: 8a95711ef1

Change-Id: I0dbe07aac6e6a8ea1b6858548bd26fffd7e21dd3
2017-11-29 21:24:50 +00:00
Todd Kennedy
96cb94bab4 Update error text
Text was updated to be slightly more readable, but, wound up breaking
the tests. Reverting the word change.

Change-Id: I299245fc05f15ff6f7979c4c0365fe885b3c2e15
Fixes: 69056838
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.PkgInstallSignatureVerificationTest#testCorrectCertUsedFromPkcs7SignedDataCertsSet
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.PkgInstallSignatureVerificationTest#testV1SchemeSignatureCertNotReencoded
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.PkgInstallSignatureVerificationTest#testV2SchemeSignatureCertNotReencoded
2017-11-29 13:17:12 -08:00
Treehugger Robot
8a95711ef1 Merge "Bluetooth: Pre-pend empty line for dumpsys section headers" 2017-11-29 21:09:40 +00:00
Winson Chung
918d002ac0 Merge "Fix issue with PiP callbacks not being handled" am: bdd8adb006 am: 4e11a71210
am: 3b38be2962

Change-Id: Iecad54744e7491279f886305a03050be98d5c8a4
2017-11-29 21:05:26 +00:00
Arthur Ishiguro
893832bd38 Merge changes Ibf8cd200,I4ea2f293,I17b545da,Ia139fd6d,I3a7e69f8
* changes:
  Handles load and unload lifecycle callbacks
  Handles hub reset at ContextHubClientManager
  Converts old API message clients to the new API format
  Implements client close and death notification
  Creates framework for new API messaging
2017-11-29 21:00:54 +00:00
TreeHugger Robot
229f0d0305 Merge "Don't generate irrelevant a11y events - framework" 2017-11-29 20:56:37 +00:00
Winson Chung
3b38be2962 Merge "Fix issue with PiP callbacks not being handled" am: bdd8adb006
am: 4e11a71210

Change-Id: I0ad21e140aa10566f58acfa01fb7e4172edca0d3
2017-11-29 20:50:00 +00:00
Android Build Merger (Role)
57d14f6974 Merge "Merge "OBEX: Avoid pre-sending CONTINUE for SRM enabled case" am: edfb333a4d am: cca3c9bb01 am: 374bde37b9" 2017-11-29 20:44:35 +00:00
Hemant Gupta
fb21e41a64 Merge "OBEX: Avoid pre-sending CONTINUE for SRM enabled case" am: edfb333a4d am: cca3c9bb01
am: 374bde37b9

Change-Id: Ic0e5e0751c84b0f1a5ea3e4752d9eefb1e6d075a
2017-11-29 20:42:42 +00:00
TreeHugger Robot
557e662abf Merge "libandroidfw: Do not clear last resource id in ResolveReference" 2017-11-29 20:40:24 +00:00
Winson Chung
4e11a71210 Merge "Fix issue with PiP callbacks not being handled"
am: bdd8adb006

Change-Id: I03c0ef06309b1b7559a973e2823598031de3b182
2017-11-29 20:34:46 +00:00
Hemant Gupta
374bde37b9 Merge "OBEX: Avoid pre-sending CONTINUE for SRM enabled case" am: edfb333a4d
am: cca3c9bb01

Change-Id: Ia9edce62a31b5344b5627bf0d141d72d40d6e37c
2017-11-29 20:29:53 +00:00
Sudheer Shanka
82b3a4dd4d Don't fail the tests if per-freq cpu times are not available.
Test: N/A
Change-Id: I7c6c6aef7ea9ab431fb8b2c7f04b49299be73e9b
2017-11-29 12:22:42 -08:00
TreeHugger Robot
fd315a9fd9 Merge "Introduce Global.LOCATION_GLOBAL_KILL_SWITCH" 2017-11-29 20:21:40 +00:00
Nate Fischer
da0f1b4694 WebView: linkify ClientCertRequest method names
No change to behavior, only docs changes. No change to wording.

This linkifies ClientCertRequest method names in the docs for
WebViewClient#onReceivedClientCertRequest.

Test: make docs (looks good, no errors)
Change-Id: I1de855e8cdf91b3aace3a188aafaa9ac9f90ed2a
2017-11-29 12:18:54 -08:00
Winson Chung
bdd8adb006 Merge "Fix issue with PiP callbacks not being handled" 2017-11-29 20:18:45 +00:00
Hemant Gupta
cca3c9bb01 Merge "OBEX: Avoid pre-sending CONTINUE for SRM enabled case"
am: edfb333a4d

Change-Id: I28de2826209a16b763d64a1b31381f748067789c
2017-11-29 20:17:31 +00:00
Seigo Nonaka
beb164033c Measure the text before doing line break
Bug: 65024629
Test: N/A
Change-Id: Ifa7be17b87687f95f045de1409fb554991269ebc
2017-11-29 12:08:33 -08:00
Treehugger Robot
edfb333a4d Merge "OBEX: Avoid pre-sending CONTINUE for SRM enabled case" 2017-11-29 20:03:12 +00:00
Yao Chen
6a8c799d90 Revert "Thread-safe metric producers."
This reverts commit 8de6939c494da838f6dbbda0631f66425dbbd25b.

Change-Id: Ieae841bfc5339b569f0fca909a6066de72806617
2017-11-29 20:02:07 +00:00
TreeHugger Robot
5bce0de9fa Merge "Fix ConcurrentModificationException in DashboardCategory." 2017-11-29 19:57:47 +00:00
Abodunrinwa Toki
4d232d6243 TextClassifier cleanup #1
- Introduces TextClassifier methods that do not take options
 - Adds warning to TextClassifier implementations not to implement
   or call certain default methods. Ideally, only one of the
   overloaded interface methods (the one that takes Options) needs
   to be implemented
 - Changes TextLinks.Options to a mutable type
 - Updates tests

 TODO: Introduce a TextClassification.Builder.setDefaultAction(...) and
 change addAction(...) to addExtraAction(...).
 TODO: Cts test to validate input params.

Bug: 68846316
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: I9a12935388e16a9b57567a71c97afaee63405183
2017-11-29 19:57:11 +00:00
Yuqian Li
70910fd061 Verify that b/68859852 won't happen again
Bug: 68859852

Test: unit tests with and without the fix on sailfish-eng

Change-Id: I9e2cdd622b7447ea3092fd66790431d94c40e13f
2017-11-29 14:51:12 -05:00
Andreas Gampe
11b7b645ed Merge "Frameworks: Clean up SharedPreferencesImpl" am: 572f46a3ef am: 70da38960c
am: 9a612c734e

Change-Id: Iaa9ac8d03ac0f235bbff7bf4b17ef7de6b90c24a
2017-11-29 19:50:54 +00:00
Andreas Gampe
9a612c734e Merge "Frameworks: Clean up SharedPreferencesImpl" am: 572f46a3ef
am: 70da38960c

Change-Id: Ia4c24c8cd6fbeb58a90d56319558fc3c78474c2b
2017-11-29 19:38:11 +00:00
Charles He
1a0e948f61 Merge "Enable Recents activity in LockTask mode." 2017-11-29 19:29:50 +00:00
Andreas Gampe
70da38960c Merge "Frameworks: Clean up SharedPreferencesImpl"
am: 572f46a3ef

Change-Id: I7b922f795283cefabf661e999e5a9897889fa287
2017-11-29 19:25:13 +00:00
Treehugger Robot
572f46a3ef Merge "Frameworks: Clean up SharedPreferencesImpl" 2017-11-29 19:11:46 +00:00
Andre Eisenbach
e66e1688ca Bluetooth: Pre-pend empty line for dumpsys section headers
Test: manual
Change-Id: I2daa5c985e5504606edd9ff558bd5b92af7a7240
2017-11-29 19:02:59 +00:00
TreeHugger Robot
c6158aee00 Merge "Define colorBackground for Theme.DeviceDefault.Settings." 2017-11-29 18:59:42 +00:00
Sudheer Shanka
c1adfd8508 Temporarily disable the netpolicy unit tests.
Bug: 69916639
Test: N/A
Change-Id: Ia3435ac3ced7e48cccec211a9f9ae4ef2e62de46
2017-11-29 10:53:12 -08:00
Sudheer Shanka
9fdbc957c6 Merge "Track some event history and include it in netpolicy dump." 2017-11-29 18:35:39 +00:00
Arthur Ishiguro
0069f128d4 Handles load and unload lifecycle callbacks
Bug: 67734082
Test: Create test app to load/unload a nanoapp after client
registration, verify listener callbacks are invoked
Change-Id: Ibf8cd200307ace0b3dcc9431166f61fc2929cff4
2017-11-29 10:35:33 -08:00
Arthur Ishiguro
6d47c54abc Handles hub reset at ContextHubClientManager
Bug: 67734082
Test: make and flash device, do adb shell pkill chre and verify
onMessageReceipt for reset is triggered by service (by reading logs)
Change-Id: I4ea2f2930763dd8182e4e062cdb9312c3e23855e
2017-11-29 10:35:32 -08:00
Arthur Ishiguro
ebb0e86f49 Converts old API message clients to the new API format
Bug: 67734082
Test: make from root and flash, verify CHQTS pass on walleye-userdebug
Change-Id: I17b545da358258b97b2f94060feaa7a13c9aee67
2017-11-29 10:35:32 -08:00
Arthur Ishiguro
49e030fbd2 Implements client close and death notification
Bug: 67734082
Test: make from root
Change-Id: Ia139fd6d4bb04c569a9ee3672e21e2700daa40a9
2017-11-29 10:35:31 -08:00
Arthur Ishiguro
4e39aa1e19 Creates framework for new API messaging
- Creates IContextHubClientCallback as a proxy to invoke
messaging/life-cycle callbacks for the client.
- Creates IContextHubClient as a proxy to send messages at the client
side.
- Creates a ContextHubClientManager at the service to manage
clients and messaging/lifecycle event callbacks.
- Implements generation of clients at ContextHubManager and sending
messages through ContextHubClient

Bug: 67734082
Test: make from root
Change-Id: I3a7e69f89cd70ea59160a651dcdb729e18027e9f
2017-11-29 10:35:30 -08:00
Adam Lesinski
1c855a0bc8 libandroidfw: Do not clear last resource id in ResolveReference
If the value passed to AssetManager::ResolveReference is not a
reference, the caller may be expecting for the last reference to
not be cleared, as a more appropriate value should most likely be
retained.

This was causing an issue when a caller was manually resolving
references and expecting the last resource ID resolved to be propagated
across calls to ResolveReference.

Test: make libandroidfw_tests
Change-Id: I5b7f586e2cd541059023eaa9ba23e324a21a9a1e
2017-11-29 10:20:26 -08:00
Hemant Gupta
b366d50971 OBEX: Avoid pre-sending CONTINUE for SRM enabled case
Remote Device: LG-G2 as OPP client

Use Case:
1) Pair DUT with Remote.
2) Now push the file from Remote.
3) Ignore the incoming request from Remote

Failure:
RX_Notification lasts only for 10 seconds.

Fix:
OBEX lib handles a PUT Request case with NO BODY header on server
session with CONTINUE  response until body is found in request
packet from remote. However, this needs to be avoided if SRM is
enabled from remote to get proceed transfer authorization
from Application layer.

Test: Send connection request from remote device and verified that
connection is sustainable for 30 seconds until timeout.

Bug: 37886388
Change-Id: I1b5bfd65f9023d77850a34bcb08cfbb435e9a474
2017-11-29 18:18:58 +00:00