Home
last modified time | relevance | path

Searched refs:bundle (Results 1 – 22 of 22) sorted by relevance

/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DIorapCompilationRuleTest.java71 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 …]
DFinishActivitiesWithoutProcessKillRuleTest.java75 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()
DKillAppsRuleTest.java103 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()
DDropCachesRuleTest.java68 public TestableDropCachesRule(Bundle bundle) { in TestableDropCachesRule() argument
69 mBundle = bundle; in TestableDropCachesRule()
DRemoveAppFromStackRuleTest.java89 public TestableRule(Bundle bundle, String app) { in TestableRule() argument
91 mBundle = bundle; in TestableRule()
DPressHomeRuleTest.java86 public TestablePressHomeRule(Bundle bundle) { in TestablePressHomeRule() argument
88 mBundle = bundle; in TestablePressHomeRule()
DCompilationFilterRuleTest.java163 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/
DSendToInstrumentation.java56 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/
DWifiStrengthScannerInstrumentation.java77 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/
DTimeInStateListenerTest.java65 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/
DDumpsysServiceListenerTest.java65 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()
DDumpsysMeminfoListenerTest.java65 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()
DGcaEventLogCollectorTest.java71 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 …]
DScreenshotOnFailureCollectorTest.java140 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()
DLogcatCollectorTest.java91 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 …]
DBatteryStatsListenerTest.java178 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()
DScheduledRunCollectionListenerTest.java180 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()
DScreenRecordCollectorTest.java150 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/
DBaseMetricListener.java423 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/
DLongevitySuite.java72 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/
DUiInteractionFrameInfoListener.java168 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/
DCrashCheckBase.java58 Bundle bundle = InstrumentationRegistry.getArguments(); in setUp() local
59 mIncludeKnownFailures = TextUtils.equals("true", bundle.getString(INCLUDE_KNOWN_FAILURES)); in setUp()