summaryrefslogtreecommitdiffstats
path: root/services/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix build.Sreeram Ramachandran2014-05-141-8/+12
| | | | Change-Id: I5dab09d2d8a9cff56fa17bb4e8c14b365449399b
* Get ConnectivityServiceTest building again after 8f80cc8.Paul Jensen2014-05-141-2/+2
| | | | Change-Id: I4520011ba2076d8fac1ca234cb9a79c774992671
* am 80edaa67: am 24c089a8: Fix build.Narayan Kamath2014-04-111-3/+3
|\ | | | | | | | | * commit '80edaa676bd59409f8a82e12c035bee96e653004': Fix build.
| * Fix build.Narayan Kamath2014-04-111-3/+3
| | | | | | | | | | | | isScreenOn was changed to isInteractive. Change-Id: I381d0b0ca745b61e64ac6309c2a6307696f52be0
| * am 4701b51a: am bb87ac7f: DO NOT MERGE: Downgrade expedited to normal on ↵Matthew Williams2014-03-251-5/+6
| |\ | | | | | | | | | | | | | | | | | | reschedule. * commit '4701b51af216ce2b6fa9fa508ebba47bf13063c7': DO NOT MERGE: Downgrade expedited to normal on reschedule.
| | * DO NOT MERGE: Downgrade expedited to normal on reschedule.Matthew Williams2014-03-241-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug: 12033540 Expedited was previously tracked by a redundant internal variable, ostensibly as an optimisation. This variable could differ from the value in the bundle depending on how the operation is initialised, which led to confusion. Now an expedited sync will only be treated as such on its first execution. Change-Id: Ibfc4e9e49b86c82f2364a6ef55f887705a053eb6
| * | Include subdirectory Android.mks.Ying Wang2014-01-091-0/+3
| | | | | | | | | | | | Change-Id: I6e6bc721dbcf127b52f2a60f255c9fc677d3be29 (cherry picked from commit c459bfea7e7be4343387dee137d4a5be9742fd91)
* | | Merge "Downgrade expedited to normal on reschedule."Matthew Williams2014-03-212-20/+65
|\ \ \
| * | | Downgrade expedited to normal on reschedule.Matthew Williams2014-02-062-20/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug: 12033540 Expedited was previously tracked by a redundant internal variable, ostensibly as an optimisation. This variable could differ from the value in the bundle depending on how the operation is initialised, which led to confusion. Now an expedited sync will only be treated as such on its first execution. Change-Id: I9979102317aecbe8bc53a36381d4b2782ac131be Conflicts: services/core/java/com/android/server/content/SyncOperation.java services/core/java/com/android/server/content/SyncQueue.java
* | | | Update the tests to deal with the new timestamps in idletimer module.Ashish Sharma2014-03-181-4/+11
| | | | | | | | | | | | | | | | Change-Id: I1a8368d84ef806f1501b0a1f5e817388a1d10518
* | | | Tabs -> spaces in frameworks/base.John Spurlock2014-02-251-3/+3
| | | | | | | | | | | | | | | | Change-Id: I5a84e8e93ac99b5ed0212b37bf66efa5e53864be
* | | | Merge "Log history of location requests in LocationManager. -Assists with ↵David Christie2014-02-131-0/+175
|\ \ \ \ | | | | | | | | | | | | | | | debugging power issues. Bug: 12824233"
| * | | | Log history of location requests in LocationManager.David Christie2014-02-031-0/+175
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | -Assists with debugging power issues. Bug: 12824233 Change-Id: Iaaef0dbe00154c7668034a166587671b75d1f3c7
* | | | Extend DeviceOwner concept to accommodate ProfileOwnersAdam Connors2014-02-061-0/+88
|/ / / | | | | | | | | | | | | | | | | | | | | | ProfileOwners, like DeviceOwners, are Device Admins that have additional priviledges. ProfileOwners however are scoped per user. Change-Id: I1e22c85878e0672121e6ebbe97fca38591f992b2
* | | Include subdirectory Android.mks.Ying Wang2014-01-091-0/+3
| | | | | | | | | | | | Change-Id: I6e6bc721dbcf127b52f2a60f255c9fc677d3be29
* | | am 263c4788: am 30253d7a: am 2daa0c93: Merge "Add address flags and scope to ↵Lorenzo Colitti2013-12-091-6/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | LinkAddress." * commit '263c4788dcf45f104f8668fd6621d1a7c39689b9': Add address flags and scope to LinkAddress.
| * | Add address flags and scope to LinkAddress.Lorenzo Colitti2013-12-061-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is necessary so that the framework can know whether an IPv6 address is likely to be usable (i.e., if it's global scope and preferred). Also, it will simplify the address notification methods in INetworkManagementEventObserver, which currently take the address, the flags, and the scope as separate arguments. 1. Add flags and scope to the class and update the unit test. Use the IFA_F_* and RT_SCOPE_* constants defined by libcore. Since most callers don't know about flags and scope, provide constructors that default the flags to zero and determine the scope from the address. Addresses notified by the kernel will have these properly set. Make multicast addresses invalid. Update the class documentation. 2. Provide an isSameAddressAs() method that compares only the address and prefix information between two LinkAddress objects. This is necessary because an interface can't have two addresses with the same address/prefix but different flags. 3. Update LinkProperties's addLinkAddress and removeLinkAddress to identify existing addresses to add/remove using isSameAddressAs instead of implicit equals(). Specifically: - If addLinkAddress is called with an address that is already present, the existing address's flags and scope are updated. This allows, for example, an address on an interface to go from preferred to deprecated when it expires, without it having to be removed and re-added. - If removeLinkAddress is called with an address that is present but with different flags, it deletes that address instead of failing to find a match. 4. Update the INetworkManagementEventObserver address notification methods to take just a LinkAddress instead of LinkAddress, flags, and scope. While I'm at it, change the order of the arguments for consistency with the other functions in the interface. Change-Id: Id8fe0f09a7e8f6bee1ea3b52102178b689a9336e
* | | am 4806fdfb: am f226bc60: Merge "Use LinkAddress in address notifications."Lorenzo Colitti2013-12-021-5/+9
|\ \ \ | |/ / | | | | | | | | | * commit '4806fdfbd0fecf91584396fc0f620c97a05ab837': Use LinkAddress in address notifications.
| * | Use LinkAddress in address notifications.Lorenzo Colitti2013-11-261-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently address{Updated,Removed} pass in the address as a string such as "fe80::1/64". Use LinkAddresses instead, since that's what it is. This makes the code more robust in the unlikely case that netd passes in an invalid string. In the future we can move flags and scope into the LinkAddress itself and simplify the code further. Bug: 9180552 Change-Id: I66599f9529cf421caa7676fdd0141bb110b8589e
| * | Pass DNS server info notifications to observers.Lorenzo Colitti2013-11-251-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are sent if the device receives IPv6 Router Advertisements with DNS server configuration options. Currently, nothing listens to them; in a future change we will use them as IPv6 DNS servers. [Cherry-pick of 416740ad4d9132005a71dc0883334e852235a18a] Bug: 9180552 Change-Id: I05000c0cd3867a68ab390102e8470b6912a9d3aa
| * | Minor cleanups to NetdCallbackReceiver.onEvent.Lorenzo Colitti2013-11-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Clean up identical error messages. - Fix the array length check for InterfaceAddressChange. [Cherry-pick of 59be800e7fe81842aa8c77b91319f58ab165983d] Bug: 9180552 Change-Id: Id871f481445b530c3ad749725f1548df0e3a1228
* | | Pass DNS server info notifications to observers.Lorenzo Colitti2013-11-181-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | These are sent if the device receives IPv6 Router Advertisements with DNS server configuration options. Currently, nothing listens to them; in a future change we will use them as IPv6 DNS servers. Bug: 9180552 Change-Id: I05000c0cd3867a68ab390102e8470b6912a9d3aa
* | | Minor cleanups to NetdCallbackReceiver.onEvent.Lorenzo Colitti2013-11-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | - Clean up identical error messages. - Fix the array length check for InterfaceAddressChange. Bug: 9180552 Change-Id: Id871f481445b530c3ad749725f1548df0e3a1228
* | | resolved conflicts for merge of 94b51810 to masterMatthew Williams2013-10-141-0/+55
|\ \ \ | |/ / | | | | | | Change-Id: Ida818f066b66c356a84c80e5eab0a4e2cf4ebd49
| * | am e0a2bdaf: am 32551ae5: Merge "Fix infinite boot-loop bug in SM." into klp-devMatthew Williams2013-10-111-0/+55
| |\ \ | | |/ | | | | | | | | | * commit 'e0a2bdaf61a7a72e92d614f81f86e7fd441b38e4': Fix infinite boot-loop bug in SM.
| | * Fix infinite boot-loop bug in SM.Matthew Williams2013-10-111-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug:11064918 If the ContentResolver sync API is used with the empty ("") string as a provider, the ContentService will throw an RTE. This cl addresses all the entry points of the API that could allow this, as well as adds an ifEmpty check at the point of failure. Also removed RTE throws from public functions(no point in crashing the phone). Change-Id: I57427d12a6cafb3e6d7a32ca0c10b05315b20580
* | | am aa947f15: am a9bce468: am 84742149: Merge "Make EntropyMixer mix in ↵Alex Klyubin2013-10-031-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | output of Hardware RNG into Linux RNG." * commit 'aa947f15314a4239de91a1cd0bea085e3399d43e': Make EntropyMixer mix in output of Hardware RNG into Linux RNG.
| * | am a9bce468: am 84742149: Merge "Make EntropyMixer mix in output of Hardware ↵Alex Klyubin2013-10-031-1/+1
| |\ \ | | |/ | |/| | | | | | | | | | | | | RNG into Linux RNG." * commit 'a9bce46876d6f1f82727ab6922748fcc6b43c767': Make EntropyMixer mix in output of Hardware RNG into Linux RNG.
| | * Make EntropyMixer mix in output of Hardware RNG into Linux RNG.Alex Klyubin2013-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On devices with Hardware RNG (HW RNG), this makes EntropyMixer periodically (every three hours) read 512 bytes from HW RNG and mix them into the Linux RNG. This is done without increasing Linux RNG's entropy estimates to avoid having to trust the quality of the HW RNG. This approach cannot reduce the quality of the Linux RNG output, but may increase it. Change-Id: Ifde851004301ffd41b2189151a64a0c5989c630f
* | | Pending op fix didn't merge properly from KLP-dev.Matthew Williams2013-09-161-3/+76
| | | | | | | | | | | | | | | | | | | | | Manually merge in Cl c/342668. Add another test to ensure that it WAI. Change-Id: Iae603328d525cc71e4e31ad30a13384efc50f823
* | | Merge "Refactor SyncManager rename authority->target"Matthew Williams2013-09-161-8/+23
|\ \ \
| * | | Refactor SyncManager rename authority->targetMatthew Williams2013-09-131-8/+23
| | | | | | | | | | | | | | | | | | | | | | | | fix bug that was stopping any sync service sync from from taking place. Change-Id: Ib3f46d43be630d4196fbf0ca32da03b6e7a6a5b9
* | | | am e2d76fa8: am cecccecc: Merge changes Ib1274847,I2eb2a1bf into klp-devJeff Sharkey2013-09-111-5/+3
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | * commit 'e2d76fa8c6d0f5c3d1a73a3ec9756c4bc545806d': Fix SDK build. Request all tethering interfaces, fix corruption.
| * | Request all tethering interfaces, fix corruption.Jeff Sharkey2013-09-101-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | netd now tracks statistics for tethered interfaces across tethering sessions, so switch to asking for all tethering stats. (Currently we're double-counting all tethering data, ever since it started tracking across sessions.) Also catch OOME to handle corrupt stats files, which we then dump to DropBox and then start over. Bug: 5868832, 9796109 Change-Id: I2eb2a1bf01b993dd198597d770fe0e022466c6b9
* | | Fix broken javadocsMatthew Williams2013-09-051-93/+160
|/ / | | | | | | Change-Id: Ibf7f2ed92919efd36fffa963447b1a443c0bb9db
* | Add a simple test for NetworkManagementService.Lorenzo Colitti2013-08-231-0/+175
| | | | | | | | | | | | | | | | | | | | For now, this only tests network observers. It works by starting NetworkManagementService with a fake netd socket, feeding it inputs, and seeing if the appropriate observer methods are called. Bug: 10232006 Change-Id: I827681575642a4ee13ae48b81272521544b676bd
* | Use pending.xml to persist sync ops.Matthew Williams2013-08-161-1/+12
| | | | | | | | | | | | | | | | | | | | Support pending ops by producing badly formed xml. fixed bug that stopped alarm manager from updating if the next alarm time is in the past. Use new AlarmManager API for old AM behaviour - to set exact alarms. Change-Id: I57090f9c7155996298be7ec968a88f17ac1938a7
* | Revert "Fix broken unit test"David Christie2013-08-061-2/+1
| | | | | | | | | | | | This reverts commit 0ca981fe42c43a4b7c345f4a0a2b3b2a519be5da. Change-Id: I67f5e7227a8a874158c4f0954e62a77a317f1edd
* | Fix broken unit testDavid Christie2013-08-021-1/+2
| | | | | | | | Change-Id: I4aa0035233749f6d585c151329436439ae9b2921
* | Fix build breakageDavid Christie2013-08-021-0/+1
| | | | | | | | Change-Id: Ia684fb55db301fdadaa3aae93f82b2cdcfc200af
* | Add WorkSource capability to AlarmManager.David Christie2013-08-011-1/+2
| | | | | | | | Change-Id: I663ea3078d405f0fa667a04bdaa376ae6652e994
* | AnonymousSyncService & SyncRequest.Matthew Williams2013-07-242-26/+294
| | | | | | | | | | | | | | | | Changes to the way bundles are parcelled broke SM, this update writes out the bundle as xml. This circumvents the need for parcel, and makes it easier to debug whats happening. Change-Id: I6cd5d3a2eb80bfa5b3ae0c7f2d2ff91a65daaa34
* | fix buildGuang Zhu2013-07-211-1/+1
| | | | | | | | Change-Id: Ie4bd7c3fe9320d22b7da2962e5e5a4abca510bd2
* | Fix build & preserve DHCP scheduling as-isChristopher Tate2013-07-181-2/+1
| | | | | | | | Change-Id: I4063b18532c476280f343658bf3641495e526ed4
* | Fix the build - missed a renamingSvetoslav2013-07-161-2/+2
|/ | | | Change-Id: I0e85723647c0e5a6f6374e119f0fbd43db477ee0
* Avoid logging sensitive data.Jeff Sharkey2013-06-071-0/+27
| | | | | | | | When building commands to send across NativeDaemonConnector, scrub sensitive arguments to prevent them from being logged. Bug: 8609800 Change-Id: I84b16791749264a010f7e59f9918f68d71bac6b9
* Fix testAmith Yamasani2013-03-301-12/+12
| | | | Change-Id: I329ceff03d3707e10c2e4eabfb8e6ea61082ae6d
* am 24948d3c: am 946a5c91: Merge "Save off the seinfo value with packages.list."Geremy Condra2013-03-281-3/+3
|\ | | | | | | | | * commit '24948d3ca7ff7fa70ee85e9aa7530239d7b482b2': Save off the seinfo value with packages.list.
| * Save off the seinfo value with packages.list.Robert Craig2013-03-261-3/+3
| | | | | | | | | | | | | | | | | | | | Patch adds the seinfo label per package to the file. This is of particular interest to the run-as program which uses the seinfo tag to correctly label the app security context before running the shell. Change-Id: I9d7ea47c920b1bc09a19008345ed7fd0aa426e87 Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
* | Fix build.Dianne Hackborn2013-03-271-2/+2
| | | | | | | | Change-Id: I38a25dc63107fc907a520169e1b58f00e51dbb9d