Loading services/core/java/com/android/server/timezone/PackageStatusStorage.java +14 −10 Original line number Diff line number Diff line Loading @@ -82,12 +82,16 @@ final class PackageStatusStorage { PackageStatusStorage(File storageDir) { mPackageStatusFile = new AtomicFile(new File(storageDir, "package-status.xml")); } /** * Initialize any storage, as needed. * * @throws IOException if the storage could not be initialized */ void initialize() throws IOException { if (!mPackageStatusFile.getBaseFile().exists()) { try { insertInitialPackageStatus(); } catch (IOException e) { throw new IllegalStateException(e); } } } Loading Loading @@ -342,13 +346,13 @@ final class PackageStatusStorage { } /** Only used during tests to force a known table state. */ public void forceCheckStateForTests(int checkStatus, PackageVersions packageVersions) { public void forceCheckStateForTests(int checkStatus, PackageVersions packageVersions) throws IOException { synchronized (this) { try { int optimisticLockId = getCurrentOptimisticLockId(); writePackageStatusWithOptimisticLockCheck(optimisticLockId, optimisticLockId, checkStatus, packageVersions); } catch (IOException | ParseException e) { final int initialOptimisticLockId = (int) System.currentTimeMillis(); writePackageStatusLocked(checkStatus, initialOptimisticLockId, packageVersions); } catch (IOException e) { throw new IllegalStateException(e); } } Loading services/core/java/com/android/server/timezone/PackageTracker.java +12 −6 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ import android.provider.TimeZoneRulesDataContract; import android.util.Slog; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.time.Clock; Loading Loading @@ -97,10 +98,6 @@ public class PackageTracker { Clock elapsedRealtimeClock = SystemClock.elapsedRealtimeClock(); PackageTrackerHelperImpl helperImpl = new PackageTrackerHelperImpl(context); File storageDir = FileUtils.createDir(Environment.getDataSystemDirectory(), "timezone"); if (!storageDir.exists()) { storageDir.mkdir(); } return new PackageTracker( elapsedRealtimeClock /* elapsedRealtimeClock */, helperImpl /* configHelper */, Loading @@ -121,11 +118,11 @@ public class PackageTracker { } @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE) protected synchronized void start() { protected synchronized boolean start() { mTrackingEnabled = mConfigHelper.isTrackingEnabled(); if (!mTrackingEnabled) { Slog.i(TAG, "Time zone updater / data package tracking explicitly disabled."); return; return false; } mUpdateAppPackageName = mConfigHelper.getUpdateAppPackageName(); Loading @@ -143,6 +140,14 @@ public class PackageTracker { mCheckTriggered = false; mCheckFailureCount = 0; // Initialize the storage, as needed. try { mPackageStatusStorage.initialize(); } catch (IOException e) { Slog.w(TAG, "PackageTracker storage could not be initialized.", e); return false; } // Initialize the intent helper. mIntentHelper.initialize(mUpdateAppPackageName, mDataAppPackageName, this); Loading @@ -152,6 +157,7 @@ public class PackageTracker { mIntentHelper.scheduleReliabilityTrigger(mDelayBeforeReliabilityCheckMillis); Slog.i(TAG, "Time zone updater / data package tracking enabled"); return true; } /** Loading services/core/java/com/android/server/timezone/RulesManagerService.java +1 −0 Original line number Diff line number Diff line Loading @@ -121,6 +121,7 @@ public final class RulesManagerService extends IRulesManager.Stub { } public void start() { // Return value deliberately ignored: no action required on failure to start. mPackageTracker.start(); } Loading services/tests/servicestests/src/com/android/server/timezone/PackageStatusStorageTest.java +13 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import android.support.test.InstrumentationRegistry; import android.support.test.filters.SmallTest; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; Loading @@ -33,6 +34,7 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.fail; @SmallTest public class PackageStatusStorageTest { Loading @@ -48,6 +50,7 @@ public class PackageStatusStorageTest { // Using the instrumentation context means the database is created in a test app-specific // directory. mPackageStatusStorage = new PackageStatusStorage(dataDir); mPackageStatusStorage.initialize(); } @After Loading @@ -55,6 +58,16 @@ public class PackageStatusStorageTest { mPackageStatusStorage.deleteFileForTests(); } @Test public void initialize_fail() { File readOnlyDir = new File("/system/does/not/exist"); PackageStatusStorage packageStatusStorage = new PackageStatusStorage(readOnlyDir); try { packageStatusStorage.initialize(); fail(); } catch (IOException expected) {} } @Test public void getPackageStatus_initialState() { assertNull(mPackageStatusStorage.getPackageStatus()); Loading services/tests/servicestests/src/com/android/server/timezone/PackageTrackerTest.java +53 −22 Original line number Diff line number Diff line Loading @@ -30,6 +30,8 @@ import android.provider.TimeZoneRulesDataContract; import android.support.test.InstrumentationRegistry; import android.support.test.filters.SmallTest; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; import java.time.Clock; Loading Loading @@ -104,7 +106,7 @@ public class PackageTrackerTest { configureTrackingDisabled(); // Initialize the tracker. mPackageTracker.start(); assertFalse(mPackageTracker.start()); // Check the IntentHelper was not initialized. mFakeIntentHelper.assertNotInitialized(); Loading @@ -119,7 +121,7 @@ public class PackageTrackerTest { configureTrackingDisabled(); // Initialize the tracker. mPackageTracker.start(); assertFalse(mPackageTracker.start()); // Check reliability triggering state. mFakeIntentHelper.assertReliabilityTriggerNotScheduled(); Loading @@ -141,7 +143,7 @@ public class PackageTrackerTest { configureTrackingDisabled(); // Initialize the tracker. mPackageTracker.start(); assertFalse(mPackageTracker.start()); // Check reliability triggering state. mFakeIntentHelper.assertReliabilityTriggerNotScheduled(); Loading @@ -166,7 +168,7 @@ public class PackageTrackerTest { mPackageStatusStorage.generateCheckToken(INITIAL_APP_PACKAGE_VERSIONS); // Initialize the tracker. mPackageTracker.start(); assertFalse(mPackageTracker.start()); // Check reliability triggering state. mFakeIntentHelper.assertReliabilityTriggerNotScheduled(); Loading Loading @@ -261,6 +263,35 @@ public class PackageTrackerTest { mFakeIntentHelper.assertReliabilityTriggerNotScheduled(); } @Test public void trackingEnabled_storageInitializationFails() throws Exception { // Create a PackageStateStorage that will fail to initialize. PackageStatusStorage packageStatusStorage = new PackageStatusStorage(new File("/system/does/not/exist")); // Create a new PackageTracker to use the bad storage. mPackageTracker = new PackageTracker( mFakeClock, mMockConfigHelper, mMockPackageManagerHelper, packageStatusStorage, mFakeIntentHelper); // Set up device configuration. configureTrackingEnabled(); configureReliabilityConfigSettingsOk(); configureValidApplications(); // Initialize the tracker. assertFalse(mPackageTracker.start()); // Check the IntentHelper was not initialized. mFakeIntentHelper.assertNotInitialized(); // Check reliability triggering state. mFakeIntentHelper.assertReliabilityTriggerNotScheduled(); } @Test public void trackingEnabled_packageUpdate_badUpdateAppManifestEntry() throws Exception { // Set up device configuration. Loading @@ -269,7 +300,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -306,7 +337,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -351,7 +382,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -399,7 +430,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -438,7 +469,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -484,7 +515,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -533,7 +564,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -593,7 +624,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -655,7 +686,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -711,7 +742,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -760,7 +791,7 @@ public class PackageTrackerTest { PackageVersions packageVersions = configureValidApplications(); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -797,7 +828,7 @@ public class PackageTrackerTest { PackageStatus.CHECK_COMPLETED_SUCCESS, packageVersions); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -837,7 +868,7 @@ public class PackageTrackerTest { PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -883,7 +914,7 @@ public class PackageTrackerTest { PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -942,7 +973,7 @@ public class PackageTrackerTest { PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -1017,7 +1048,7 @@ public class PackageTrackerTest { PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -1083,7 +1114,7 @@ public class PackageTrackerTest { PackageStatus.CHECK_COMPLETED_SUCCESS, currentPackageVersions); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -1138,7 +1169,7 @@ public class PackageTrackerTest { PackageStatus.CHECK_COMPLETED_SUCCESS, currentPackageVersions); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading
services/core/java/com/android/server/timezone/PackageStatusStorage.java +14 −10 Original line number Diff line number Diff line Loading @@ -82,12 +82,16 @@ final class PackageStatusStorage { PackageStatusStorage(File storageDir) { mPackageStatusFile = new AtomicFile(new File(storageDir, "package-status.xml")); } /** * Initialize any storage, as needed. * * @throws IOException if the storage could not be initialized */ void initialize() throws IOException { if (!mPackageStatusFile.getBaseFile().exists()) { try { insertInitialPackageStatus(); } catch (IOException e) { throw new IllegalStateException(e); } } } Loading Loading @@ -342,13 +346,13 @@ final class PackageStatusStorage { } /** Only used during tests to force a known table state. */ public void forceCheckStateForTests(int checkStatus, PackageVersions packageVersions) { public void forceCheckStateForTests(int checkStatus, PackageVersions packageVersions) throws IOException { synchronized (this) { try { int optimisticLockId = getCurrentOptimisticLockId(); writePackageStatusWithOptimisticLockCheck(optimisticLockId, optimisticLockId, checkStatus, packageVersions); } catch (IOException | ParseException e) { final int initialOptimisticLockId = (int) System.currentTimeMillis(); writePackageStatusLocked(checkStatus, initialOptimisticLockId, packageVersions); } catch (IOException e) { throw new IllegalStateException(e); } } Loading
services/core/java/com/android/server/timezone/PackageTracker.java +12 −6 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ import android.provider.TimeZoneRulesDataContract; import android.util.Slog; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.time.Clock; Loading Loading @@ -97,10 +98,6 @@ public class PackageTracker { Clock elapsedRealtimeClock = SystemClock.elapsedRealtimeClock(); PackageTrackerHelperImpl helperImpl = new PackageTrackerHelperImpl(context); File storageDir = FileUtils.createDir(Environment.getDataSystemDirectory(), "timezone"); if (!storageDir.exists()) { storageDir.mkdir(); } return new PackageTracker( elapsedRealtimeClock /* elapsedRealtimeClock */, helperImpl /* configHelper */, Loading @@ -121,11 +118,11 @@ public class PackageTracker { } @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE) protected synchronized void start() { protected synchronized boolean start() { mTrackingEnabled = mConfigHelper.isTrackingEnabled(); if (!mTrackingEnabled) { Slog.i(TAG, "Time zone updater / data package tracking explicitly disabled."); return; return false; } mUpdateAppPackageName = mConfigHelper.getUpdateAppPackageName(); Loading @@ -143,6 +140,14 @@ public class PackageTracker { mCheckTriggered = false; mCheckFailureCount = 0; // Initialize the storage, as needed. try { mPackageStatusStorage.initialize(); } catch (IOException e) { Slog.w(TAG, "PackageTracker storage could not be initialized.", e); return false; } // Initialize the intent helper. mIntentHelper.initialize(mUpdateAppPackageName, mDataAppPackageName, this); Loading @@ -152,6 +157,7 @@ public class PackageTracker { mIntentHelper.scheduleReliabilityTrigger(mDelayBeforeReliabilityCheckMillis); Slog.i(TAG, "Time zone updater / data package tracking enabled"); return true; } /** Loading
services/core/java/com/android/server/timezone/RulesManagerService.java +1 −0 Original line number Diff line number Diff line Loading @@ -121,6 +121,7 @@ public final class RulesManagerService extends IRulesManager.Stub { } public void start() { // Return value deliberately ignored: no action required on failure to start. mPackageTracker.start(); } Loading
services/tests/servicestests/src/com/android/server/timezone/PackageStatusStorageTest.java +13 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import android.support.test.InstrumentationRegistry; import android.support.test.filters.SmallTest; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; Loading @@ -33,6 +34,7 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.fail; @SmallTest public class PackageStatusStorageTest { Loading @@ -48,6 +50,7 @@ public class PackageStatusStorageTest { // Using the instrumentation context means the database is created in a test app-specific // directory. mPackageStatusStorage = new PackageStatusStorage(dataDir); mPackageStatusStorage.initialize(); } @After Loading @@ -55,6 +58,16 @@ public class PackageStatusStorageTest { mPackageStatusStorage.deleteFileForTests(); } @Test public void initialize_fail() { File readOnlyDir = new File("/system/does/not/exist"); PackageStatusStorage packageStatusStorage = new PackageStatusStorage(readOnlyDir); try { packageStatusStorage.initialize(); fail(); } catch (IOException expected) {} } @Test public void getPackageStatus_initialState() { assertNull(mPackageStatusStorage.getPackageStatus()); Loading
services/tests/servicestests/src/com/android/server/timezone/PackageTrackerTest.java +53 −22 Original line number Diff line number Diff line Loading @@ -30,6 +30,8 @@ import android.provider.TimeZoneRulesDataContract; import android.support.test.InstrumentationRegistry; import android.support.test.filters.SmallTest; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; import java.time.Clock; Loading Loading @@ -104,7 +106,7 @@ public class PackageTrackerTest { configureTrackingDisabled(); // Initialize the tracker. mPackageTracker.start(); assertFalse(mPackageTracker.start()); // Check the IntentHelper was not initialized. mFakeIntentHelper.assertNotInitialized(); Loading @@ -119,7 +121,7 @@ public class PackageTrackerTest { configureTrackingDisabled(); // Initialize the tracker. mPackageTracker.start(); assertFalse(mPackageTracker.start()); // Check reliability triggering state. mFakeIntentHelper.assertReliabilityTriggerNotScheduled(); Loading @@ -141,7 +143,7 @@ public class PackageTrackerTest { configureTrackingDisabled(); // Initialize the tracker. mPackageTracker.start(); assertFalse(mPackageTracker.start()); // Check reliability triggering state. mFakeIntentHelper.assertReliabilityTriggerNotScheduled(); Loading @@ -166,7 +168,7 @@ public class PackageTrackerTest { mPackageStatusStorage.generateCheckToken(INITIAL_APP_PACKAGE_VERSIONS); // Initialize the tracker. mPackageTracker.start(); assertFalse(mPackageTracker.start()); // Check reliability triggering state. mFakeIntentHelper.assertReliabilityTriggerNotScheduled(); Loading Loading @@ -261,6 +263,35 @@ public class PackageTrackerTest { mFakeIntentHelper.assertReliabilityTriggerNotScheduled(); } @Test public void trackingEnabled_storageInitializationFails() throws Exception { // Create a PackageStateStorage that will fail to initialize. PackageStatusStorage packageStatusStorage = new PackageStatusStorage(new File("/system/does/not/exist")); // Create a new PackageTracker to use the bad storage. mPackageTracker = new PackageTracker( mFakeClock, mMockConfigHelper, mMockPackageManagerHelper, packageStatusStorage, mFakeIntentHelper); // Set up device configuration. configureTrackingEnabled(); configureReliabilityConfigSettingsOk(); configureValidApplications(); // Initialize the tracker. assertFalse(mPackageTracker.start()); // Check the IntentHelper was not initialized. mFakeIntentHelper.assertNotInitialized(); // Check reliability triggering state. mFakeIntentHelper.assertReliabilityTriggerNotScheduled(); } @Test public void trackingEnabled_packageUpdate_badUpdateAppManifestEntry() throws Exception { // Set up device configuration. Loading @@ -269,7 +300,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -306,7 +337,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -351,7 +382,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -399,7 +430,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -438,7 +469,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -484,7 +515,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -533,7 +564,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -593,7 +624,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -655,7 +686,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -711,7 +742,7 @@ public class PackageTrackerTest { configureValidApplications(); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -760,7 +791,7 @@ public class PackageTrackerTest { PackageVersions packageVersions = configureValidApplications(); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -797,7 +828,7 @@ public class PackageTrackerTest { PackageStatus.CHECK_COMPLETED_SUCCESS, packageVersions); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -837,7 +868,7 @@ public class PackageTrackerTest { PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -883,7 +914,7 @@ public class PackageTrackerTest { PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -942,7 +973,7 @@ public class PackageTrackerTest { PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -1017,7 +1048,7 @@ public class PackageTrackerTest { PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -1083,7 +1114,7 @@ public class PackageTrackerTest { PackageStatus.CHECK_COMPLETED_SUCCESS, currentPackageVersions); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading Loading @@ -1138,7 +1169,7 @@ public class PackageTrackerTest { PackageStatus.CHECK_COMPLETED_SUCCESS, currentPackageVersions); // Initialize the package tracker. mPackageTracker.start(); assertTrue(mPackageTracker.start()); // Check the intent helper is properly configured. checkIntentHelperInitializedAndReliabilityTrackingEnabled(); Loading