/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | AaptParserTest.java | 25 AaptParser p = new AaptParser(); in testParseInvalidInput() local 26 assertFalse(p.parse("Bad data")); in testParseInvalidInput() 30 AaptParser p = new AaptParser(); in testParseEmptyVersionCode() local 31 assertTrue(p.parse("package: name='android.support.graphics.drawable.animated.test'" + in testParseEmptyVersionCode() 50 assertEquals("", p.getVersionCode()); in testParseEmptyVersionCode() 54 AaptParser p = new AaptParser(); in testParsePackageNameVersionLabel() local 55 p.parse("package: name='com.android.foo' versionCode='13' versionName='2.3'\n" + in testParsePackageNameVersionLabel() 60 assertEquals("com.android.foo", p.getPackageName()); in testParsePackageNameVersionLabel() 61 assertEquals("13", p.getVersionCode()); in testParsePackageNameVersionLabel() 62 assertEquals("2.3", p.getVersionName()); in testParsePackageNameVersionLabel() [all …]
|
/tools/dexter/slicer/export/slicer/ |
D | dex_ir.h | 424 T* p = new T(); in Alloc() local 425 Track(p); in Alloc() 426 return p; in Alloc() 440 void PushOwn(std::vector<own<T>>& v, T* p) { in PushOwn() 441 v.push_back(own<T>(p)); in PushOwn() 444 void Track(String* p) { PushOwn(strings, p); } in Track() 445 void Track(Type* p) { PushOwn(types, p); } in Track() 446 void Track(Proto* p) { PushOwn(protos, p); } in Track() 447 void Track(FieldDecl* p) { PushOwn(fields, p); } in Track() 448 void Track(MethodDecl* p) { PushOwn(methods, p); } in Track() [all …]
|
D | intrusive_list.h | 32 explicit Iterator(T* p) : p_(p) {} in Iterator() 77 void push_back(T* p) { in push_back() argument 78 insert(end(), p); in push_back() 81 Iterator insert(Iterator it, T* p) { in insert() argument 82 return InsertBefore(*it, p); in insert() 85 Iterator InsertBefore(T* pos, T* p) { in InsertBefore() argument 86 assert(p != nullptr); in InsertBefore() 87 assert(p->next == nullptr); in InsertBefore() 88 assert(p->prev == nullptr); in InsertBefore() 90 p->prev = pos->prev; in InsertBefore() [all …]
|
/tools/dexter/slicer/ |
D | reader.cc | 123 auto& p = dex_ir_->classes_map[index]; in GetClass() local 125 if (p == nullptr) { in GetClass() 126 p = placeholder; in GetClass() 128 SLICER_CHECK(p == placeholder); in GetClass() 129 p = newClass; in GetClass() 132 SLICER_CHECK(p != placeholder); in GetClass() 133 return p; in GetClass() 140 auto& p = dex_ir_->types_map[index]; in GetType() local 142 if (p == nullptr) { in GetType() 143 p = placeholder; in GetType() [all …]
|
/tools/test/connectivity/acts/tests/google/wifi/ |
D | WifiRttManagerTest.py | 382 p = {} 384 p[RttParam.frequency] = freq 385 p[RttParam.BSSID] = scan_result[WifiEnums.BSSID_KEY] 387 p[RttParam.preamble] = RttPreamble.PREAMBLE_VHT 389 p[RttParam.preamble] = RttPreamble.PREAMBLE_HT 392 p[RttParam.center_freq0] = cf0 395 p[RttParam.center_freq1] = cf1 397 p[RttParam.channel_width] = cw 398 p[RttParam.bandwidth] = scan_result_channel_width_to_rtt[cw] 400 p[RttParam.request_type] = RttType.TYPE_TWO_SIDED [all …]
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/ |
D | JarSigningTest.java | 56 ApkZLibPair<PrivateKey, X509Certificate> p = in signEmptyJar() local 59 new SigningExtension(12, p.v2, p.v1, true, false).register(zf); in signEmptyJar() 77 ApkZLibPair<PrivateKey, X509Certificate> p = SignatureTestUtils.generateSignaturePre18(); in signJarWithPrexistingSimpleTextFilePre18() local 88 new SigningExtension(10, p.v2, p.v1, true, false).register(zf2); in signJarWithPrexistingSimpleTextFilePre18() 140 ApkZLibPair<PrivateKey, X509Certificate> p = SignatureTestUtils.generateSignaturePos18(); in signJarWithPrexistingSimpleTextFilePos18() local 145 new SigningExtension(21, p.v2, p.v1, true, false).register(zf2); in signJarWithPrexistingSimpleTextFilePos18() 199 … ApkZLibPair<PrivateKey, X509Certificate> p = SignatureTestUtils.generateSignaturePre18(); in v2SignAddsApkSigningBlock() local 201 new SigningExtension(12, p.v2, p.v1, false, true).register(zf); in v2SignAddsApkSigningBlock() 216 ApkZLibPair<PrivateKey, X509Certificate> p = SignatureTestUtils.generateSignaturePos18(); in v1ReSignOnFileChange() local 231 new SigningExtension(21, p.v2, p.v1, true, false).register(zf1); in v1ReSignOnFileChange() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | DumpsysPackageReceiverTest.java | 36 DumpsysPackageReceiver p = new DumpsysPackageReceiver(); in testParse_classic() local 37 p.processNewLines(froyoPkgTxt); in testParse_classic() 38 assertEquals("failed to parse package data", 1, p.getPackages().size()); in testParse_classic() 39 PackageInfo pkg = p.getPackages().get("com.android.soundrecorder"); in testParse_classic() 56 DumpsysPackageReceiver p = new DumpsysPackageReceiver(); in testParse_future() local 57 p.processNewLines(pkgTxt); in testParse_future() 58 assertEquals("failed to parse package data", 1, p.getPackages().size()); in testParse_future() 59 PackageInfo pkg = p.getPackages().get("com.android.soundrecorder"); in testParse_future() 78 DumpsysPackageReceiver p = new DumpsysPackageReceiver(); in testParse_hidden() local 79 p.processNewLines(pkgsTxt); in testParse_hidden() [all …]
|
D | DeviceSelectionOptionsTest.java | 472 ArgsOptionParser p = new ArgsOptionParser(mDeviceSelection); 473 p.parse("--min-sdk-level", "15"); 484 ArgsOptionParser p = new ArgsOptionParser(mDeviceSelection); 485 p.parse("--min-sdk-level", "10"); 496 ArgsOptionParser p = new ArgsOptionParser(mDeviceSelection); 497 p.parse("--min-sdk-level", "10"); 508 ArgsOptionParser p = new ArgsOptionParser(mDeviceSelection); 509 p.parse("--max-sdk-level", "15"); 520 ArgsOptionParser p = new ArgsOptionParser(mDeviceSelection); 521 p.parse("--max-sdk-level", "15"); [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | TestSuiteInfoTest.java | 69 Properties p = instance.loadSuiteInfo(stream); in testLoadConfig() local 70 assertEquals("eng.build.5", p.getProperty("build_number")); in testLoadConfig() 71 assertEquals("arm64", p.getProperty("target_arch")); in testLoadConfig() 72 assertEquals("CTS", p.getProperty("name")); in testLoadConfig() 73 assertEquals("Compatibility Test Suite", p.getProperty("fullname")); in testLoadConfig() 74 assertEquals("7.0", p.getProperty("version")); in testLoadConfig() 95 Properties p = instance.loadSuiteInfo(stream); in testLoadConfig_multiArch() local 96 assertEquals("eng.build.5", p.getProperty("build_number")); in testLoadConfig_multiArch() 97 assertEquals("arm64,x86_64", p.getProperty("target_arch")); in testLoadConfig_multiArch() 98 assertEquals("CTS", p.getProperty("name")); in testLoadConfig_multiArch() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | BugreportCollector.java | 47 p(Relation.AFTER, Freq.EACH, Noun.FAILED_TESTCASE); 50 p(Relation.AT_START_OF, Freq.EACH, Noun.INVOCATION); 160 SubPredicate p = iter.next(); in toString() local 161 sb.append(p.toString()); in toString() 224 public void addPredicate(Predicate p) { in addPredicate() argument 225 mPredicates.add(p); in addPredicate() 293 for (Predicate p : mPredicates) { in getPredicate() 294 if (p.partialMatch(predicate)) { in getPredicate() 295 return p; in getPredicate() 304 CLog.v("Search checking predicate %s", p(relation, freq, noun)); in search() [all …]
|
/tools/test/connectivity/acts/tests/google/wifi/rtt/functional/ |
D | RangeApSupporting11McTest.py | 308 p = {} 310 p[RttParam.frequency] = freq 311 p[RttParam.BSSID] = scan_result[WifiEnums.BSSID_KEY] 313 p[RttParam.preamble] = RttPreamble.PREAMBLE_VHT 315 p[RttParam.preamble] = RttPreamble.PREAMBLE_HT 318 p[RttParam.center_freq0] = cf0 321 p[RttParam.center_freq1] = cf1 323 p[RttParam.channel_width] = cw 324 p[RttParam.bandwidth] = scan_result_channel_width_to_rtt[cw] 326 p[RttParam.request_type] = RttType.TYPE_TWO_SIDED [all …]
|
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/importers/ftrace/ |
D | FtraceImporterTest.kt | 135 val p = model.processes[3691]!! in testCounters() constant 136 assertEquals(3691, p.id) in testCounters() 137 assertEquals(3, p.threads.size) in testCounters() 138 assertTrue(p.threads.any { it.id == 3691 }) in testCounters() 139 assertTrue(p.threads.any { it.id == 4931 }) in testCounters() 140 assertTrue(p.threads.any { it.id == 4932 }) in testCounters() 141 assertEquals(1, p.counters.size) in testCounters() 142 val c = p.counters[0] in testCounters()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/ |
D | RandomAccessFileUtils.java | 41 int p = 0; in fullyRead() local 43 while ((r = raf.read(data, p, data.length - p)) > 0) { in fullyRead() 44 p += r; in fullyRead() 45 if (p == data.length) { in fullyRead() 50 if (p < data.length) { in fullyRead() 55 + p in fullyRead()
|
/tools/test/graphicsbenchmark/ |
D | Android.mk | 57 $(gamecore_dist_zip) : $(SOONG_ZIP) $(foreach p,$(gamecore_dist_copy_pairs),$(call word-colon,1,$(p… 61 $(foreach p,$(PRIVATE_COPY_PAIRS), \ 62 cp -f $(call word-colon,1,$(p)) $(dir $@)/$(call word-colon,2,$(p)) &&) true 65 $(foreach p,$(PRIVATE_COPY_PAIRS),-f $(dir $@)/$(call word-colon,2,$(p)))
|
/tools/dexter/dexter/ |
D | dissasembler.cc | 171 for (const char* p = ir_string->c_str(); *p != '\0'; ++p) { in Visit() local 172 if (::isprint(*p)) { in Visit() 173 printf("%c", *p); in Visit() 175 switch (*p) { in Visit() 188 printf("\\x%02x", *p); in Visit()
|
D | dexter.cc | 37 for (auto p = class_name; *p != '\0'; ++p) { in ClassNameToDescriptor() local 38 ss << (*p == '.' ? '/' : *p); in ClassNameToDescriptor()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/ |
D | Builders.kt | 31 val p = if (garbage.isNotEmpty()) in noReset() constant 35 stack.add(p) in noReset() 36 cb.invoke(p) in noReset() 41 val p = stack.removeAt(stack.lastIndex) in noReset() constant 42 val ret = cb.invoke(p) in noReset() 43 garbage.add(reset(p)) in noReset()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | DeviceManager.java | 726 Pattern p = in getEventFromFree() local 730 if (devices == null || !p.matcher(devices).find()) { in getEventFromFree() 763 Process p = runUtil.runCmdInBackground(fullArgs, emulatorOutput); in launchEmulator() local 766 assertEmulatorProcessAlive(p, device); in launchEmulator() 768 testDevice.setEmulatorProcess(p); in launchEmulator() 779 private void assertEmulatorProcessAlive(Process p, ITestDevice device) in assertEmulatorProcessAlive() argument 781 if (!p.isAlive()) { in assertEmulatorProcessAlive() 784 StreamUtil.getStringFromStream(p.getInputStream()), in assertEmulatorProcessAlive() 785 StreamUtil.getStringFromStream(p.getErrorStream())); in assertEmulatorProcessAlive()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | InstalledInstrumentationsTestTest.java | 82 ArgsOptionParser p = new ArgsOptionParser(mInstalledInstrTest); in testRun() local 83 p.parse("--size", "small", "--force-abi", ABI); in testRun() 102 ArgsOptionParser p = new ArgsOptionParser(mInstalledInstrTest); in testRun_retry() local 103 p.parse("--size", "small", "--force-abi", ABI); in testRun_retry() 187 ArgsOptionParser p = new ArgsOptionParser(mInstalledInstrTest); in testRun_withCollectors() local 188 p.parse("--size", "small", "--force-abi", ABI); in testRun_withCollectors()
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/ |
D | logserial.py | 113 p = prop.split('=') 114 result[p[0]] = p[1] 127 p = prop.split('=') 128 result[p[0]] = p[1]
|
/tools/asuite/aidegen/idea/ |
D | xml_gen.py | 130 git_mappings = [_GIT_PATH.format(GIT_DIR=p) for p in git_paths if p] 144 ignores = [_IGNORE_PATH.format(GIT_DIR=p) for p in ignore_paths]
|
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/test/ |
D | PerformanceTest.java | 138 Process p = pb.start(); in setUp() local 139 boolean finished = p.waitFor(30, TimeUnit.MINUTES); in setUp() 140 if (!finished || p.exitValue() != 0) { in setUp() 142 ByteStreams.copy(p.getInputStream(), os); in setUp() 146 p.destroy(); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | ClusterLogSaver.java | 127 private Path getRelativePath(Path p) { in getRelativePath() argument 128 return mRootDir.toPath().relativize(p); in getRelativePath() 193 final Path p = op.get(); in findTestContextFile() local 196 Path relPath = dir.toPath().relativize(p); in findTestContextFile() 207 return p.toFile(); in findTestContextFile()
|
/tools/external_updater/ |
D | update_package.sh | 51 for p in $tmp_dir/patches/*.diff 53 [ -e "$p" ] || continue 54 echo "Applying $p..." 55 patch -p1 -d $tmp_dir < $p;
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | CommandOptionsTest.java | 39 ArgsOptionParser p = new ArgsOptionParser(co); in testGetLoopTime_minset() local 40 p.parse("--min-loop-time", "10"); in testGetLoopTime_minset() 48 ArgsOptionParser p = new ArgsOptionParser(co); in testGetLoopTime_least() local 49 p.parse("--min-loop-time", "5", "--min-loop-time", "0"); in testGetLoopTime_least()
|