Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7639e195 authored by Fahad Afroze's avatar Fahad Afroze
Browse files

[PTS-Bot] Added fix for PBAP/PSE/GOEP/SRMP/BI-02-C flakiness.

Bug: 268460416
Test: atest pts-bot:PBAP -v
Change-Id: I8bd9c3277f67e13ffdca88f3a55047009d7c40bc
parent 52f330bc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -59,9 +59,9 @@ class Pbap(val context: Context) : PBAPImplBase(), Closeable {
        .getContentResolver()
        .query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null)

    if (cursor.getCount() > 0) return // return if contacts are present
    if (cursor.getCount() >= CONTACT_LIST_SIZE) return // return if contacts are present

    for (item in 1..CONTACT_LIST_SIZE) {
    for (item in cursor.getCount()+1..CONTACT_LIST_SIZE) {
      addContact(item)
    }
  }
@@ -142,7 +142,7 @@ class Pbap(val context: Context) : PBAPImplBase(), Closeable {
  companion object {
    const val DEFAULT_DISPLAY_NAME = "Contact Name %d"
    const val DEFAULT_EMAIL_ID = "user%d@example.com"
    const val CONTACT_LIST_SIZE = 100
    const val CONTACT_LIST_SIZE = 125
    const val PHONE_NUM_LENGTH = 10
  }
}