/aosp12/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/ |
H A D | ProtoInputStreamObjectTest.java | 112 pi.end(token); in testObjectOneChar() 166 pi.end(token); in testObjectOneLargeChar() 228 pi.end(token); in testObjectAndTwoChars() 298 pi.end(token); in testComplexObject() 394 pi.nextField(); in testBadReadType() 403 pi.nextField(); in testBadReadType() 412 pi.nextField(); in testBadReadType() 414 pi.readInt(fieldId1); in testBadReadType() 421 pi.nextField(); in testBadReadType() 430 pi.nextField(); in testBadReadType() [all …]
|
H A D | ProtoInputStreamEnumTest.java | 457 pi.nextField(); in testBadReadType() 459 pi.readFloat(fieldId1); in testBadReadType() 466 pi.nextField(); in testBadReadType() 468 pi.readDouble(fieldId1); in testBadReadType() 475 pi.nextField(); in testBadReadType() 484 pi.nextField(); in testBadReadType() 486 pi.readLong(fieldId1); in testBadReadType() 493 pi.nextField(); in testBadReadType() 495 pi.readBytes(fieldId1); in testBadReadType() 502 pi.nextField(); in testBadReadType() [all …]
|
H A D | ProtoInputStreamBoolTest.java | 387 pi.nextField(); in testBadReadType() 389 pi.readFloat(fieldId1); in testBadReadType() 396 pi.nextField(); in testBadReadType() 398 pi.readDouble(fieldId1); in testBadReadType() 405 pi.nextField(); in testBadReadType() 407 pi.readInt(fieldId1); in testBadReadType() 414 pi.nextField(); in testBadReadType() 416 pi.readLong(fieldId1); in testBadReadType() 423 pi.nextField(); in testBadReadType() 425 pi.readBytes(fieldId1); in testBadReadType() [all …]
|
H A D | ProtoInputStreamFixed64Test.java | 535 pi.nextField(); in testBadReadType() 537 pi.readFloat(fieldId1); in testBadReadType() 544 pi.nextField(); in testBadReadType() 546 pi.readDouble(fieldId1); in testBadReadType() 553 pi.nextField(); in testBadReadType() 555 pi.readInt(fieldId1); in testBadReadType() 562 pi.nextField(); in testBadReadType() 571 pi.nextField(); in testBadReadType() 573 pi.readBytes(fieldId1); in testBadReadType() 580 pi.nextField(); in testBadReadType() [all …]
|
H A D | ProtoInputStreamInt64Test.java | 532 pi.nextField(); in testBadReadType() 534 pi.readFloat(fieldId1); in testBadReadType() 541 pi.nextField(); in testBadReadType() 543 pi.readDouble(fieldId1); in testBadReadType() 550 pi.nextField(); in testBadReadType() 552 pi.readInt(fieldId1); in testBadReadType() 559 pi.nextField(); in testBadReadType() 568 pi.nextField(); in testBadReadType() 570 pi.readBytes(fieldId1); in testBadReadType() 577 pi.nextField(); in testBadReadType() [all …]
|
H A D | ProtoInputStreamSFixed64Test.java | 534 pi.nextField(); in testBadReadType() 536 pi.readFloat(fieldId1); in testBadReadType() 543 pi.nextField(); in testBadReadType() 545 pi.readDouble(fieldId1); in testBadReadType() 552 pi.nextField(); in testBadReadType() 554 pi.readInt(fieldId1); in testBadReadType() 561 pi.nextField(); in testBadReadType() 570 pi.nextField(); in testBadReadType() 572 pi.readBytes(fieldId1); in testBadReadType() 579 pi.nextField(); in testBadReadType() [all …]
|
H A D | ProtoInputStreamSInt64Test.java | 509 pi.nextField(); in testBadReadType() 511 pi.readFloat(fieldId1); in testBadReadType() 518 pi.nextField(); in testBadReadType() 520 pi.readDouble(fieldId1); in testBadReadType() 527 pi.nextField(); in testBadReadType() 529 pi.readInt(fieldId1); in testBadReadType() 536 pi.nextField(); in testBadReadType() 545 pi.nextField(); in testBadReadType() 547 pi.readBytes(fieldId1); in testBadReadType() 554 pi.nextField(); in testBadReadType() [all …]
|
H A D | ProtoInputStreamUInt64Test.java | 528 pi.nextField(); in testBadReadType() 530 pi.readFloat(fieldId1); in testBadReadType() 537 pi.nextField(); in testBadReadType() 539 pi.readDouble(fieldId1); in testBadReadType() 546 pi.nextField(); in testBadReadType() 548 pi.readInt(fieldId1); in testBadReadType() 555 pi.nextField(); in testBadReadType() 564 pi.nextField(); in testBadReadType() 566 pi.readBytes(fieldId1); in testBadReadType() 573 pi.nextField(); in testBadReadType() [all …]
|
H A D | ProtoInputStreamFixed32Test.java | 434 pi.nextField(); in testBadReadType() 436 pi.readFloat(fieldId1); in testBadReadType() 443 pi.nextField(); in testBadReadType() 445 pi.readDouble(fieldId1); in testBadReadType() 452 pi.nextField(); in testBadReadType() 461 pi.nextField(); in testBadReadType() 463 pi.readLong(fieldId1); in testBadReadType() 470 pi.nextField(); in testBadReadType() 472 pi.readBytes(fieldId1); in testBadReadType() 479 pi.nextField(); in testBadReadType() [all …]
|
H A D | ProtoInputStreamInt32Test.java | 452 pi.nextField(); in testBadReadType() 454 pi.readFloat(fieldId1); in testBadReadType() 461 pi.nextField(); in testBadReadType() 463 pi.readDouble(fieldId1); in testBadReadType() 470 pi.nextField(); in testBadReadType() 479 pi.nextField(); in testBadReadType() 481 pi.readLong(fieldId1); in testBadReadType() 488 pi.nextField(); in testBadReadType() 490 pi.readBytes(fieldId1); in testBadReadType() 497 pi.nextField(); in testBadReadType() [all …]
|
H A D | ProtoInputStreamSFixed32Test.java | 434 pi.nextField(); in testBadReadType() 436 pi.readFloat(fieldId1); in testBadReadType() 443 pi.nextField(); in testBadReadType() 445 pi.readDouble(fieldId1); in testBadReadType() 452 pi.nextField(); in testBadReadType() 461 pi.nextField(); in testBadReadType() 463 pi.readLong(fieldId1); in testBadReadType() 470 pi.nextField(); in testBadReadType() 472 pi.readBytes(fieldId1); in testBadReadType() 479 pi.nextField(); in testBadReadType() [all …]
|
H A D | ProtoInputStreamSInt32Test.java | 434 pi.nextField(); in testBadReadType() 436 pi.readFloat(fieldId1); in testBadReadType() 443 pi.nextField(); in testBadReadType() 445 pi.readDouble(fieldId1); in testBadReadType() 452 pi.nextField(); in testBadReadType() 461 pi.nextField(); in testBadReadType() 463 pi.readLong(fieldId1); in testBadReadType() 470 pi.nextField(); in testBadReadType() 472 pi.readBytes(fieldId1); in testBadReadType() 479 pi.nextField(); in testBadReadType() [all …]
|
H A D | ProtoInputStreamUInt32Test.java | 451 pi.nextField(); in testBadReadType() 453 pi.readFloat(fieldId1); in testBadReadType() 460 pi.nextField(); in testBadReadType() 462 pi.readDouble(fieldId1); in testBadReadType() 469 pi.nextField(); in testBadReadType() 478 pi.nextField(); in testBadReadType() 480 pi.readLong(fieldId1); in testBadReadType() 487 pi.nextField(); in testBadReadType() 489 pi.readBytes(fieldId1); in testBadReadType() 496 pi.nextField(); in testBadReadType() [all …]
|
H A D | ProtoInputStreamStringTest.java | 290 pi.nextField(); in testBadReadType() 292 pi.readFloat(fieldId1); in testBadReadType() 299 pi.nextField(); in testBadReadType() 301 pi.readDouble(fieldId1); in testBadReadType() 308 pi.nextField(); in testBadReadType() 310 pi.readInt(fieldId1); in testBadReadType() 317 pi.nextField(); in testBadReadType() 319 pi.readLong(fieldId1); in testBadReadType() 326 pi.nextField(); in testBadReadType() 328 pi.readBytes(fieldId1); in testBadReadType() [all …]
|
H A D | ProtoInputStreamFloatTest.java | 566 pi.nextField(); in testBadReadType() 575 pi.nextField(); in testBadReadType() 577 pi.readDouble(fieldId1); in testBadReadType() 584 pi.nextField(); in testBadReadType() 586 pi.readInt(fieldId1); in testBadReadType() 593 pi.nextField(); in testBadReadType() 595 pi.readLong(fieldId1); in testBadReadType() 602 pi.nextField(); in testBadReadType() 604 pi.readBytes(fieldId1); in testBadReadType() 611 pi.nextField(); in testBadReadType() [all …]
|
H A D | ProtoInputStreamDoubleTest.java | 614 pi.nextField(); in testBadReadType() 616 pi.readFloat(fieldId1); in testBadReadType() 623 pi.nextField(); in testBadReadType() 632 pi.nextField(); in testBadReadType() 634 pi.readInt(fieldId1); in testBadReadType() 641 pi.nextField(); in testBadReadType() 643 pi.readLong(fieldId1); in testBadReadType() 650 pi.nextField(); in testBadReadType() 652 pi.readBytes(fieldId1); in testBadReadType() 659 pi.nextField(); in testBadReadType() [all …]
|
H A D | ProtoInputStreamBytesTest.java | 309 pi.nextField(); in testBadReadType() 311 pi.readFloat(fieldId1); in testBadReadType() 318 pi.nextField(); in testBadReadType() 320 pi.readDouble(fieldId1); in testBadReadType() 327 pi.nextField(); in testBadReadType() 329 pi.readInt(fieldId1); in testBadReadType() 336 pi.nextField(); in testBadReadType() 338 pi.readLong(fieldId1); in testBadReadType() 345 pi.nextField(); in testBadReadType() 354 pi.nextField(); in testBadReadType() [all …]
|
H A D | ProtoInputStreamIncompleteValueTest.java | 46 final ProtoInputStream pi = new ProtoInputStream(stream); in testIncompleteVarint() local 48 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testIncompleteVarint() 50 switch (pi.getFieldNumber()) { in testIncompleteVarint() 52 pi.readInt(fieldId1); in testIncompleteVarint() 84 final ProtoInputStream pi = new ProtoInputStream(stream); in testIncompleteFixed64() local 88 switch (pi.getFieldNumber()) { in testIncompleteFixed64() 90 pi.readLong(fieldId2); in testIncompleteFixed64() 126 switch (pi.getFieldNumber()) { in testIncompleteLengthDelimited() 128 pi.readBytes(fieldId5); in testIncompleteLengthDelimited() 163 switch (pi.getFieldNumber()) { in testIncompleteFixed32() [all …]
|
/aosp12/bionic/libc/system_properties/ |
H A D | system_properties.cpp | 186 if (is_read_only(pi->name) && pi->is_long()) { in Read() 192 pi->name, strlen(pi->long_value())); in Read() 203 if (is_read_only(pi->name)) { in ReadCallback() 205 if (pi->is_long()) { in ReadCallback() 206 callback(cookie, pi->name, pi->long_value(), serial); in ReadCallback() 208 callback(cookie, pi->name, pi->value, serial); in ReadCallback() 219 const prop_info* pi = Find(name); in Get() local 221 if (pi != nullptr) { in Get() 222 return Read(pi, nullptr, value); in Get() 259 strlcpy(pi->value, value, len + 1); in Update() [all …]
|
/aosp12/system/apex/tests/app/src/com/android/tests/apex/app/ |
H A D | ApexCompressionTests.java | 76 PackageInfo pi = mPm.getPackageInfo( in testDecompressedApexIsConsideredFactory() local 78 assertThat(pi).isNotNull(); in testDecompressedApexIsConsideredFactory() 79 assertThat(pi.isApex).isTrue(); in testDecompressedApexIsConsideredFactory() 100 PackageInfo pi = mPm.getPackageInfo( in testCapexToApexSwitch() local 102 assertThat(pi).isNotNull(); in testCapexToApexSwitch() 103 assertThat(pi.isApex).isTrue(); in testCapexToApexSwitch() 114 PackageInfo pi = mPm.getPackageInfo( in testDecompressedApexVersionAlwaysHasSameVersionAsCapex() local 116 assertThat(pi).isNotNull(); in testDecompressedApexVersionAlwaysHasSameVersionAsCapex() 117 assertThat(pi.isApex).isTrue(); in testDecompressedApexVersionAlwaysHasSameVersionAsCapex() 127 PackageInfo pi = mPm.getPackageInfo( in testCompressedApexCanBeRolledBack_Commit() local [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/uri/ |
H A D | UriGrantsMockContext.java | 167 pi.authority = PKG_CAMERA; in buildCameraProvider() 173 return pi; in buildCameraProvider() 180 pi.exported = false; in buildPrivateProvider() 184 return pi; in buildPrivateProvider() 191 pi.exported = true; in buildPublicProvider() 195 return pi; in buildPublicProvider() 201 pi.authority = PKG_FORCE; in buildForceProvider() 202 pi.exported = true; in buildForceProvider() 207 return pi; in buildForceProvider() 214 pi.exported = true; in buildComplexProvider() [all …]
|
/aosp12/frameworks/base/core/java/android/content/pm/parsing/ |
H A D | PackageInfoWithoutStateUtils.java | 241 pi.gids = gids; in generateWithoutComponentsUnchecked() 330 pi.isApex = true; in generateWithoutComponentsUnchecked() 356 pi.signingInfo = null; in generateWithoutComponentsUnchecked() 360 return pi; in generateWithoutComponentsUnchecked() 602 pi.exported = p.isExported(); in generateProviderInfoUnchecked() 603 pi.flags = p.getFlags(); in generateProviderInfoUnchecked() 622 return pi; in generateProviderInfoUnchecked() 675 pi.group = p.getGroup(); in generatePermissionInfo() 679 pi.flags = p.getFlags(); in generatePermissionInfo() 683 return pi; in generatePermissionInfo() [all …]
|
/aosp12/bionic/tests/ |
H A D | system_properties_test.cpp | 61 ASSERT_TRUE(pi != nullptr); in foreach_test_callback() 71 __system_property_read(pi, name, value); in hierarchical_test_callback() 138 ASSERT_TRUE(pi != nullptr); in TEST() 142 ASSERT_TRUE(pi != nullptr); in TEST() 146 ASSERT_TRUE(pi != nullptr); in TEST() 342 ASSERT_TRUE(pi != nullptr); in TEST() 360 ASSERT_TRUE(pi != nullptr); in TEST() 390 ASSERT_TRUE(pi != nullptr); in TEST() 396 ASSERT_TRUE(pi != nullptr); in TEST() 483 ASSERT_NE(nullptr, pi); in TEST() [all …]
|
/aosp12/bionic/libc/bionic/ |
H A D | system_property_api.cpp | 73 int __system_property_read(const prop_info* pi, char* name, char* value) { in __system_property_read() argument 74 return system_properties.Read(pi, name, value); in __system_property_read() 78 void __system_property_read_callback(const prop_info* pi, in __system_property_read_callback() argument 82 return system_properties.ReadCallback(pi, callback, cookie); in __system_property_read_callback() 91 int __system_property_update(prop_info* pi, const char* value, unsigned int len) { in __system_property_update() argument 92 return system_properties.Update(pi, value, len); in __system_property_update() 102 uint32_t __system_property_serial(const prop_info* pi) { in __system_property_serial() argument 109 return atomic_load_explicit(&pi->serial, memory_order_acquire); in __system_property_serial() 118 bool __system_property_wait(const prop_info* pi, uint32_t old_serial, uint32_t* new_serial_ptr, in __system_property_wait() argument 120 return system_properties.Wait(pi, old_serial, new_serial_ptr, relative_timeout); in __system_property_wait() [all …]
|
/aosp12/frameworks/opt/net/wifi/libwifi_system/ |
H A D | supplicant_manager.cpp | 43 const prop_info* pi; in StartSupplicant() local 59 pi = __system_property_find(kSupplicantInitProperty); in StartSupplicant() 60 if (pi != NULL) { in StartSupplicant() 61 serial = __system_property_serial(pi); in StartSupplicant() 68 if (pi == NULL) { in StartSupplicant() 69 pi = __system_property_find(kSupplicantInitProperty); in StartSupplicant() 71 if (pi != NULL) { in StartSupplicant() 76 if (__system_property_serial(pi) != serial) { in StartSupplicant() 77 __system_property_read(pi, NULL, supp_status); in StartSupplicant()
|