/tools/test/connectivity/acts_tests/tests/google/ble/api/ |
D | BleScanApiTest.py | 54 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/test/connectivity/acts/framework/acts/test_utils/bt/ |
D | bt_carkit_lib.py | 166 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/apksig/src/test/java/com/android/apksig/util/ |
D | DataSinkTestBase.java | 50 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/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | QuotationAwareTokenizerTest.java | 28 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 …]
|
/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
D | CompactMemInfoParserTest.java | 32 … 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 …]
|
D | QtaguidParserTest.java | 28 …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()
|
D | GfxInfoParserTest.java | 31 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()
|
D | BatteryDischargeStatsInfoParserTest.java | 35 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()
|
D | CpuInfoParserTest.java | 28 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()
|
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ |
D | Asn1BerParserTest.java | 47 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/ |
D | GameCoreConfigurationXmlParserTest.java | 40 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/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | AndroidBinXmlParser.java | 533 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 …]
|
D | ApkSigningBlockUtils.java | 453 for (DataSource input : contents) { in computeOneMbChunkContentDigests() 455 getChunkCount(input.size(), CONTENT_DIGESTED_CHUNK_MAX_SIZE_BYTES); in computeOneMbChunkContentDigests() 495 for (DataSource input : contents) { in computeOneMbChunkContentDigests() 497 long inputRemaining = input.size(); in computeOneMbChunkContentDigests() 506 input.feed(inputOffset, chunkSize, mdSink); in computeOneMbChunkContentDigests() 547 for (DataSource input : contents) { in computeOneMbChunkContentDigests() 549 getChunkCount(input.size(), CONTENT_DIGESTED_CHUNK_MAX_SIZE_BYTES); in computeOneMbChunkContentDigests()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | ManagedTestDeviceFactoryTest.java | 55 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/ |
D | ZipUtils.java | 286 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/tradefederation/core/common_util/com/android/tradefed/util/ |
D | RunUtil.java | 244 public CommandResult runTimedCmdWithInput(final long timeout, String input, in runTimedCmdWithInput() argument 246 return runTimedCmdWithInput(timeout, input, ArrayUtil.list(command)); in runTimedCmdWithInput() 253 public CommandResult runTimedCmdWithInput(final long timeout, String input, in runTimedCmdWithInput() argument 255 RunnableResult osRunnable = new RunnableResult(input, createProcessBuilder(command)); in runTimedCmdWithInput() 617 RunnableResult(final String input, final ProcessBuilder processBuilder) { in RunnableResult() argument 618 this(input, processBuilder, null, null, null, true); in RunnableResult() 621 RunnableResult(final String input, final ProcessBuilder processBuilder, boolean logErrors) { in RunnableResult() argument 622 this(input, processBuilder, null, null, null, logErrors); in RunnableResult() 633 final String input, in RunnableResult() argument 640 mInput = input; in RunnableResult()
|
D | FileUtil.java | 623 public static void writeToFile(InputStream input, File destFile) throws IOException { in writeToFile() argument 624 writeToFile(input, destFile, false); in writeToFile() 635 InputStream input, File destFile, boolean append) throws IOException { in writeToFile() argument 637 writeToFile(input, destFile, append, 0, -1); in writeToFile() 651 InputStream input, File destFile, boolean append, long startOffset, long size) in writeToFile() argument 656 origStream = new BufferedInputStream(input); in writeToFile()
|
/tools/test/connectivity/acts/framework/acts/test_utils/bt/bt_implementations/ |
D | bt_stub.py | 39 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/repohooks/rh/ |
D | utils.py | 266 def run(cmd, redirect_stdout=False, redirect_stderr=False, cwd=None, input=None, argument 357 if isinstance(input, string_types): 359 input = input.encode('utf-8') 360 elif input is not None: 361 stdin = input 362 input = None 396 (result.stdout, result.stderr) = proc.communicate(input)
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | help_sign.txt | 18 APK is signed in-place, overwriting the input file. 72 v3, so multiple signers input will correspond to different 115 stdin password provided on standard input, 119 or standard input. 120 When the same file (including standard input) is used for 134 stdin password provided on standard input, 143 When the same file (including standard input) is used for 184 standard input unless specified otherwise using
|
D | help_rotate.txt | 29 addition of the new-signer. If an input SigningCertificateLineage object was 67 stdin password provided on standard input, 71 or standard input. 72 When the same file (including standard input) is used for 86 stdin password provided on standard input, 95 When the same file (including standard input) is used for 136 standard input unless specified otherwise using
|
D | help_lineage.txt | 64 stdin password provided on standard input, 68 or standard input. 69 When the same file (including standard input) is used for 83 stdin password provided on standard input, 92 When the same file (including standard input) is used for 133 standard input unless specified otherwise using
|
/tools/tradefederation/core/src/com/android/tradefed/command/ |
D | Console.java | 875 final String input = mConsoleReader.readLine(getConsolePrompt()); in getConsoleInput() local 884 return input; in getConsoleInput() 978 String input = ""; in run() local 986 input = getConsoleInput(); in run() 988 if (input == null) { in run() 998 tokens = QuotationAwareTokenizer.tokenizeLine(input); in run() 1000 printLine(String.format("Invalid input: %s.", input)); in run()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | FakeTestTest.java | 82 final String input = testcase.getKey(); in testDecodeRle() local 84 assertEquals(output, mTest.decodeRle(input)); in testDecodeRle() 120 final String input = testcase.getKey(); in testDecode() local 123 assertEquals(output, mTest.decode(input)); in testDecode() 128 input, output)); in testDecode()
|
/tools/test/openhst/resources/ |
D | stress_test.dsp_trigger_sw_rejection.ascii_proto | 9 command: "shell input keyevent 3" 13 command: "shell input keyevent 26" 30 command: "shell input keyevent 3" 34 command: "shell input keyevent 26"
|