Home
last modified time | relevance | path

Searched refs:AnalyticsUtils (Results 1 – 8 of 8) sorted by relevance

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DProvisioningAnalyticsTracker.java138 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in logCopyAccountStatus()
152 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in logProvisioningCancelled()
165 AnalyticsUtils.getErrorString(task, errorCode)); in logProvisioningError()
168 .setStrings(AnalyticsUtils.getErrorString(task, errorCode)) in logProvisioningError()
169 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in logProvisioningError()
183 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in logProvisioningNotAllowed()
195 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in logProvisioningSessionStarted()
207 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in logProvisioningSessionCompleted()
220 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in logNumberOfTermsDisplayed()
234 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in logNumberOfTermsRead()
[all …]
DTimeLogger.java29 import static com.android.managedprovisioning.analytics.AnalyticsUtils.CATEGORY_VIEW_UNKNOWN;
46 private final AnalyticsUtils mAnalyticsUtils;
63 this(context, category, new MetricsLoggerWrapper(), new AnalyticsUtils(), in TimeLogger()
74 AnalyticsUtils analyticsUtils, in TimeLogger()
102 AnalyticsUtils.getDevicePolicyEventForCategory(mCategory); in stop()
DNetworkTypeLogger.java75 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in log()
82 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in log()
DAnalyticsUtils.java63 public class AnalyticsUtils { class
67 public AnalyticsUtils() {} in AnalyticsUtils() method in AnalyticsUtils
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/analytics/
DAnalyticsUtilsTest.java81 assertNull(AnalyticsUtils.getInstallerPackageName(mockContext, INVALID_PACKAGE_NAME)); in testGetInstallerPackageName_invalidPackage()
90 AnalyticsUtils.getInstallerPackageName(mockContext, VALID_PACKAGE_NAME)); in testGetInstallerPackageName_validPackage()
95 List<String> provisioningExtras = AnalyticsUtils.getAllProvisioningExtras(null); in testGetAllProvisioningExtras_NullIntent()
104 List<String> provisioningExtras = AnalyticsUtils.getAllProvisioningExtras(intent); in testGetAllProvisioningExtras_ProvisioningResume()
113 List<String> provisioningExtras = AnalyticsUtils.getAllProvisioningExtras(intent); in testGetAllProvisioningExtras_NullBundleExtras()
122 List<String> provisioningExtras = AnalyticsUtils.getAllProvisioningExtras(intent); in testGetAllProvisioningExtras_NullNfcProperties()
134 List<String> provisioningExtras = AnalyticsUtils.getAllProvisioningExtras(intent); in testGetAllProvisioningExtras()
160 List<String> provisioningExtras = AnalyticsUtils.getAllProvisioningExtras(intent); in testGetAllProvisioningExtras_Nfc()
172 assertThat(AnalyticsUtils.getProvisioningTime(mockPrefs, () -> 20L)).isEqualTo(15L); in testGetProvisioningTime_shouldReturnDiff()
180 assertThat(AnalyticsUtils.getProvisioningTime(mockPrefs, () -> 20L)).isEqualTo(-1); in testGetProvisioningTime_shouldReturnZero()
DTimeLoggerTest.java49 @Mock private AnalyticsUtils mAnalyticsUtils;
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DAbstractProvisioningTask.java25 import com.android.managedprovisioning.analytics.AnalyticsUtils;
72 new AnalyticsUtils(), in AbstractProvisioningTask()
/packages/apps/UnifiedEmail/src/com/android/mail/analytics/
DAnalyticsUtils.java22 public class AnalyticsUtils { class