15c45c854e01e8ab518d6b6cc56659bba6e0820b |
30-Oct-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Fix StateMachine init/quit race."
|
dce6e5dfd4fd2c14b495ce0b1e04925cbb7632d4 |
03-Oct-2017 |
Calvin On <con@google.com> |
Fix StateMachine init/quit race. The quitNow method places the SM_QUIT_CMD at the front of the queue. This can cause StateMachine to throw exception if it has not yet processed the SM_INIT_CMD from start(). Bug: 67370902 Test: make checkbuild Test: StateMachineTest unittest Test: build/install on device, toggle bluetooth and wifi Change-Id: I7cec7bb91e0447e3c565d33cb7c34ccf59566639
tateMachineTest.java
|
465554861752f7742d783c53e65b4427af9f0e82 |
21-Oct-2017 |
Etan Cohen <etancohen@google.com> |
Merge "Add Runnable mechanism to WakeupMessage" am: 5964b55654 am: d870cd33f5 am: b4e455552f Change-Id: Iff399d348193b8028e3927c1003d887c211470fb
|
d870cd33f5af81e299b574ebda7c4b4dab59bc78 |
21-Oct-2017 |
Etan Cohen <etancohen@google.com> |
Merge "Add Runnable mechanism to WakeupMessage" am: 5964b55654 Change-Id: Iab0414f644223d69602e8e93a636eaa46137d873
|
1861ea9df4cd7fc493167060d1ae2a1d5f102acf |
20-Oct-2017 |
Etan Cohen <etancohen@google.com> |
Add Runnable mechanism to WakeupMessage The WakeupMessage object provides a mechanism to create an Alarm which will wake-up the device and deliver a message to a Handler. Add a Runnable mechanism as an alternative to the message. Bug: 67276378 Test: unit test Change-Id: Icf5f03b2b25a340273f9d3fcd09f182216ea6238
akeupMessageTest.java
|
ff94e0351a908504c588efac2084811840cde453 |
08-Aug-2017 |
Makoto Onuki <omakoto@google.com> |
DropBoxManagerService: Don't store redundant information Filenames can be calculated from other fields, so there's no need to store them. This will reduce the average EntryFile size from 160b to 28b, so in theory it could save 132 KB for 1000 entries. - Also switched from HashMap to ArrayMap, which should help a bit too. - Also fixed unit tests and added more. Bug: 20890386 Test: bit FrameworksServicesTests:com.android.server.DropBoxTest Test: Boot, check the dropbox directory, run dumpsys dropbox, reboot and repeat. Change-Id: If567750f478318acd621864d1d4ef2ed41f214bd
bjectUtilsTest.java
|
5856be889f5e631eea822e13e560fd386c3907b8 |
24-Jun-2017 |
Christine Franks <christyfranks@google.com> |
Disable lock screen by default for demo users Bug: 62712426 Test: frameworks/base/core/tests/utiltests/runtests.sh \ -e class com.android.internal.util.LockPatternUtilsTest Change-Id: Ic2e00a2a73f160c27e4059f32e5a1d18ebc298a5
ockPatternUtilsTest.java
|
f71d5b5b18eb0b8c0b383b697bc3d507d65a5c7f |
09-May-2017 |
Paul Duffin <paulduffin@google.com> |
Moved c.a.i.u.Predicate[s] into legacy-test These classes are only used by android.test classes that are being removed. As their name suggests they should not be in the Android API at all so it makes sense to remove them. Especially as there is java.lang.function.Predicate available now. It appears as though Predicate was only added in to the API because it was used by a method in the API as the directory in which it and Predicates live was not on the list of classes to explicitly index. Moving it into legacy-test meant that they are now being indexed explicitly which means that Predicates needs to be hidden. Keeps running the tests as part of the existing target. At runtime apps targeted at the API version before these are removed will have the legacy-test library automatically added to their classpath so they should see no effect. Apps that target a later API will have to include those classes from the android.legacy.test.jar which will contain all the android.test classes that depend on it as well. Bug: 30188076 Test: make checkbuild Change-Id: I6f6f5f16fe93bd80227a450c6254166632fc6813
redicatesTest.java
|
47e1c7a005d6a9f099f95265ac24b6ba320f3f13 |
28-Mar-2017 |
mukesh agrawal <quiche@google.com> |
StateMachine: make toString() terser The current implementation of the toString() method calls dump(). This causes two problems: 1. toString() may return a large string. This is at odds with the advice in the documentation for Object.toString(), which says that the returned String should be concise, and easy to read. 2. The dump() method is overriden by many of the StateMachine subclasses. Some of those subclasses have dump() implementations that are expensive, and/or have dependencies on other objects. To resolve these problems, we simpify StateMachine.toString(). Along the way: remove a stale comment about implementing dump() using toString(). Note: only ran the StateMachine tests, since some other tests are already failing. Bug: 36661851 Test: tests/utiltests/runtests.sh \ -e class com.android.internal.util.StateMachineTest Change-Id: I5c16c650f01178c4d018b6a65e4aa95fb905aff6
tateMachineTest.java
|
57e490cf8cf85932c11208c64bbd2b35315ffbc8 |
09-Feb-2017 |
Paul Duffin <paulduffin@google.com> |
Partial Revert "Replace com.android.internal.util.Predicate with java.util.function.Predicate" This partially reverts commit 3e5fbca0c57742f28f5c7e6bda6c3500b9471b47. Bug: 35187548 Bug: 30188076 Bug: 35089332 Test: make checkbuild Change-Id: I7ab4279aab604e3d56003b0a59867948aebabd28
redicatesTest.java
|
3e5fbca0c57742f28f5c7e6bda6c3500b9471b47 |
07-Feb-2017 |
Paul Duffin <paulduffin@google.com> |
Replace com.android.internal.util.Predicate with java.util.function.Predicate Bug: 35089332 Bug: 30188076 Test: make checkbuild Merged-In: I0a5b4bf520fc39b59d8d790b01e9cff0d54e6d21 Change-Id: I58e4e35e7b7315033d893748f7c79e1ba6732f39
redicatesTest.java
|
b8df76e413d0b8235d0bd71adf8f368f00391fcb |
27-Oct-2016 |
Lorenzo Colitti <lorenzo@google.com> |
DO NOT MERGE: Move FakeSettingsProvider to a common location. (cherry picked from commit 7df1a82802cdf842d07a86a80383c7d5ea7ae53a) Test: runtest frameworks-util -c com.android.internal.util.test.FakeSettingsProviderTest Test: runtest frameworks-services -c com.android.server.ConnectivityServiceTest Test: runtest frameworks-services -c com.android.server.retaildemo.PreloadAppsInstallerTest Test: runtest frameworks-services -c com.android.server.retaildemo.RetailDemoModeServiceTest Bug: 31479480 Change-Id: I8d4d4de2937012dd33924f53e68f96241a9b2b4f
est/FakeSettingsProviderTest.java
|
4171cdf303c24704c2412653fd0eccb21a487e8e |
07-Jun-2016 |
Lorenzo Colitti <lorenzo@google.com> |
Give WakeupMessage the ability to transport an object as well. [DO NOT MERGE] (cherry-pick of commit eab17da5882e59caff25c73aa6bcd0587aca9dd4) Bug: 23113288 Change-Id: Ic98e3bcb3ea8b0b28a309bd647fb4178311c46a3
akeupMessageTest.java
|
009ae995828c8951242533b20e5f7d6e514a8c1a |
09-Aug-2016 |
Mitchell Wills <mwills@google.com> |
Reenable the unit tests for StateMachine In order to make the tests run a few methods must be made public so that they can be called from a class loaded by a different class loader. Fixed: 28217358 Change-Id: I98ce1e952a78528ae6ebd3a0e843c9ddfe937337 (cherry picked from commit 36afe5b5cc000620d77150437ba21503c44c87eb)
tateMachineTest.java
|
3ae3557ea3a9ad8429de9db14de62a4214a07cdc |
06-Apr-2016 |
Makoto Onuki <omakoto@google.com> |
Make FastXmlSerializer more suitable to persist arbitrary strings - Encode '\u000' - '\u001F', so KXmlParser can read them properly. Otherwise KXmlParser will ignore CRs/LFs in attributes, and CRs in text. - Originally FastXmlSerializer would throw if a string contains dangling surrogate pairs. Now we REPLACE them with. Bug 27792649 Change-Id: I10c547dad2475b68f60e9e8208d9a3eae8e20063
astXmlSerializerTest.java
|
634c1f9d0d43c7874ea433188b45fdf944d98a5a |
19-Feb-2016 |
Mitchell Wills <mwills@google.com> |
Modify WakeupMessage to only send the message if not canceled Change-Id: I9ca6d3726fe25c706b644bf61119837a7cbe6db1
akeupMessageTest.java
|
f979012c9b5891254177dae965b2b64d70b8c283 |
20-Feb-2016 |
Lorenzo Colitti <lorenzo@google.com> |
Add a unit test for MessageUtils. Also fix a couple of issues in the code: 1. Check that fields are static before attempting to read them. Currently, if a non-static field's name starts with one of the specified constant prefixes (by default, "CMD_" and "EVENT_") we'd get an NPE. 2. Only read final fields. Change-Id: I0e07c4c27a66180cbaf7f2b1c235daafc080863b
essageUtilsTest.java
|
3ca1ccb419ec56a191d724ff75c6943200c8cebe |
19-Feb-2016 |
Mitchell Wills <mwills@google.com> |
Merge "Fix FastXmlSerializerTest" into mm-wireless-dev
|
acd97e2e0fdcc50f20bc4836188e781583b10f1e |
19-Feb-2016 |
Mitchell Wills <mwills@google.com> |
Merge "Remove AsyncChannelTest because it does not test anything" into mm-wireless-dev
|
86821c07c2aa2594973c6e09a4d13bb620ebc45f |
19-Feb-2016 |
Mitchell Wills <mwills@google.com> |
DO NOT MERGE Disable failing test case Bug: 27258801 Change-Id: I832505e0feca9f0abbf627d009d5982a4437bf83
tateMachineTest.java
|
733fc6b6f9af33bae047e8296b9fc9d341f4f202 |
19-Feb-2016 |
Mitchell Wills <mwills@google.com> |
Fix FastXmlSerializerTest Change-Id: Ie984abae588927e65bdeffa5a6f5c58bd6ba0bf1
astXmlSerializerTest.java
|
c91e57c1aac16b20e9862acc5fb24fc7a02dd79f |
19-Feb-2016 |
Mitchell Wills <mwills@google.com> |
Remove AsyncChannelTest because it does not test anything Change-Id: I7d3fe580a8c32ef3bd10895b51a7fc436f79919f
syncChannelTest.java
|
35402eb8ae461a0a19b1d99ea824b05750ca1bd9 |
19-Feb-2016 |
Lorenzo Colitti <lorenzo@google.com> |
Move tests for com.android.internal.util out of coretests These are very simple tests with no dependencies, and moving them out of FrameworksCoreTests makes it possible to iterate much more quickly. "runtest frameworks-core" takes almost a minute just to push to the device, before any tests even start running. Bug: 25691379 Change-Id: I8d99316a5940e0171883b97c578f9a6882b699a0
rrayUtilsTest.java
syncChannelTest.java
itwiseStreamsTest.java
allbackRegistryTest.java
harSequencesTest.java
astXmlSerializerTest.java
ileRotatorTest.java
ndentingPrintWriterTest.java
redicatesTest.java
rocFileReaderTest.java
tateMachineTest.java
mlUtilsTest.java
|