/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/ |
D | IorapCompilationRuleTest.java | 71 Bundle bundle = new Bundle(); in testDisablingIorapdWhenParamsAreSet() local 72 bundle.putString(IorapCompilationRule.ARGUMENT_IORAPD_ENABLED, "false"); in testDisablingIorapdWhenParamsAreSet() 74 new TestableIorapCompilationRule(bundle, "example.package.name"); in testDisablingIorapdWhenParamsAreSet() 91 Bundle bundle = new Bundle(); in testEnablingIorapdWhenParamsAreSet() local 92 bundle.putString(IorapCompilationRule.ARGUMENT_IORAPD_ENABLED, "true"); in testEnablingIorapdWhenParamsAreSet() 94 new TestableIorapCompilationRule(bundle, "example.package.name"); in testEnablingIorapdWhenParamsAreSet() 112 Bundle bundle = new Bundle(); in testCompilingIorapdWhenParamsAreSet() local 113 bundle.putString(IorapCompilationRule.ARGUMENT_IORAPD_ENABLED, "true"); in testCompilingIorapdWhenParamsAreSet() 115 new TestableIorapCompilationRule(bundle, "example.package.name"); in testCompilingIorapdWhenParamsAreSet() 130 new TestableIorapCompilationRule(bundle, "example.package.name"); in testCompilingIorapdWhenParamsAreSet() [all …]
|
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 | 103 public TestableKillAppsRule(Bundle bundle, String app) { in TestableKillAppsRule() argument 105 mBundle = bundle; in TestableKillAppsRule() 108 public TestableKillAppsRule(Bundle bundle, String... apps) { in TestableKillAppsRule() argument 110 mBundle = bundle; in TestableKillAppsRule()
|
D | DropCachesRuleTest.java | 68 public TestableDropCachesRule(Bundle bundle) { in TestableDropCachesRule() argument 69 mBundle = bundle; in TestableDropCachesRule()
|
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 | CompilationFilterRuleTest.java | 163 public TestableCompilationFilterRule(Bundle bundle, String... applications) { in TestableCompilationFilterRule() argument 165 mBundle = bundle; in TestableCompilationFilterRule()
|
/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/device-collectors/src/test/java/android/device/collectors/ |
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 | DumpsysMeminfoListenerTest.java | 65 Bundle bundle = new Bundle(); in testListener_withProcessNames() local 66 bundle.putString( in testListener_withProcessNames() 69 DumpsysMeminfoListener listener = initListener(bundle, mDumpsysMeminfoHelper); in testListener_withProcessNames() 74 private DumpsysMeminfoListener initListener(Bundle bundle, DumpsysMeminfoHelper helper) { in initListener() argument 75 DumpsysMeminfoListener listener = new DumpsysMeminfoListener(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 | ScheduledRunCollectionListenerTest.java | 180 ArgumentCaptor<Bundle> bundle = ArgumentCaptor.forClass(Bundle.class); in testRun() local 184 .sendStatus(eq(SendToInstrumentation.INST_STATUS_IN_PROGRESS), bundle.capture()); in testRun() 185 Bundle pathBundle = bundle.getAllValues().get(0); in testRun()
|
D | ScreenRecordCollectorTest.java | 150 for (Bundle bundle : capturedBundle) { in testScreenRecord() 151 for (String key : bundle.keySet()) { in testScreenRecord()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | BaseMetricListener.java | 423 private void filterAlias(Bundle bundle) { in filterAlias() argument 424 Set<String> keySet = new HashSet<>(bundle.keySet()); in filterAlias() 430 bundle.remove(key); in filterAlias() 445 bundle.putString(optionName, bundle.getString(key)); in filterAlias() 446 bundle.remove(key); in filterAlias() 449 bundle.remove(key); in filterAlias()
|
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/ |
D | LongevitySuite.java | 72 protected static final Map<String, String> toMap(Bundle bundle) { in toMap() argument 74 for (String key : bundle.keySet()) { in toMap() 75 if (!bundle.containsKey(key)) { in toMap() 79 result.put(key, bundle.getString(key)); in toMap()
|
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/ |
D | UiInteractionFrameInfoListener.java | 168 Bundle bundle = metricsData.createBundleFromMetrics(); in processMetrics() local 169 for (String key : bundle.keySet()) { in processMetrics() 172 reduceMetrics(data, key, bundle.getString(key)); in processMetrics()
|
/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()
|