• Home
  • Raw
  • Download

Lines Matching refs:MetricConsts

78                 MetricConsts.MIME_UNKNOWN, sanitizeRoot(rootUri));  in logLaunchAtLocation()
87 public static void logRootVisited(@MetricConsts.ContextScope int scope, RootInfo info) { in logRootVisited()
100 MetricConsts.PICKER_SCOPE, sanitizeRoot(info)); in logAppVisited()
123 logInterProviderFileOps(MetricConsts.PROVIDER_SYSTEM, dst, operationType); in logFileOperation()
127 logInterProviderFileOps(MetricConsts.PROVIDER_EXTERNAL, dst, operationType); in logFileOperation()
132 @OpType int operationType, @MetricConsts.FileOpMode int approach) { in logFileOperated()
136 MetricConsts.FILEOP_COPY, approach); in logFileOperated()
140 MetricConsts.FILEOP_MOVE, approach); in logFileOperated()
152 MetricConsts.PROVIDER_SYSTEM, MetricConsts.FILEOP_CREATE_DIR); in logCreateDirOperation()
162 MetricConsts.PROVIDER_SYSTEM, MetricConsts.FILEOP_RENAME); in logRenameFileOperation()
178 @MetricConsts.FileOp int opCode = MetricConsts.FILEOP_OTHER_ERROR; in logFileOperationErrors()
181 opCode = MetricConsts.FILEOP_COPY_ERROR; in logFileOperationErrors()
184 opCode = MetricConsts.FILEOP_COMPRESS_ERROR; in logFileOperationErrors()
187 opCode = MetricConsts.FILEOP_EXTRACT_ERROR; in logFileOperationErrors()
190 opCode = MetricConsts.FILEOP_DELETE_ERROR; in logFileOperationErrors()
193 opCode = MetricConsts.FILEOP_MOVE_ERROR; in logFileOperationErrors()
199 MetricConsts.PROVIDER_SYSTEM, opCode); in logFileOperationErrors()
204 MetricConsts.PROVIDER_EXTERNAL, opCode); in logFileOperationErrors()
209 Context context, @MetricConsts.SubFileOp int subFileOp, Uri docUri) { in logFileOperationFailure()
215 MetricConsts.AUTH_MEDIA, subFileOp); in logFileOperationFailure()
223 MetricConsts.AUTH_DOWNLOADS, subFileOp); in logFileOperationFailure()
228 MetricConsts.AUTH_MTP, subFileOp); in logFileOperationFailure()
233 MetricConsts.AUTH_OTHER, subFileOp); in logFileOperationFailure()
245 MetricConsts.PROVIDER_SYSTEM, MetricConsts.FILEOP_CREATE_DIR_ERROR); in logCreateDirError()
255 MetricConsts.PROVIDER_SYSTEM, MetricConsts.FILEOP_RENAME_ERROR); in logRenameFileError()
278 @MetricConsts.Provider int providerType, in logInterProviderFileOps()
283 providerType, MetricConsts.FILEOP_DELETE); in logInterProviderFileOps()
286 @MetricConsts.Provider int opProviderType = isSystemProvider(dst.authority) in logInterProviderFileOps()
287 ? MetricConsts.PROVIDER_SYSTEM : MetricConsts.PROVIDER_EXTERNAL; in logInterProviderFileOps()
294 @MetricConsts.Provider int providerType = isSystemProvider(authority) in logIntraProviderFileOps()
295 ? MetricConsts.PROVIDER_SYSTEM : MetricConsts.PROVIDER_EXTERNAL; in logIntraProviderFileOps()
297 providerType, getOpCode(operationType, MetricConsts.PROVIDER_INTRA)); in logIntraProviderFileOps()
305 public static void logUserAction(@MetricConsts.UserAction int userAction) { in logUserAction()
336 Context context, @MetricConsts.SubFileOp int subFileOp, Uri docUri) { in logStorageFileOperationFailure()
351 @MetricConsts.MetricsAuth final int authority = isInternal in logStorageFileOperationFailure()
352 ? MetricConsts.AUTH_STORAGE_INTERNAL : MetricConsts.AUTH_STORAGE_EXTERNAL; in logStorageFileOperationFailure()
361 private static @MetricConsts.Root int sanitizeRoot(Uri uri) { in sanitizeRoot()
363 return MetricConsts.ROOT_NONE; in sanitizeRoot()
369 return MetricConsts.ROOT_NONE; in sanitizeRoot()
373 return MetricConsts.ROOT_AUDIO; in sanitizeRoot()
375 return MetricConsts.ROOT_IMAGES; in sanitizeRoot()
377 return MetricConsts.ROOT_VIDEOS; in sanitizeRoot()
379 return MetricConsts.ROOT_OTHER_DOCS_PROVIDER; in sanitizeRoot()
384 return MetricConsts.ROOT_NONE; in sanitizeRoot()
387 return MetricConsts.ROOT_HOME; in sanitizeRoot()
389 return MetricConsts.ROOT_DEVICE_STORAGE; in sanitizeRoot()
392 return MetricConsts.ROOT_DOWNLOADS; in sanitizeRoot()
394 return MetricConsts.ROOT_MTP; in sanitizeRoot()
396 return MetricConsts.ROOT_OTHER_DOCS_PROVIDER; in sanitizeRoot()
401 public static @MetricConsts.Root int sanitizeRoot(RootInfo root) { in sanitizeRoot()
405 return MetricConsts.ROOT_RECENTS; in sanitizeRoot()
412 public static @MetricConsts.Root int sanitizeRoot(ResolveInfo info) { in sanitizeRoot()
414 return MetricConsts.ROOT_THIRD_PARTY_APP; in sanitizeRoot()
424 public static @MetricConsts.Mime int sanitizeMime(String mimeType) { in sanitizeMime()
426 return MetricConsts.MIME_NONE; in sanitizeMime()
428 return MetricConsts.MIME_ANY; in sanitizeMime()
433 return MetricConsts.MIME_APPLICATION; in sanitizeMime()
435 return MetricConsts.MIME_AUDIO; in sanitizeMime()
437 return MetricConsts.MIME_IMAGE; in sanitizeMime()
439 return MetricConsts.MIME_MESSAGE; in sanitizeMime()
441 return MetricConsts.MIME_MULTIPART; in sanitizeMime()
443 return MetricConsts.MIME_TEXT; in sanitizeMime()
445 return MetricConsts.MIME_VIDEO; in sanitizeMime()
449 return MetricConsts.MIME_OTHER; in sanitizeMime()
469 private static @MetricConsts.FileOp int getOpCode( in getOpCode()
470 @OpType int operation, @MetricConsts.Provider int providerType) { in getOpCode()
474 case MetricConsts.PROVIDER_INTRA: in getOpCode()
475 return MetricConsts.FILEOP_COPY_INTRA_PROVIDER; in getOpCode()
476 case MetricConsts.PROVIDER_SYSTEM: in getOpCode()
477 return MetricConsts.FILEOP_COPY_SYSTEM_PROVIDER; in getOpCode()
478 case MetricConsts.PROVIDER_EXTERNAL: in getOpCode()
479 return MetricConsts.FILEOP_COPY_EXTERNAL_PROVIDER; in getOpCode()
483 case MetricConsts.PROVIDER_INTRA: in getOpCode()
484 return MetricConsts.FILEOP_COMPRESS_INTRA_PROVIDER; in getOpCode()
485 case MetricConsts.PROVIDER_SYSTEM: in getOpCode()
486 return MetricConsts.FILEOP_COMPRESS_SYSTEM_PROVIDER; in getOpCode()
487 case MetricConsts.PROVIDER_EXTERNAL: in getOpCode()
488 return MetricConsts.FILEOP_COMPRESS_EXTERNAL_PROVIDER; in getOpCode()
492 case MetricConsts.PROVIDER_INTRA: in getOpCode()
493 return MetricConsts.FILEOP_EXTRACT_INTRA_PROVIDER; in getOpCode()
494 case MetricConsts.PROVIDER_SYSTEM: in getOpCode()
495 return MetricConsts.FILEOP_EXTRACT_SYSTEM_PROVIDER; in getOpCode()
496 case MetricConsts.PROVIDER_EXTERNAL: in getOpCode()
497 return MetricConsts.FILEOP_EXTRACT_EXTERNAL_PROVIDER; in getOpCode()
501 case MetricConsts.PROVIDER_INTRA: in getOpCode()
502 return MetricConsts.FILEOP_MOVE_INTRA_PROVIDER; in getOpCode()
503 case MetricConsts.PROVIDER_SYSTEM: in getOpCode()
504 return MetricConsts.FILEOP_MOVE_SYSTEM_PROVIDER; in getOpCode()
505 case MetricConsts.PROVIDER_EXTERNAL: in getOpCode()
506 return MetricConsts.FILEOP_MOVE_EXTERNAL_PROVIDER; in getOpCode()
509 return MetricConsts.FILEOP_DELETE; in getOpCode()
512 return MetricConsts.FILEOP_OTHER; in getOpCode()
519 private static @MetricConsts.FileOp int toMetricsOpType(@OpType int operation) { in toMetricsOpType()
522 return MetricConsts.FILEOP_COPY; in toMetricsOpType()
524 return MetricConsts.FILEOP_MOVE; in toMetricsOpType()
526 return MetricConsts.FILEOP_DELETE; in toMetricsOpType()
529 return MetricConsts.FILEOP_UNKNOWN; in toMetricsOpType()
533 private static @MetricConsts.MetricsAction int toMetricsAction(int action) { in toMetricsAction()
536 return MetricConsts.ACTION_OPEN; in toMetricsAction()
538 return MetricConsts.ACTION_CREATE; in toMetricsAction()
540 return MetricConsts.ACTION_GET_CONTENT; in toMetricsAction()
542 return MetricConsts.ACTION_OPEN_TREE; in toMetricsAction()
544 return MetricConsts.ACTION_BROWSE; in toMetricsAction()
546 return MetricConsts.ACTION_PICK_COPY_DESTINATION; in toMetricsAction()
548 return MetricConsts.ACTION_OTHER; in toMetricsAction()
554 return MetricConsts.SEARCH_KEYWORD_N_CHIPS; in getSearchMode()
556 return MetricConsts.SEARCH_KEYWORD; in getSearchMode()
558 return MetricConsts.SEARCH_CHIPS; in getSearchMode()
560 return MetricConsts.SEARCH_UNKNOWN; in getSearchMode()