/cts/tests/tests/view/src/android/view/textclassifier/cts/ |
D | TextClassifierValueObjectsTest.java | 64 final TextSelection selection = new TextSelection.Builder(START, END) in testTextSelection() local 70 assertEquals(START, selection.getSelectionStartIndex()); in testTextSelection() 71 assertEquals(END, selection.getSelectionEndIndex()); in testTextSelection() 72 assertEquals(2, selection.getEntityCount()); in testTextSelection() 73 assertEquals(TextClassifier.TYPE_EMAIL, selection.getEntity(0)); in testTextSelection() 74 assertEquals(TextClassifier.TYPE_ADDRESS, selection.getEntity(1)); in testTextSelection() 75 assertEquals(addressScore, selection.getConfidenceScore(TextClassifier.TYPE_ADDRESS), in testTextSelection() 77 assertEquals(emailScore, selection.getConfidenceScore(TextClassifier.TYPE_EMAIL), in testTextSelection() 79 assertEquals(0, selection.getConfidenceScore("random_type"), ACCEPTED_DELTA); in testTextSelection() 80 assertEquals(ID, selection.getId()); in testTextSelection() [all …]
|
D | TextClassificationManagerTest.java | 108 final TextSelection selection = mClassifier.suggestSelection(TEXT_SELECTION_REQUEST); in testNoOpClassifier() local 109 assertValidResult(selection); in testNoOpClassifier() 110 assertEquals(START, selection.getSelectionStartIndex()); in testNoOpClassifier() 111 assertEquals(END, selection.getSelectionEndIndex()); in testNoOpClassifier() 112 assertEquals(0, selection.getEntityCount()); in testNoOpClassifier() 170 private static void assertValidResult(TextSelection selection) { in assertValidResult() argument 171 assertNotNull(selection); in assertValidResult() 172 assertTrue(selection.getSelectionStartIndex() >= 0); in assertValidResult() 173 assertTrue(selection.getSelectionEndIndex() > selection.getSelectionStartIndex()); in assertValidResult() 174 assertTrue(selection.getEntityCount() >= 0); in assertValidResult() [all …]
|
/cts/tests/tests/location/src/android/location/cts/asn1/supl2/ulp/ |
D | UlpMessage.java | 66 private ChoiceComponent selection; field in UlpMessage 129 return selection.ordinal(); in getSelectionOrdinal() 135 return selection; in getSelectedComponent() 149 selection = Extend.values()[ordinal]; in createAndSetValue() 151 selection = Select.values()[ordinal]; in createAndSetValue() 153 element = selection.createElement(); in createAndSetValue() 163 selection = select; in createAndSetValue() 357 return !hasExtensionValue() && Select.$MsSUPLINIT == selection; in isMsSUPLINIT() 372 selection = Select.$MsSUPLINIT; in setMsSUPLINIT() 386 return !hasExtensionValue() && Select.$MsSUPLSTART == selection; in isMsSUPLSTART() [all …]
|
/cts/tests/tests/location/src/android/location/cts/asn1/supl2/rrlp_components/ |
D | GANSSAlmanacElement.java | 51 private ChoiceComponent selection; field in GANSSAlmanacElement 114 return selection.ordinal(); in getSelectionOrdinal() 120 return selection; in getSelectedComponent() 134 selection = Extend.values()[ordinal]; in createAndSetValue() 136 selection = Select.values()[ordinal]; in createAndSetValue() 138 element = selection.createElement(); in createAndSetValue() 148 selection = select; in createAndSetValue() 216 return !hasExtensionValue() && Select.$KeplerianAlmanacSet == selection; in isKeplerianAlmanacSet() 231 selection = Select.$KeplerianAlmanacSet; in setKeplerianAlmanacSet() 347 return hasExtensionValue() && Extend.$KeplerianNAVAlmanac == selection; in isExtensionKeplerianNAVAlmanac() [all …]
|
D | GANSSOrbitModel.java | 51 private ChoiceComponent selection; field in GANSSOrbitModel 114 return selection.ordinal(); in getSelectionOrdinal() 120 return selection; in getSelectedComponent() 134 selection = Extend.values()[ordinal]; in createAndSetValue() 136 selection = Select.values()[ordinal]; in createAndSetValue() 138 element = selection.createElement(); in createAndSetValue() 148 selection = select; in createAndSetValue() 216 return !hasExtensionValue() && Select.$KeplerianSet == selection; in isKeplerianSet() 231 selection = Select.$KeplerianSet; in setKeplerianSet() 333 return hasExtensionValue() && Extend.$NavKeplerianSet == selection; in isExtensionNavKeplerianSet() [all …]
|
D | GANSSClockModel.java | 51 private ChoiceComponent selection; field in GANSSClockModel 114 return selection.ordinal(); in getSelectionOrdinal() 120 return selection; in getSelectedComponent() 134 selection = Extend.values()[ordinal]; in createAndSetValue() 136 selection = Select.values()[ordinal]; in createAndSetValue() 138 element = selection.createElement(); in createAndSetValue() 148 selection = select; in createAndSetValue() 216 return !hasExtensionValue() && Select.$StandardClockModelList == selection; in isStandardClockModelList() 231 selection = Select.$StandardClockModelList; in setStandardClockModelList() 333 return hasExtensionValue() && Extend.$NavClockModel == selection; in isExtensionNavClockModel() [all …]
|
D | NeighborIdentity.java | 51 private ChoiceComponent selection; field in NeighborIdentity 114 return selection.ordinal(); in getSelectionOrdinal() 120 return selection; in getSelectedComponent() 134 selection = Extend.values()[ordinal]; in createAndSetValue() 136 selection = Select.values()[ordinal]; in createAndSetValue() 138 element = selection.createElement(); in createAndSetValue() 148 selection = select; in createAndSetValue() 306 return !hasExtensionValue() && Select.$BsicAndCarrier == selection; in isBsicAndCarrier() 321 selection = Select.$BsicAndCarrier; in setBsicAndCarrier() 335 return !hasExtensionValue() && Select.$Ci == selection; in isCi() [all …]
|
D | ReferenceIdentityType.java | 51 private ChoiceComponent selection; field in ReferenceIdentityType 114 return selection.ordinal(); in getSelectionOrdinal() 120 return selection; in getSelectedComponent() 134 selection = Extend.values()[ordinal]; in createAndSetValue() 136 selection = Select.values()[ordinal]; in createAndSetValue() 138 element = selection.createElement(); in createAndSetValue() 148 selection = select; in createAndSetValue() 288 return !hasExtensionValue() && Select.$BsicAndCarrier == selection; in isBsicAndCarrier() 303 selection = Select.$BsicAndCarrier; in setBsicAndCarrier() 317 return !hasExtensionValue() && Select.$Ci == selection; in isCi() [all …]
|
D | MethodType.java | 51 private ChoiceComponent selection; field in MethodType 114 return selection.ordinal(); in getSelectionOrdinal() 120 return selection; in getSelectedComponent() 134 selection = Extend.values()[ordinal]; in createAndSetValue() 136 selection = Select.values()[ordinal]; in createAndSetValue() 138 element = selection.createElement(); in createAndSetValue() 148 selection = select; in createAndSetValue() 270 return !hasExtensionValue() && Select.$MsAssisted == selection; in isMsAssisted() 285 selection = Select.$MsAssisted; in setMsAssisted() 299 return !hasExtensionValue() && Select.$MsBased == selection; in isMsBased() [all …]
|
D | GANSSAddUTCModel.java | 51 private ChoiceComponent selection; field in GANSSAddUTCModel 114 return selection.ordinal(); in getSelectionOrdinal() 120 return selection; in getSelectedComponent() 134 selection = Extend.values()[ordinal]; in createAndSetValue() 136 selection = Select.values()[ordinal]; in createAndSetValue() 138 element = selection.createElement(); in createAndSetValue() 148 selection = select; in createAndSetValue() 252 return !hasExtensionValue() && Select.$UtcModel2 == selection; in isUtcModel2() 267 selection = Select.$UtcModel2; in setUtcModel2() 281 return !hasExtensionValue() && Select.$UtcModel3 == selection; in isUtcModel3() [all …]
|
D | GANSSAuxiliaryInformation.java | 51 private ChoiceComponent selection; field in GANSSAuxiliaryInformation 114 return selection.ordinal(); in getSelectionOrdinal() 120 return selection; in getSelectedComponent() 134 selection = Extend.values()[ordinal]; in createAndSetValue() 136 selection = Select.values()[ordinal]; in createAndSetValue() 138 element = selection.createElement(); in createAndSetValue() 148 selection = select; in createAndSetValue() 234 return !hasExtensionValue() && Select.$GanssID1 == selection; in isGanssID1() 249 selection = Select.$GanssID1; in setGanssID1() 263 return !hasExtensionValue() && Select.$GanssID3 == selection; in isGanssID3() [all …]
|
D | OTD_MsrsOfOtherSets.java | 51 private ChoiceComponent selection; field in OTD_MsrsOfOtherSets 114 return selection.ordinal(); in getSelectionOrdinal() 120 return selection; in getSelectedComponent() 134 selection = Extend.values()[ordinal]; in createAndSetValue() 136 selection = Select.values()[ordinal]; in createAndSetValue() 138 element = selection.createElement(); in createAndSetValue() 148 selection = select; in createAndSetValue() 234 return !hasExtensionValue() && Select.$IdentityNotPresent == selection; in isIdentityNotPresent() 249 selection = Select.$IdentityNotPresent; in setIdentityNotPresent() 263 return !hasExtensionValue() && Select.$IdentityPresent == selection; in isIdentityPresent() [all …]
|
D | SatStatus.java | 51 private ChoiceComponent selection; field in SatStatus 114 return selection.ordinal(); in getSelectionOrdinal() 120 return selection; in getSelectedComponent() 134 selection = Extend.values()[ordinal]; in createAndSetValue() 136 selection = Select.values()[ordinal]; in createAndSetValue() 138 element = selection.createElement(); in createAndSetValue() 148 selection = select; in createAndSetValue() 252 return !hasExtensionValue() && Select.$NewSatelliteAndModelUC == selection; in isNewSatelliteAndModelUC() 267 selection = Select.$NewSatelliteAndModelUC; in setNewSatelliteAndModelUC() 360 return !hasExtensionValue() && Select.$OldSatelliteAndModel == selection; in isOldSatelliteAndModel() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestResultsProvider.java | 134 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 161 return query.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query() 174 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument 182 if (selection != null && selection.length() > 0) { in update() 183 selection = idSelection + " AND " + selection; in update() 185 selection = idSelection; in update() 192 if (selection != null && selection.length() > 0) { in update() 193 selection = testNameSelection + " AND " + selection; in update() 195 selection = testNameSelection; in update() 204 int numUpdated = db.update(TABLE_NAME, values, selection, selectionArgs); in update() [all …]
|
/cts/tests/tests/location/src/android/location/cts/asn1/supl2/supl_triggered_start/ |
D | AreaId.java | 51 private ChoiceComponent selection; field in AreaId 114 return selection.ordinal(); in getSelectionOrdinal() 120 return selection; in getSelectedComponent() 134 selection = Extend.values()[ordinal]; in createAndSetValue() 136 selection = Select.values()[ordinal]; in createAndSetValue() 138 element = selection.createElement(); in createAndSetValue() 148 selection = select; in createAndSetValue() 342 return !hasExtensionValue() && Select.$GSMAreaId == selection; in isGSMAreaId() 357 selection = Select.$GSMAreaId; in setGSMAreaId() 371 return !hasExtensionValue() && Select.$WCDMAAreaId == selection; in isWCDMAAreaId() [all …]
|
D | GeographicTargetArea.java | 54 private ChoiceComponent selection; field in GeographicTargetArea 117 return selection.ordinal(); in getSelectionOrdinal() 123 return selection; in getSelectedComponent() 137 selection = Extend.values()[ordinal]; in createAndSetValue() 139 selection = Select.values()[ordinal]; in createAndSetValue() 141 element = selection.createElement(); in createAndSetValue() 151 selection = select; in createAndSetValue() 255 return !hasExtensionValue() && Select.$CircularArea == selection; in isCircularArea() 270 selection = Select.$CircularArea; in setCircularArea() 284 return !hasExtensionValue() && Select.$EllipticalArea == selection; in isEllipticalArea() [all …]
|
D | TriggerParams.java | 51 private ChoiceComponent selection; field in TriggerParams 114 return selection.ordinal(); in getSelectionOrdinal() 120 return selection; in getSelectedComponent() 134 selection = Extend.values()[ordinal]; in createAndSetValue() 136 selection = Select.values()[ordinal]; in createAndSetValue() 138 element = selection.createElement(); in createAndSetValue() 148 selection = select; in createAndSetValue() 234 return !hasExtensionValue() && Select.$PeriodicParams == selection; in isPeriodicParams() 249 selection = Select.$PeriodicParams; in setPeriodicParams() 263 return !hasExtensionValue() && Select.$AreaEventParams == selection; in isAreaEventParams() [all …]
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/ |
D | Database.java | 61 public Cursor query(final String table, final String[] projection, final String selection, in query() argument 64 .query(table, projection, selection, selectionArgs, null /* groupBy */, in query() 72 public int delete(final String table, final String selection, final String[] selectionArgs) { in delete() argument 73 return mHelper.getWritableDatabase().delete(table, selection, selectionArgs); in delete() 76 public int update(final String table, final ContentValues values, final String selection, in update() argument 78 return mHelper.getWritableDatabase().update(table, values, selection, selectionArgs); in update()
|
/cts/tests/tests/location/src/android/location/cts/asn1/supl2/ver2_ulp_components/ |
D | Ver2_CellInfo_extension.java | 51 private ChoiceComponent selection; field in Ver2_CellInfo_extension 114 return selection.ordinal(); in getSelectionOrdinal() 120 return selection; in getSelectedComponent() 134 selection = Extend.values()[ordinal]; in createAndSetValue() 136 selection = Select.values()[ordinal]; in createAndSetValue() 138 element = selection.createElement(); in createAndSetValue() 148 selection = select; in createAndSetValue() 288 return !hasExtensionValue() && Select.$HrpdCell == selection; in isHrpdCell() 303 selection = Select.$HrpdCell; in setHrpdCell() 317 return !hasExtensionValue() && Select.$UmbCell == selection; in isUmbCell() [all …]
|
/cts/tests/tests/location/src/android/location/cts/asn1/supl2/ulp_components/ |
D | CellInfo.java | 52 private ChoiceComponent selection; field in CellInfo 115 return selection.ordinal(); in getSelectionOrdinal() 121 return selection; in getSelectedComponent() 135 selection = Extend.values()[ordinal]; in createAndSetValue() 137 selection = Select.values()[ordinal]; in createAndSetValue() 139 element = selection.createElement(); in createAndSetValue() 149 selection = select; in createAndSetValue() 253 return !hasExtensionValue() && Select.$GsmCell == selection; in isGsmCell() 268 selection = Select.$GsmCell; in setGsmCell() 282 return !hasExtensionValue() && Select.$WcdmaCell == selection; in isWcdmaCell() [all …]
|
D | Velocity.java | 51 private ChoiceComponent selection; field in Velocity 114 return selection.ordinal(); in getSelectionOrdinal() 120 return selection; in getSelectedComponent() 134 selection = Extend.values()[ordinal]; in createAndSetValue() 136 selection = Select.values()[ordinal]; in createAndSetValue() 138 element = selection.createElement(); in createAndSetValue() 148 selection = select; in createAndSetValue() 270 return !hasExtensionValue() && Select.$Horvel == selection; in isHorvel() 285 selection = Select.$Horvel; in setHorvel() 299 return !hasExtensionValue() && Select.$Horandvervel == selection; in isHorandvervel() [all …]
|
D | SLPAddress.java | 51 private ChoiceComponent selection; field in SLPAddress 114 return selection.ordinal(); in getSelectionOrdinal() 120 return selection; in getSelectedComponent() 134 selection = Extend.values()[ordinal]; in createAndSetValue() 136 selection = Select.values()[ordinal]; in createAndSetValue() 138 element = selection.createElement(); in createAndSetValue() 148 selection = select; in createAndSetValue() 234 return !hasExtensionValue() && Select.$IPAddress == selection; in isIPAddress() 249 selection = Select.$IPAddress; in setIPAddress() 263 return !hasExtensionValue() && Select.$FQDN == selection; in isFQDN() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | DatabaseAsserts.java | 167 String[] projection, String selection, String[] selectionArgs, String sortOrder, in assertStoredValuesInUriMatchExactly() argument 169 final Cursor cursor = resolver.query(uri, projection, selection, selectionArgs, sortOrder); in assertStoredValuesInUriMatchExactly() 268 StringBuilder selection = new StringBuilder(); in buildIdSelection() local 269 selection.append(BaseColumns._ID + " in "); in buildIdSelection() 270 selection.append("("); in buildIdSelection() 272 if (i != 0) selection.append(","); in buildIdSelection() 273 selection.append(ids[i]); in buildIdSelection() 275 selection.append(")"); in buildIdSelection() 276 return selection.toString(); in buildIdSelection() 286 final String selection = buildIdSelection(ids); in checkProjection() local [all …]
|
/cts/tests/tests/location/src/android/location/cts/asn1/supl2/rrlp_messages/ |
D | RRLP_Component.java | 57 private ChoiceComponent selection; field in RRLP_Component 120 return selection.ordinal(); in getSelectionOrdinal() 126 return selection; in getSelectedComponent() 140 selection = Extend.values()[ordinal]; in createAndSetValue() 142 selection = Select.values()[ordinal]; in createAndSetValue() 144 element = selection.createElement(); in createAndSetValue() 154 selection = select; in createAndSetValue() 294 return !hasExtensionValue() && Select.$MsrPositionReq == selection; in isMsrPositionReq() 309 selection = Select.$MsrPositionReq; in setMsrPositionReq() 323 return !hasExtensionValue() && Select.$MsrPositionRsp == selection; in isMsrPositionRsp() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | MockContentProvider.java | 141 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 148 if (null == selection) { in delete() 150 selection = "1"; in delete() 152 count = db.delete("TestTable1", selection, selectionArgs); in delete() 157 (!TextUtils.isEmpty(selection) ? " AND (" + selection + ')' : ""), in delete() 161 count = db.delete("TestTable2", selection, selectionArgs); in delete() 166 (!TextUtils.isEmpty(selection) ? " AND (" + selection + ')' : ""), in delete() 258 public Cursor query(Uri uri, String[] projection, String selection, in query() argument 260 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query() 264 public Cursor query(Uri uri, String[] projection, String selection, in query() argument [all …]
|