/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | DumpsysMeminfoListenerTest.java | 64 Bundle bundle = new Bundle(); in testListener_withProcessNames() local 65 bundle.putString( in testListener_withProcessNames() 68 DumpsysMeminfoListener listener = initListener(bundle, mDumpsysMeminfoHelper); in testListener_withProcessNames() 77 Bundle bundle = new Bundle(); in testListener_withProcessNameObjectNames() local 93 bundle.putString(DumpsysMeminfoListener.PROCESS_NAMES_OBJECT_NAMES_KEY, processDetailsStr); in testListener_withProcessNameObjectNames() 94 DumpsysMeminfoListener listener = initListener(bundle, mDumpsysMeminfoHelper); in testListener_withProcessNameObjectNames() 99 private DumpsysMeminfoListener initListener(Bundle bundle, DumpsysMeminfoHelper helper) { in initListener() argument 100 DumpsysMeminfoListener listener = new DumpsysMeminfoListener(bundle, helper); in initListener()
|
D | OatDumpCollectorTest.java | 56 Bundle bundle = new Bundle(); in testCollectOatDump_onRunStartAndRunEnd() local 58 bundle.putString(OatDumpCollector.OAT_DUMP_PROCESS, "com.android.systemui"); in testCollectOatDump_onRunStartAndRunEnd() 61 bundle.putString(OatDumpCollector.ADDITIONAL_TEST_OUTPUT_DIR, outputDir.getAbsolutePath()); in testCollectOatDump_onRunStartAndRunEnd() 63 OatDumpCollector collector = new OatDumpCollector(bundle); in testCollectOatDump_onRunStartAndRunEnd() 110 Bundle bundle = new Bundle(); in testFailsIfProcessNotSpecified() local 111 bundle.putString( in testFailsIfProcessNotSpecified() 117 OatDumpCollector collector = new OatDumpCollector(bundle); in testFailsIfProcessNotSpecified() 124 Bundle bundle = new Bundle(); in testFailsIfOutputDirNotSpecified() local 125 bundle.putString(OatDumpCollector.OAT_DUMP_PROCESS, "com.android.systemui"); in testFailsIfOutputDirNotSpecified() 126 OatDumpCollector collector = new OatDumpCollector(bundle); in testFailsIfOutputDirNotSpecified()
|
D | DumpsysServiceListenerTest.java | 65 Bundle bundle = new Bundle(); in testListener_withProcessNames() local 66 bundle.putString( in testListener_withProcessNames() 69 DumpsysServiceListener listener = initListener(bundle, mDumpsysServiceHelper); in testListener_withProcessNames() 74 private DumpsysServiceListener initListener(Bundle bundle, DumpsysServiceHelper helper) { in initListener() argument 75 DumpsysServiceListener listener = new DumpsysServiceListener(bundle, helper); in initListener()
|
D | GcaEventLogCollectorTest.java | 71 private GcaEventLogCollector initListener(Bundle bundle) { in initListener() argument 72 mCollector = new GcaEventLogCollector(bundle); in initListener() 83 Bundle bundle = new Bundle(); in testGcaEventLogCollectionOnTestEnd_includeFailure() local 84 bundle.putString(GcaEventLogCollector.COLLECT_TEST_FAILURE_CAMERA_LOGS, "true"); in testGcaEventLogCollectionOnTestEnd_includeFailure() 85 GcaEventLogCollector listener = initListener(bundle); in testGcaEventLogCollectionOnTestEnd_includeFailure() 135 Bundle bundle = new Bundle(); in testGcaEventLogCollectOnTestEnd_skipFailure() local 136 bundle.putString(GcaEventLogCollector.COLLECT_TEST_FAILURE_CAMERA_LOGS, "false"); in testGcaEventLogCollectOnTestEnd_skipFailure() 137 GcaEventLogCollector listener = initListener(bundle); in testGcaEventLogCollectOnTestEnd_skipFailure() 191 Bundle bundle = new Bundle(); in testGcaEventLogCollectionOnTestRunEnd_runEndOnly() local 192 bundle.putString(GcaEventLogCollector.COLLECT_CAMERA_LOGS_PER_RUN, "true"); in testGcaEventLogCollectionOnTestRunEnd_runEndOnly() [all …]
|
D | ScreenshotOnFailureCollectorTest.java | 140 for (Bundle bundle : capturedBundle) { in testSavePngAsFile() 141 for (String key : bundle.keySet()) { in testSavePngAsFile() 178 for (Bundle bundle : capturedBundle) { in testSaveUixAsFile() 179 for (String key : bundle.keySet()) { in testSaveUixAsFile() 215 for (Bundle bundle : capturedBundle) { in testNoUixWithoutOption() 216 for(String key : bundle.keySet()) { in testNoUixWithoutOption()
|
D | LogcatCollectorTest.java | 91 private LogcatCollector initListener(Bundle bundle) { in initListener() argument 92 mCollector = new LogcatCollector(bundle); in initListener() 166 Bundle bundle = new Bundle(); in testLogcatCollectionWithBeforeDuration() local 167 bundle.putString(LogcatCollector.BEFORE_LOGCAT_DURATION_SECS, "6"); in testLogcatCollectionWithBeforeDuration() 168 LogcatCollector listener = initListener(bundle); in testLogcatCollectionWithBeforeDuration() 215 Bundle bundle = new Bundle(); in testLogcatCollectionWithDirectoryOption() local 216 bundle.putString(LogcatCollector.RETURN_LOGCAT_DIR, "true"); in testLogcatCollectionWithDirectoryOption() 217 LogcatCollector listener = initListener(bundle); in testLogcatCollectionWithDirectoryOption() 253 Bundle bundle = new Bundle(); in testLogcatOnlyOnTestFailureOption() local 254 bundle.putString(LogcatCollector.COLLECT_ON_FAILURE_ONLY, "true"); in testLogcatOnlyOnTestFailureOption() [all …]
|
D | BatteryStatsListenerTest.java | 178 for(Bundle bundle:capturedBundle){ in testTestRunToBytesCollector() 179 for(String key : bundle.keySet()) { in testTestRunToBytesCollector() 224 for(Bundle bundle:capturedBundle){ in testTestCaseCollector() 225 for(String key : bundle.keySet()) { in testTestCaseCollector()
|
D | ScreenRecordCollectorTest.java | 160 for (Bundle bundle : capturedBundle) { in testScreenRecord() 161 for (String key : bundle.keySet()) { in testScreenRecord() 166 String fileName = bundle.getString(key); in testScreenRecord()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/util/ |
D | SendToInstrumentation.java | 56 public static void sendBundle(Instrumentation instru, Bundle bundle) { in sendBundle() argument 57 sendStatus(INST_STATUS_IN_PROGRESS, instru, bundle); in sendBundle() 63 private static void sendStatus(int code, Instrumentation instrumentation, Bundle bundle) { in sendStatus() argument 64 instrumentation.sendStatus(code, bundle); in sendStatus()
|
/platform_testing/utils/wifistrengthscanner/src/com/android/test/util/wifistrengthscanner/ |
D | WifiStrengthScannerInstrumentation.java | 77 Bundle bundle = new Bundle(); in onStart() local 78 bundle.putString("suplicant_state", wifiInfo.getSupplicantState().name()); in onStart() 81 bundle.putString("bssid", bssid); in onStart() 83 bundle.putInt("wifi_max_level", NUMBER_OF_WIFI_LEVELS - 1); in onStart() 85 bundle.putInt("wifi_info_wifi_level", in onStart() 87 bundle.putInt("wifi_info_rssi", wifiInfo.getRssi()); in onStart() 88 bundle.putInt("wifi_info_frequency", wifiInfo.getFrequency()); in onStart() 92 bundle.putInt("scan_result_wifi_level", wifiManager.calculateSignalLevel(result in onStart() 94 bundle.putInt("scan_result_rssi", result.level); in onStart() 95 bundle.putInt("scan_result_frequency", result.frequency); in onStart() [all …]
|
/platform_testing/libraries/device-collectors/src/test/platform/android/device/collectors/ |
D | TimeInStateListenerTest.java | 65 Bundle bundle = new Bundle(); in testListener_withSources() local 66 bundle.putString( in testListener_withSources() 69 TimeInStateListener listener = initListener(bundle, mTimeInStateHelper); in testListener_withSources() 74 private TimeInStateListener initListener(Bundle bundle, TimeInStateHelper helper) { in initListener() argument 75 TimeInStateListener listener = new TimeInStateListener(bundle, helper); in initListener()
|
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/ |
D | FinishActivitiesWithoutProcessKillRuleTest.java | 75 Bundle bundle = new Bundle(); in testDisableFinishActivities() local 76 bundle.putString( in testDisableFinishActivities() 80 TestableRule rule = new TestableRule(bundle, "example.package.name"); in testDisableFinishActivities() 90 public TestableRule(Bundle bundle, String app) { in TestableRule() argument 92 mBundle = bundle; in TestableRule()
|
D | KillAppsRuleTest.java | 139 TestableKillAppsRule(Bundle bundle, String... apps) { in TestableKillAppsRule() argument 140 this(bundle, true, apps); in TestableKillAppsRule() 143 TestableKillAppsRule(Bundle bundle, boolean shouldKillAppsBefore, String... apps) { in TestableKillAppsRule() argument 145 mBundle = bundle; in TestableKillAppsRule()
|
D | SuspendUnsuspendAppRuleTest.java | 150 TestableSuspendUnsuspendAppRule(Bundle bundle, String app) { in TestableSuspendUnsuspendAppRule() argument 152 mBundle = bundle; in TestableSuspendUnsuspendAppRule() 155 TestableSuspendUnsuspendAppRule(Bundle bundle, String app, boolean enableRule) { in TestableSuspendUnsuspendAppRule() argument 157 mBundle = bundle; in TestableSuspendUnsuspendAppRule()
|
D | RemoveAppFromStackRuleTest.java | 89 public TestableRule(Bundle bundle, String app) { in TestableRule() argument 91 mBundle = bundle; in TestableRule()
|
D | PressHomeRuleTest.java | 86 public TestablePressHomeRule(Bundle bundle) { in TestablePressHomeRule() argument 88 mBundle = bundle; in TestablePressHomeRule()
|
D | DropCachesRuleTest.java | 82 public TestableDropCachesRule(Bundle bundle) { in TestableDropCachesRule() argument 83 mBundle = bundle; in TestableDropCachesRule()
|
D | QuickstepPressureRuleTest.java | 100 public TestableQuickstepPressureRule(Bundle bundle) { in TestableQuickstepPressureRule() argument 101 mBundle = bundle; in TestableQuickstepPressureRule()
|
D | StopwatchRuleTest.java | 119 public TestableStopwatchRule(Bundle bundle) { in TestableStopwatchRule() argument 120 mBundle = bundle; in TestableStopwatchRule()
|
D | GarbageCollectRuleTest.java | 150 public TestableGarbageCollectRule(Bundle bundle, String app) { in TestableGarbageCollectRule() argument 152 mBundle = bundle; in TestableGarbageCollectRule()
|
D | CompilationFilterRuleTest.java | 292 public TestableCompilationFilterRule(Bundle bundle, String... applications) { in TestableCompilationFilterRule() argument 294 mBundle = bundle; in TestableCompilationFilterRule()
|
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/ |
D | UiInteractionFrameInfoListener.java | 84 Bundle bundle = tmpData.createBundleFromMetrics(); 85 for (String key : bundle.keySet()) { 86 reduceMetrics(data, key, bundle.getString(key));
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | BaseMetricListener.java | 457 private void filterAlias(Bundle bundle) { in filterAlias() argument 458 Set<String> keySet = new HashSet<>(bundle.keySet()); in filterAlias() 464 bundle.remove(key); in filterAlias() 479 bundle.putString(optionName, bundle.getString(key)); in filterAlias() 480 bundle.remove(key); in filterAlias() 483 bundle.remove(key); in filterAlias()
|
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/ |
D | LongevitySuite.java | 74 protected static final Map<String, String> toMap(Bundle bundle) { in toMap() argument 76 for (String key : bundle.keySet()) { in toMap() 77 if (!bundle.containsKey(key)) { in toMap() 81 result.put(key, bundle.getString(key)); in toMap()
|
/platform_testing/tests/functional/devicehealthchecks/src/com/android/devicehealthchecks/ |
D | CrashCheckBase.java | 58 Bundle bundle = InstrumentationRegistry.getArguments(); in setUp() local 59 mIncludeKnownFailures = TextUtils.equals("true", bundle.getString(INCLUDE_KNOWN_FAILURES)); in setUp()
|