/platform_testing/libraries/device-collectors/src/test/java/android/device/preparers/ |
D | GarbageCollectionPreparerTest.java | 66 private GarbageCollectionPreparer initPreparer(Bundle b) { in initPreparer() argument 67 GarbageCollectionPreparer preparer = new GarbageCollectionPreparer(b, mGcHelper); in initPreparer() 74 Bundle b = new Bundle(); in testHelperReceivesNoProcesses() local 75 mPreparer = initPreparer(b); in testHelperReceivesNoProcesses() 86 Bundle b = new Bundle(); in testHelperReceivesOneProcess() local 87 b.putString(PROCESS_NAMES_KEY, TEST_PROCESS_NAME_1); in testHelperReceivesOneProcess() 88 mPreparer = initPreparer(b); in testHelperReceivesOneProcess() 97 Bundle b = new Bundle(); in testHelperReceivesMultipleProcesses() local 98 b.putString(PROCESS_NAMES_KEY, String.format("%s%s%s", in testHelperReceivesMultipleProcesses() 100 mPreparer = initPreparer(b); in testHelperReceivesMultipleProcesses() [all …]
|
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | SimpleperfListenerTest.java | 88 private SimpleperfListener initListener(Bundle b) { in initListener() argument 92 spy(new SimpleperfListener(b, mSimpleperfHelper, mInvocationCount)); in initListener() 99 private SimpleperfListener initListener(Bundle b, SimpleperfHelper mHelper) { in initListener() argument 102 SimpleperfListener listener = spy(new SimpleperfListener(b, mHelper, mInvocationCount)); in initListener() 167 Bundle b = new Bundle(); in testSimpleperfPerTestSuccessFlow() local 168 mListener = initListener(b); in testSimpleperfPerTestSuccessFlow() 187 Bundle b = new Bundle(); in testSimpleperfPerTestFailureFlowDefault() local 188 b.putString(SimpleperfListener.SKIP_TEST_FAILURE_METRICS, "false"); in testSimpleperfPerTestFailureFlowDefault() 189 mListener = initListener(b); in testSimpleperfPerTestFailureFlowDefault() 213 Bundle b = new Bundle(); in testSimpleperfPerTestFailureFlowWithSkipMmetrics() local [all …]
|
D | TotalPssMetricListenerTest.java | 65 private TotalPssMetricListener initListener(Bundle b) { in initListener() argument 66 TotalPssMetricListener listener = new TotalPssMetricListener(b, mTotalPssMetricHelper); in initListener() 73 Bundle b = new Bundle(); in testHelperReceivesProcessNames() local 74 b.putString(PROCESS_NAMES_KEY, "process1" + PROCESS_SEPARATOR + "process2"); in testHelperReceivesProcessNames() 75 mListener = initListener(b); in testHelperReceivesProcessNames() 84 Bundle b = new Bundle(); in testAdditionalPssOptions() local 85 b.putString(PROCESS_NAMES_KEY, "process1"); in testAdditionalPssOptions() 86 b.putString(MIN_ITERATIONS_KEY, "50"); in testAdditionalPssOptions() 87 b.putString(MAX_ITERATIONS_KEY, "102"); in testAdditionalPssOptions() 88 b.putString(SLEEP_TIME_KEY, "2000"); in testAdditionalPssOptions() [all …]
|
D | ShowmapSnapshotListenerTest.java | 60 private ShowmapSnapshotListener initListener(Bundle b) { in initListener() argument 61 ShowmapSnapshotListener listener = new ShowmapSnapshotListener(b, mShowmapSnapshotHelper); in initListener() 68 Bundle b = new Bundle(); in testHelperReceivesProcessNames() local 69 b.putString(PROCESS_NAMES_KEY, "process1" + PROCESS_SEPARATOR + "process2"); in testHelperReceivesProcessNames() 70 b.putString(OUTPUT_DIR_KEY, VALID_OUTPUT_DIR); in testHelperReceivesProcessNames() 72 mListener = initListener(b); in testHelperReceivesProcessNames() 81 Bundle b = new Bundle(); in testAdditionalOptions() local 82 b.putString(PROCESS_NAMES_KEY, "process1"); in testAdditionalOptions() 83 b.putString(METRIC_NAME_INDEX, "rss:1,pss:2"); in testAdditionalOptions() 84 b.putString(OUTPUT_DIR_KEY, VALID_OUTPUT_DIR); in testAdditionalOptions() [all …]
|
D | PerfettoListenerTest.java | 99 private PerfettoTracingStrategy initStrategy(Bundle b) { in initStrategy() argument 100 if (Boolean.parseBoolean(b.getString(PerfettoListener.COLLECT_PER_RUN))) { in initStrategy() 108 } else if (Boolean.parseBoolean(b.getString(PerfettoListener.COLLECT_PER_CLASS))) { in initStrategy() 128 private PerfettoListener initListener(Bundle b) { in initListener() argument 131 PerfettoListener listener = spy(new PerfettoListener(b, initStrategy(b))); in initListener() 143 Bundle b = new Bundle(); in testPerfettoPerTestSuccessFlow() local 144 mListener = initListener(b); in testPerfettoPerTestSuccessFlow() 169 Bundle b = new Bundle(); in testPerfettoPerTestFailureFlowDefault() local 170 b.putString(PerfettoTracingStrategy.SKIP_TEST_FAILURE_METRICS, "false"); in testPerfettoPerTestFailureFlowDefault() 171 mListener = initListener(b); in testPerfettoPerTestFailureFlowDefault() [all …]
|
D | BaseCollectionListenerTest.java | 64 private BaseCollectionListener initListener(Bundle b) { in initListener() argument 65 BaseCollectionListener listener = new BaseCollectionListener<String>(b, helper); in initListener() 78 Bundle b = new Bundle(); in testPerRunFlow() local 79 b.putString(BaseCollectionListener.COLLECT_PER_RUN, "true"); in testPerRunFlow() 80 mListener = initListener(b); in testPerRunFlow() 98 Bundle b = new Bundle(); in testPerTestFlow() local 99 b.putString(BaseCollectionListener.COLLECT_PER_RUN, "false"); in testPerTestFlow() 100 mListener = initListener(b); in testPerTestFlow() 125 Bundle b = new Bundle(); in testDefaultOptionFlow() local 126 mListener = initListener(b); in testDefaultOptionFlow() [all …]
|
D | ProcLoadListenerTest.java | 63 private ProcLoadListener initListener(Bundle b) { in initListener() argument 64 ProcLoadListener listener = new ProcLoadListener(b, mProcLoadHelper); in initListener() 71 Bundle b = new Bundle(); in testLoadProcAdditionalOptions() local 72 b.putString(PROC_LOAD_THRESHOLD, "1"); in testLoadProcAdditionalOptions() 73 b.putString(PROC_THRESHOLD_TIMEOUT, "3"); in testLoadProcAdditionalOptions() 74 b.putString(PROC_LOAD_INTERVAL, "2"); in testLoadProcAdditionalOptions() 75 mListener = initListener(b); in testLoadProcAdditionalOptions()
|
D | PerfettoTracingPerRunStrategyTest.java | 85 private PerfettoTracingStrategy initStrategy(Bundle b) { in initStrategy() argument 96 strategy.setup(b); in initStrategy() 103 Bundle b = new Bundle(); in testPerfettoTraceStartOnRunStart() local 104 PerfettoTracingStrategy strategy = initStrategy(b); in testPerfettoTraceStartOnRunStart() 115 Bundle b = new Bundle(); in testPerfettoTraceStartOnRunStartMultiple() local 116 PerfettoTracingStrategy strategy = initStrategy(b); in testPerfettoTraceStartOnRunStartMultiple() 129 Bundle b = new Bundle(); in testPerfettoTraceEndOnRunEnd() local 130 PerfettoTracingStrategy strategy = initStrategy(b); in testPerfettoTraceEndOnRunEnd() 143 Bundle b = new Bundle(); in testPerfettoTraceEndOnRunEndMultiple() local 144 PerfettoTracingStrategy strategy = initStrategy(b); in testPerfettoTraceEndOnRunEndMultiple() [all …]
|
D | PinnerSnapshotListenerTest.java | 58 private PinnerSnapshotListener initListener(Bundle b) { in initListener() argument 59 PinnerSnapshotListener listener = new PinnerSnapshotListener(b, mPinnerHelper); in initListener() 66 Bundle b = new Bundle(); in testHelperReceivesCustomDirectory() local 67 b.putString(PinnerSnapshotListener.OUTPUT_DIR_KEY, VALID_OUTPUT_DIR); in testHelperReceivesCustomDirectory() 68 mListener = initListener(b); in testHelperReceivesCustomDirectory()
|
D | ProcessShowmapListenerTest.java | 61 private ProcessShowmapListener initListener(Bundle b) { in initListener() argument 62 ProcessShowmapListener listener = new ProcessShowmapListener(b, mShowmapHelper); in initListener() 69 Bundle b = new Bundle(); in testHelperReceivesProcessNames() local 70 b.putString(PROCESS_NAMES_KEY, "process1" + PROCESS_SEPARATOR + "process2"); in testHelperReceivesProcessNames() 71 mListener = initListener(b); in testHelperReceivesProcessNames()
|
D | PerfettoTracingPerClassStrategyTest.java | 84 private PerfettoTracingStrategy initStrategy(Bundle b) { in initStrategy() argument 99 strategy.setup(b); in initStrategy() 106 Bundle b = new Bundle(); in testPerfettoTraceStartOnFirstTestStart() local 107 PerfettoTracingStrategy strategy = initStrategy(b); in testPerfettoTraceStartOnFirstTestStart() 120 Bundle b = new Bundle(); in testPerfettoTraceStartOncePerClass() local 121 PerfettoTracingStrategy strategy = initStrategy(b); in testPerfettoTraceStartOncePerClass() 137 Bundle b = new Bundle(); in testPerfettoTraceStartInClassChange() local 138 PerfettoTracingStrategy strategy = initStrategy(b); in testPerfettoTraceStartInClassChange() 154 Bundle b = new Bundle(); in testPerfettoTraceEndsOnRunEnds() local 155 PerfettoTracingStrategy strategy = initStrategy(b); in testPerfettoTraceEndsOnRunEnds() [all …]
|
D | PerfettoTracingPerTestStrategyTest.java | 90 private PerfettoTracingStrategy initStrategy(Bundle b) { in initStrategy() argument 103 strategy.setup(b); in initStrategy() 110 Bundle b = new Bundle(); in testPerfettoTraceStartOnTestStart() local 111 PerfettoTracingStrategy strategy = initStrategy(b); in testPerfettoTraceStartOnTestStart() 124 Bundle b = new Bundle(); in testPerfettoTraceStartOnTestStartMultiple() local 125 PerfettoTracingStrategy strategy = initStrategy(b); in testPerfettoTraceStartOnTestStartMultiple() 141 Bundle b = new Bundle(); in testPerfettoTraceEndOnRunEnd() local 142 PerfettoTracingStrategy strategy = initStrategy(b); in testPerfettoTraceEndOnRunEnd() 158 Bundle b = new Bundle(); in testPerfettoTraceEndOnRunEndMultiple() local 159 PerfettoTracingStrategy strategy = initStrategy(b); in testPerfettoTraceEndOnRunEndMultiple() [all …]
|
D | BatteryStatsListenerTest.java | 82 private BatteryStatsListener initListener(Bundle b) { in initListener() argument 83 BatteryStatsListener listener = spy(new BatteryStatsListener(b)); in initListener() 94 Bundle b = new Bundle(); in testTestRunCollector() local 95 b.putString(BatteryStatsListener.KEY_PER_RUN, "true"); in testTestRunCollector() 96 mListener = initListener(b); in testTestRunCollector() 129 Bundle b = new Bundle(); in testTestRunSaveToSpecifiedDirCollector() local 130 b.putString(BatteryStatsListener.KEY_PER_RUN, "true"); in testTestRunSaveToSpecifiedDirCollector() 131 b.putString(BatteryStatsListener.KEY_FORMAT, "file:unique/bs/dir"); in testTestRunSaveToSpecifiedDirCollector() 132 mListener = initListener(b); in testTestRunSaveToSpecifiedDirCollector() 141 Bundle b = new Bundle(); in testTestRunToBytesCollector() local [all …]
|
D | ScreenshotOnFailureCollectorTest.java | 97 private ScreenshotOnFailureCollector initListener(Bundle b) throws IOException { in initListener() argument 98 ScreenshotOnFailureCollector listener = spy(new ScreenshotOnFailureCollector(b)); in initListener() 109 Bundle b = new Bundle(); in testSavePngAsFile() local 110 mListener = initListener(b); in testSavePngAsFile() 150 Bundle b = new Bundle(); in testSaveUixAsFile() local 151 b.putString("include-ui-xml", "true"); in testSaveUixAsFile() 152 mListener = initListener(b); in testSaveUixAsFile() 188 Bundle b = new Bundle(); in testNoUixWithoutOption() local 189 b.putString("include-ui-xml", "false"); in testNoUixWithoutOption() 190 mListener = initListener(b); in testNoUixWithoutOption() [all …]
|
D | ScheduledRunMetricListenerTest.java | 46 Bundle b = new Bundle(); in setUp() local 47 b.putString(ScheduledRunMetricListener.INTERVAL_ARG_KEY, "100"); in setUp() 48 mListener = new ScheduledRunMetricListener(b) { in setUp()
|
/platform_testing/libraries/flicker/collector/test/src/android/tools/collectors/ |
D | DefaultUITraceListenerTest.java | 83 private PerfettoTracingStrategy initStrategy(Bundle b) { in initStrategy() argument 84 if (Boolean.parseBoolean(b.getString(PerfettoListener.COLLECT_PER_RUN))) { in initStrategy() 86 } else if (Boolean.parseBoolean(b.getString(PerfettoListener.COLLECT_PER_CLASS))) { in initStrategy() 93 private DefaultUITraceListener initListener(Bundle b) { in initListener() argument 94 DefaultUITraceListener listener = spy(new DefaultUITraceListener(b, initStrategy(b))); in initListener() 106 Bundle b = new Bundle(); in testPerfettoPerTestSuccessFlow() local 107 mListener = initListener(b); in testPerfettoPerTestSuccessFlow() 131 Bundle b = new Bundle(); in testPerfettoPerTestFailureFlowDefault() local 132 b.putString(PerfettoTracingStrategy.SKIP_TEST_FAILURE_METRICS, "false"); in testPerfettoPerTestFailureFlowDefault() 133 b.putString(PerfettoListener.COLLECT_PER_RUN, "false"); in testPerfettoPerTestFailureFlowDefault() [all …]
|
/platform_testing/tests/bootdoa/ |
D | fatal_allowlist | 1 # b/181137192#comment21 3 # b/181137192#comment38 5 # b/222596773 8 # b/222779442 10 # b/234031026
|
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | Scheduler.java | 102 int b = _b; 104 while (b > 0) { 105 int tmp = b; 106 b = a % b; 143 final int b = Math.abs(mRandom.nextInt()); 153 return cases.get((a * (count++) + b) % cases.size());
|
D | DataCollector.java | 160 private long gcd(long a, long b) { in gcd() argument 162 return b; in gcd() 163 } else if (b == 0) { in gcd() 165 } else if (a > b) { in gcd() 166 return gcd(b, a % b); in gcd() 168 return gcd(a, b % a); in gcd()
|
/platform_testing/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/service/ |
D | CaptureChunkStreamObserverOutputStream.java | 100 public void write(int b) { in write() argument 109 toWrite[0] = (byte) (b & 0xFF); in write() 115 public void write(byte[] b) { in write() argument 120 write(b, 0, b.length); in write() 124 public void write(byte[] b, int off, int len) { in write() argument 130 ByteString chunkBytes = ByteString.copyFrom(b, off, len); in write()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/util/ |
D | SendToInstrumentation.java | 45 Bundle b = new Bundle(); in sendFile() local 46 b.putString(key, file.getAbsolutePath()); in sendFile() 47 sendStatus(INST_STATUS_IN_PROGRESS, instru, b); in sendFile()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | DataRecord.java | 92 Bundle b = createBundle(); in createBundleFromMetrics() local 94 b.putString(key, map.get(key)); in createBundleFromMetrics() 97 b.putByteArray(key, mCurrentBinaryMetrics.get(key)); in createBundleFromMetrics() 99 return b; in createBundleFromMetrics()
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/ |
D | ModuleClassLoader.java | 57 byte[] b = Streams.readFully(classStream); in findClass() 58 clazz = defineClass(name, b, 0, b.length); in findClass()
|
/platform_testing/utils/shell-as/shell-code/ |
D | selinux-arm64.S | 58 b.eq strlen_done 60 b strlen_start
|
/platform_testing/libraries/flicker/src/android/tools/flicker/junit/ |
D | RuleContainer.kt | 121 private fun compareInt(a: Int, b: Int): Int { in compareInt() 122 return if (a < b) 1 else if (a == b) 0 else -1 in compareInt()
|