Home
last modified time | relevance | path

Searched refs:input (Results 1 – 25 of 85) sorted by relevance

1234

/tools/test/connectivity/acts/tests/google/ble/api/
DBleScanApiTest.py54 def _format_defaults(self, input): argument
59 if 'ScanSettings' not in input.keys():
60 input['ScanSettings'] = (
64 if 'ScanFilterManufacturerDataId' not in input.keys():
65 input['ScanFilterManufacturerDataId'] = -1
66 if 'ScanFilterDeviceName' not in input.keys():
67 input['ScanFilterDeviceName'] = None
68 if 'ScanFilterDeviceAddress' not in input.keys():
69 input['ScanFilterDeviceAddress'] = None
70 if 'ScanFilterManufacturerData' not in input.keys():
[all …]
/tools/apksig/src/test/java/com/android/apksig/util/
DDataSinkTestBase.java50 byte[] input = "abcdefg".getBytes(StandardCharsets.UTF_8); in testConsumeFromArray()
51 sink.consume(input, 2, 3); // "cde" in testConsumeFromArray()
52 sink.consume(input, 0, 1); // "a" in testConsumeFromArray()
56 sink.consume(input, 0, 0); in testConsumeFromArray()
57 sink.consume(input, 1, 0); in testConsumeFromArray()
58 sink.consume(input, input.length - 2, 0); in testConsumeFromArray()
59 sink.consume(input, input.length - 1, 0); in testConsumeFromArray()
60 sink.consume(input, input.length, 0); in testConsumeFromArray()
63 assertConsumeArrayThrowsIOOB(sink, input, -1, 0); in testConsumeFromArray()
64 assertConsumeArrayThrowsIOOB(sink, input, -1, 3); in testConsumeFromArray()
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dbt_carkit_lib.py166 input("Press enter to execute this testcase...")
194 input("Continue to next iteration?")
200 input("Press enter to execute this testcase...")
205 result = input("Confirm A2DP disconnected? (Y/n) ")
223 input("Press enter to execute this testcase...")
228 result = input("Confirm HFP disconnected? (Y/n) ")
239 input("Press enter to execute this testcase...")
253 result = input("Confirm HFP and A2DP disconnected? (Y/n) ")
266 input("Press enter to execute this testcase...")
275 input("Press enter to hangup call...")
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DQuotationAwareTokenizerTest.java28 private static void verify(String input, String[] expected, String delimiter) in verify() argument
30 String[] observed = QuotationAwareTokenizer.tokenizeLine(input, delimiter); in verify()
47 private static void verify(String input, String[] expected) throws IllegalArgumentException { in verify() argument
48 verify(input, expected, " "); in verify()
55 String input = " one two three"; in testTokenizeLine_simple() local
57 verify(input, expected); in testTokenizeLine_simple()
68 String input = "--foo \"this is a config\""; in testTokenizeLine_whitespace() local
70 verify(input, expected); in testTokenizeLine_whitespace()
77 String input = "--foo,bar"; in testTokenizeLine_comma() local
79 verify(input, expected, ","); in testTokenizeLine_comma()
[all …]
DTimeValTest.java111 private void assertInvalid(String input) { in assertInvalid() argument
113 final long val = TimeVal.fromString(input); in assertInvalid()
114 fail(String.format("Did not reject input: %s. Produced value: %d", input, val)); in assertInvalid()
/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DCompactMemInfoParserTest.java32 … List<String> input = Arrays.asList("proc,cached,com.google.android.youtube1,2964,19345,1005,a"); in testSingleProcLineWithSwapHasActivities() local
34 CompactMemInfoItem item = new CompactMemInfoParser().parse(input); in testSingleProcLineWithSwapHasActivities()
45 List<String> input = Arrays.asList("proc,cached,com.google.android.youtube,2964,19345,a"); in testSingleProcLineWithoutSwapHasActivities() local
47 CompactMemInfoItem item = new CompactMemInfoParser().parse(input); in testSingleProcLineWithoutSwapHasActivities()
59 List<String> input = Arrays.asList("proc,cached,com.google.android.youtube,2964,19345,e"); in testSingleProcLineWithoutSwapNoActivities() local
61 CompactMemInfoItem item = new CompactMemInfoParser().parse(input); in testSingleProcLineWithoutSwapNoActivities()
72 List<String> input = Arrays.asList("lostram,1005"); in testSingleLostRamLine() local
73 CompactMemInfoItem item = new CompactMemInfoParser().parse(input); in testSingleLostRamLine()
78 List<String> input = Arrays.asList("ram,2866484,1221694,1112777"); in testSingleRamLine() local
79 CompactMemInfoItem item = new CompactMemInfoParser().parse(input); in testSingleRamLine()
[all …]
DQtaguidParserTest.java28 …List<String> input = Arrays.asList("12 wlan0 0x0 10009 0 111661 353 258252 484 111661 353 0 0 0 0 … in testSingleLine() local
30 QtaguidItem item = new QtaguidParser().parse(input); in testSingleLine()
38 List<String> input = Arrays.asList("a b c d", "a b c d e f g h i j k l"); in testMalformedLine() local
40 QtaguidItem item = new QtaguidParser().parse(input); in testMalformedLine()
46 List <String> input = Arrays.asList( in testMultipleLines() local
68 QtaguidItem item = new QtaguidParser().parse(input); in testMultipleLines()
DGfxInfoParserTest.java31 List<String> input = Arrays.asList( in testSingleProcess() local
90 GfxInfoItem item = new GfxInfoParser().parse(input); in testSingleProcess()
105 List<String> input = Arrays.asList( in testMultipleProcesses() local
285 GfxInfoItem item = new GfxInfoParser().parse(input); in testMultipleProcesses()
314 List<String> input = Arrays.asList( in testSingleProcessInL() local
354 GfxInfoItem item = new GfxInfoParser().parse(input); in testSingleProcessInL()
DBatteryDischargeStatsInfoParserTest.java35 List<String> input = Arrays.asList( in testBatteryDischargeStats() local
137 BatteryDischargeStatsInfoItem infoItem = new BatteryDischargeStatsInfoParser().parse(input); in testBatteryDischargeStats()
147 List<String> input = Arrays.asList( in testBatteryDischargeStatsWithTop5Percentages() local
154 BatteryDischargeStatsInfoItem infoItem = new BatteryDischargeStatsInfoParser().parse(input); in testBatteryDischargeStatsWithTop5Percentages()
DCpuInfoParserTest.java28 List<String> input = Arrays.asList(" 0.1% 170/surfaceflinger: 0% user + 0% kernel"); in testSingleLine() local
30 CpuInfoItem item = new CpuInfoParser().parse(input); in testSingleLine()
38 List<String> input = Arrays.asList( in testMultipleLines() local
44 CpuInfoItem item = new CpuInfoParser().parse(input); in testMultipleLines()
DAbstractSectionParserTest.java59 public IItem parse(List<String> input) { in parse() argument
60 assertEquals(1, input.size()); in parse()
61 assertEquals("parseBlock() got unexpected input!", mExpected, input.get(0)); in parse()
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/
DAsn1BerParserTest.java47 ByteBuffer input = ByteBuffer.wrap(HexEncoding.decode("300012345678")); in testEmptySequence() local
48 EmptySequence container = parse(input, EmptySequence.class); in testEmptySequence()
51 assertEquals(2, input.position()); in testEmptySequence()
247 ByteBuffer input = ByteBuffer.wrap(HexEncoding.decode("0280020401000002010c")); in testPrimitiveIndefiniteLengthEncodingWithGarbage() local
248 ChoiceWithTwoOptions c = parse(input, ChoiceWithTwoOptions.class); in testPrimitiveIndefiniteLengthEncodingWithGarbage()
250 assertEquals("02010c", HexEncoding.encode(input)); in testPrimitiveIndefiniteLengthEncodingWithGarbage()
256 input = ByteBuffer.wrap(HexEncoding.decode("0280028001000002010c")); in testPrimitiveIndefiniteLengthEncodingWithGarbage()
257 c = parse(input, ChoiceWithTwoOptions.class); in testPrimitiveIndefiniteLengthEncodingWithGarbage()
259 assertEquals("02010c", HexEncoding.encode(input)); in testPrimitiveIndefiniteLengthEncodingWithGarbage()
270 ByteBuffer input = ByteBuffer.wrap(HexEncoding.decode("308002020000000002010c")); in testConstructedIndefiniteLengthEncodingWithoutNestedIndefiniteLengthDataValues() local
[all …]
/tools/test/graphicsbenchmark/performance_tests/helper/test/com/android/game/qualification/
DGameCoreConfigurationXmlParserTest.java40 try (InputStream input = new ByteArrayInputStream( in testSingleApkInfo() argument
58 GameCoreConfiguration config = parser.parse(input); in testSingleApkInfo()
81 try (InputStream input = new ByteArrayInputStream( in testOptionalFields() argument
97 List<ApkInfo> apks = parser.parse(input).getApkInfo(); in testOptionalFields()
113 try (InputStream input = new ByteArrayInputStream( in testMissingRequiredField() argument
129 parser.parse(input); in testMissingRequiredField()
140 try (InputStream input = new ByteArrayInputStream( in testApkWithArguments() argument
156 List<ApkInfo> apks = parser.parse(input).getApkInfo(); in testApkWithArguments()
174 try (InputStream input = new ByteArrayInputStream( in testRequirements() argument
194 GameCoreConfiguration config = parser.parse(input); in testRequirements()
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/bt/bt_implementations/
Dbt_stub.py39 input('Answer the phone and then press enter\n')
42 input('Hang up the phone and then press enter\n')
45 input('Press pause on device then press enter\n')
55 return input('move volume '+direction+' and then press enter\n')
58 input('Connect device and press enter\n')
61 con = input('Is device connected? y/n').lower()
63 con = input('Is device connected? y/n').lower()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DManagedTestDeviceFactoryTest.java55 String input = "127.0.0.1:5555"; in testIsSerialTcpDevice() local
56 assertTrue(mFactory.isTcpDeviceSerial(input)); in testIsSerialTcpDevice()
61 String input = "localhost:54014"; in testIsSerialTcpDevice_localhost() local
62 assertTrue(mFactory.isTcpDeviceSerial(input)); in testIsSerialTcpDevice_localhost()
67 String input = "00bf84d7d084cc84"; in testIsSerialTcpDevice_notTcp() local
68 assertFalse(mFactory.isTcpDeviceSerial(input)); in testIsSerialTcpDevice_notTcp()
73 String input = "127.0.0.1:999989"; in testIsSerialTcpDevice_malformedPort() local
74 assertFalse(mFactory.isTcpDeviceSerial(input)); in testIsSerialTcpDevice_malformedPort()
79 String input = ":5555"; in testIsSerialTcpDevice_nohost() local
80 assertFalse(mFactory.isTcpDeviceSerial(input)); in testIsSerialTcpDevice_nohost()
/tools/apksig/src/main/java/com/android/apksig/internal/zip/
DZipUtils.java286 public static DeflateResult deflate(ByteBuffer input) { in deflate() argument
289 int inputLength = input.remaining(); in deflate()
290 if (input.hasArray()) { in deflate()
291 inputBuf = input.array(); in deflate()
292 inputOffset = input.arrayOffset() + input.position(); in deflate()
293 input.position(input.limit()); in deflate()
297 input.get(inputBuf); in deflate()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DAndroidBinXmlParser.java533 public static Chunk get(ByteBuffer input) throws XmlParserException { in get() argument
534 if (input.remaining() < HEADER_MIN_SIZE_BYTES) { in get()
536 input.position(input.limit()); in get()
540 int originalPosition = input.position(); in get()
541 int type = getUnsignedInt16(input); in get()
542 int headerSize = getUnsignedInt16(input); in get()
543 long chunkSize = getUnsignedInt32(input); in get()
545 if (chunkRemaining > input.remaining()) { in get()
547 input.position(input.limit()); in get()
563 sliceFromTo(input, originalPosition, contentStartPosition), in get()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DRunUtil.java229 public CommandResult runTimedCmdWithInput(final long timeout, String input, in runTimedCmdWithInput() argument
231 return runTimedCmdWithInput(timeout, input, ArrayUtil.list(command)); in runTimedCmdWithInput()
238 public CommandResult runTimedCmdWithInput(final long timeout, String input, in runTimedCmdWithInput() argument
240 RunnableResult osRunnable = new RunnableResult(input, createProcessBuilder(command)); in runTimedCmdWithInput()
577 RunnableResult(final String input, final ProcessBuilder processBuilder) { in RunnableResult() argument
578 this(input, processBuilder, null, null, null, true); in RunnableResult()
581 RunnableResult(final String input, final ProcessBuilder processBuilder, boolean logErrors) { in RunnableResult() argument
582 this(input, processBuilder, null, null, null, logErrors); in RunnableResult()
593 final String input, in RunnableResult() argument
600 mInput = input; in RunnableResult()
/tools/dexter/dexter/
Ddexter_tests.py58 stderr = subprocess.STDOUT).communicate(input = stdin_content)[0]
74 for input in input_files:
78 cmd = '%s %s %s' % (args.cmd, test_config['args'], input)
82 expected_filename = re.sub(r'\.dex', ('.%s' % test_name), os.path.basename(input))
/tools/repohooks/rh/
Dutils.py262 redirect_stderr=False, cwd=None, input=None, argument
367 if isinstance(input, basestring):
369 elif input is not None:
370 stdin = input
371 input = None
414 (cmd_result.output, cmd_result.error) = proc.communicate(input)
/tools/loganalysis/src/com/android/loganalysis/parser/
DEventsLogParser.java71 public List<TransitionDelayItem> parseTransitionDelayInfo(BufferedReader input) in parseTransitionDelayInfo() argument
76 while ((line = input.readLine()) != null) { in parseTransitionDelayInfo()
130 public List<LatencyItem> parseLatencyInfo(BufferedReader input) throws IOException { in parseLatencyInfo() argument
133 while ((line = input.readLine()) != null) { in parseLatencyInfo()
DDvmLockSampleParser.java71 public DvmLockSampleItem parse(BufferedReader input) throws IOException { in parse() argument
74 for(String line = input.readLine(); line != null; line = input.readLine()) { in parse()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/gcs/
DGCSConfigurationFactoryTest.java106 InputStream input = mGCSConfigurationFactory.getConfigStream("cluster/host-config.xml"); in testGetConfigStream() local
107 String content = StreamUtil.getStringFromStream(input); in testGetConfigStream()
127 InputStream input = mGCSConfigurationFactory.getConfigStream("test-config"); in testGetConfigStream_bundled() local
128 String content = StreamUtil.getStringFromStream(input); in testGetConfigStream_bundled()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DAoaTargetPreparer.java190 void execute(AoaDevice device, String input) { in execute() argument
191 CLog.v("Executing '%s' on %s", input, device.getSerialNumber()); in execute()
193 Action action = ACTIONS.retrieve(args, input); in execute()
195 throw new IllegalArgumentException(String.format("Invalid action %s", input)); in execute()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DVerityTreeBuilderTest.java67 byte[] input = Resources.toByteArray(VerityTreeBuilderTest.class, inputResource); in generateRootHash()
68 assertNotNull(input); in generateRootHash()
72 DataSources.asDataSource(ByteBuffer.wrap(input)))); in generateRootHash()

1234