68366073e476aa7e724534244eb548d9f74c4608 |
|
27-Nov-2017 |
Philip P. Moltmann <moltmann@google.com> |
Switch to modern ArgumentMatchers Test: - adb shell am instrument -w -e class com.android.mediaframeworktest.unit.MediaInserterTest com.android.mediaframeworktest/android.support.test.runner.AndroidJUnitRunner - atest com.android.settingslib.users.AppRestrictionsHelperTest - atest com.android.server.NetworkScorerAppManagerTest com.android.server.accessibility.MotionEventInjectorTest com.android.server.webkit.WebViewUpdateServiceTest Change-Id: I6d4c543541d3bebcd65e5aa9e3f4d9a0152d5583
/frameworks/base/services/tests/servicestests/src/com/android/server/NetworkScorerAppManagerTest.java
|
d816abe97bce389dc0f56f3f2553b07483eca125 |
|
15-Jul-2017 |
Jeremy Joslin <jjoslin@google.com> |
NetworkRecommendationProviders require the location permission. Any NetworkRecommendationProvider bound to by the system must have access to location (i.e. it holds the location permission and location is enabled on the device). If the location permission is revoked then the binding will be disconnected and the system will revert to the default network recommendation provider (if set and valid). If location access is disabled on the device then the binding will be disconnected but the system won't fall back to the default provider (because it won't have location either), instead the current provider will be re-enabled when location access is enabled again. BUG:62263953 Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest Test: runtest frameworks-services -c com.android.server.NetworkScorerAppManagerTest Change-Id: I93c37eeda47840d92f3ca52767e878dc19b46740
/frameworks/base/services/tests/servicestests/src/com/android/server/NetworkScorerAppManagerTest.java
|
7aa0b0d94e577cb0e9620f0ea53ed37795be7e52 |
|
27-Apr-2017 |
Jeremy Joslin <jjoslin@google.com> |
Allow the active scorer to be set to NULL. Setting the scorer to NULL will disable scoring/recommendations. Test: runtest frameworks-services -c com.android.server.NetworkScorerAppManagerTest Bug: 37722313 Change-Id: I8bdc43aa80cc2d6668ffa24389a8e4e9aaf95bd6
/frameworks/base/services/tests/servicestests/src/com/android/server/NetworkScorerAppManagerTest.java
|
b0fe21782f2d4f9101aed3455b0c8f8632698e88 |
|
31-Mar-2017 |
Jeremy Joslin <jjoslin@google.com> |
Migrate the NETWORK_SCORER_APP Setting. Migrate the value of NETWORK_SCORER_APP to the USE_OPEN_WIFI_PACKAGE Setting if the following conditions are true: * NETWORK_SCORER_APP has a value * An active scorer/recommender is present. * The active scorer specifies a valid UseOpenWifiActivity. * The NETWORK_SCORER_APP value matches the package name of the UseOpenWifiActivity or the active scorer. Test: runtest frameworks-services -c com.android.server.NetworkScorerAppManagerTest Bug: 36718516 Change-Id: I7d7a56c62b4a7f4a0e43824fbb2075e80d7a753b
/frameworks/base/services/tests/servicestests/src/com/android/server/NetworkScorerAppManagerTest.java
|
d601360904df9b811205f44f15c89f12703d6d72 |
|
24-Mar-2017 |
Amin Shaikh <ashaikh@google.com> |
Parse NotificationChannel ID meta-data. - Add this new meta-data field on NetworkRecommendationProvider to NetworkScorerAppData Bug: 36571359 Test: runtest frameworks-services Change-Id: Ic8c594bea406fc5183a4919b808bce5159912650
/frameworks/base/services/tests/servicestests/src/com/android/server/NetworkScorerAppManagerTest.java
|
192bb0bc54f6bb418f5778fe26eb2e68514290fb |
|
09-Mar-2017 |
Paul Duffin <paulduffin@google.com> |
Refactor code incompatible with Mockito 2.7.13 (cherry picked from 76e319f015c2b43498ce3ce610a253d63e76cbf3) Some additional internal only refactorings were done as well. Bug: 32912773 Test: make checkbuild Change-Id: I96e3da967fad731fc8f39bde9db95f50ab7353fb
/frameworks/base/services/tests/servicestests/src/com/android/server/NetworkScorerAppManagerTest.java
|
9925c6a7e703a1267aef47d4b17c494d1fedb162 |
|
06-Mar-2017 |
Jeremy Joslin <jjoslin@google.com> |
Keep Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED updated. Make sure Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED reflects the current active scorer state. When valid the setting will have a value of 1, when invalid it will be 0 (or more accurately not 1, see below). Introduced a new valid setting value, -1, which indicates the feature has been forced off. Test: runtest frameworks-services -c com.android.server.NetworkScorerAppManagerTest Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest Bug: 35896421 Change-Id: I271725f798e5d0acc7c08c79678dba5115f8faad
/frameworks/base/services/tests/servicestests/src/com/android/server/NetworkScorerAppManagerTest.java
|
8b1339af53c3e3287cfb98eb25c69f31739923e6 |
|
01-Mar-2017 |
Stephen Chen <stewchen@google.com> |
Add a network scorer label metadata field to NetworkScoreAppData This field allows Network Score Services to pass an alternate label for the scorer. Bug: 35848510 Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/NetworkScorerAppManagerTest.java runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/NetworkScoreServiceTest.java Change-Id: Ic28671c1663bd08b2406045d20c150a209d56054
/frameworks/base/services/tests/servicestests/src/com/android/server/NetworkScorerAppManagerTest.java
|
ee3fb5cac97ad63b3ba1727cb3b38c1888a29cb9 |
|
13-Feb-2017 |
Jeremy Joslin <jjoslin@google.com> |
Bind to the recommendation service specified in the Setting. High level changes to NetworkScorerAppManager: * Implemented getAllValidScorers() and removed the old config-based discovery code. * Implemented setActiveScorer() to persist its given package name to Settings if it represents a valid network recommendation app. * Added a new method that reverts the setting back to the configured default if the current setting represents an invalid app. High level changes to NetworkScoreService: * Updated the PackageMonitor to only watch a single package. * Moved most of the startup logic to onUserUnlocked() so we don't have to worry about whether or not the device is encrypted when querying the PackageManager. * The PackageMonitor is only registered/unregistered when the package it's watching changes. Test: runtest frameworks-services -c com.android.server.NetworkScorerAppManagerTest Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest Bug: 35095406 Change-Id: Ib32aca72dac4b831a64ceb3cd5c31e8fa2f61396
/frameworks/base/services/tests/servicestests/src/com/android/server/NetworkScorerAppManagerTest.java
|
f621bc973380bb87013c503f7daaf25fd0b94721 |
|
16-Feb-2017 |
Jeremy Joslin <jjoslin@google.com> |
Move NetworkScorerAppManager into com.android.server. NetworkScorerAppManager is only used internally by the NetworkScoreService and no longer needs to be part of core. Extracted its inner class, NetworkScorerAppData, into a top-level class and left it in android.net as it's used as part of the NetworkScoreManager API. Test: runtest frameworks-services -c com.android.server.NetworkScorerAppManagerTest Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest Bug: 35095406 Change-Id: I201f081e05d0a909b4ae3142b63afc3e21548f77
/frameworks/base/services/tests/servicestests/src/com/android/server/NetworkScorerAppManagerTest.java
|