Home
last modified time | relevance | path

Searched refs:selection (Results 1 – 25 of 131) sorted by relevance

123456

/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextSelectionTest.java74 TextSelection selection = parcelizeDeparcelize(original, TextSelection.CREATOR); in testTextSelection() local
76 assertThat(selection.getSelectionStartIndex()).isEqualTo(START); in testTextSelection()
77 assertThat(selection.getSelectionEndIndex()).isEqualTo(END); in testTextSelection()
78 assertThat(selection.getEntityCount()).isEqualTo(2); in testTextSelection()
79 assertThat(selection.getEntity(0)).isEqualTo(TextClassifier.TYPE_EMAIL); in testTextSelection()
80 assertThat(selection.getEntity(1)).isEqualTo(TextClassifier.TYPE_ADDRESS); in testTextSelection()
81 assertThat(selection.getConfidenceScore(TextClassifier.TYPE_ADDRESS)).isWithin( in testTextSelection()
83 assertThat(selection.getConfidenceScore(TextClassifier.TYPE_EMAIL)).isWithin( in testTextSelection()
85 assertThat(selection.getConfidenceScore("random_type")).isEqualTo(0); in testTextSelection()
86 assertThat(selection.getId()).isEqualTo(ID); in testTextSelection()
[all …]
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/ulp/
DUlpMessage.java66 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/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/rrlp_components/
DGANSSAlmanacElement.java51 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 …]
DGANSSClockModel.java51 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 …]
DGANSSOrbitModel.java51 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 …]
DNeighborIdentity.java51 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 …]
DReferenceIdentityType.java51 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 …]
DMethodType.java51 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 …]
DGANSSAddUTCModel.java51 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 …]
DGANSSAuxiliaryInformation.java51 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 …]
DOTD_MsrsOfOtherSets.java51 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 …]
DSatStatus.java51 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 …]
DSystemInfoAssistBTS.java51 private ChoiceComponent selection; field in SystemInfoAssistBTS
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()
313 return !hasExtensionValue() && Select.$NotPresent == selection; in isNotPresent()
328 selection = Select.$NotPresent; in setNotPresent()
342 return !hasExtensionValue() && Select.$Present == selection; in isPresent()
[all …]
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/supl_triggered_start/
DAreaId.java51 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 …]
DGeographicTargetArea.java54 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 …]
DTriggerParams.java51 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/tests/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/ver2_ulp_components/
DVer2_CellInfo_extension.java51 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/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/ulp_components/
DVelocity.java51 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 …]
DCellInfo.java52 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 …]
DSLPAddress.java51 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/contactsprovider/src/android/provider/cts/contacts/
DDatabaseAsserts.java167 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/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/rrlp_messages/
DRRLP_Component.java57 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/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/
DDatabase.java88 public Cursor query(String table, String[] projection, String selection, String[] selectionArgs, in query() argument
91 .query(table, projection, selection, selectionArgs, null /* groupBy */, in query()
118 public int delete(String table, String selection, String[] selectionArgs) { in delete() argument
119 return mHelper.getWritableDatabase().delete(table, selection, selectionArgs); in delete()
134 public int update(String table, ContentValues values, String selection, in update() argument
136 return mHelper.getWritableDatabase().update(table, values, selection, selectionArgs); in update()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DApnDatabaseTest.java120 final String selection = Carriers.NUMERIC + "=?"; in testValidCase() local
128 + selection in testValidCase()
132 mContentResolver.query(uri, apnProjection, selection, selectionArgs, null); in testValidCase()
151 mContentResolver.update(uri, contentValues, selection, selectionArgs); in testValidCase()
155 cursor = mContentResolver.query(uri, apnProjection, selection, selectionArgs, null); in testValidCase()
181 cursor = mContentResolver.query(uri, apnProjection, selection, selectionArgs, null); in testValidCase()
212 final String selection = invalidColumn + "=?"; in testQueryConflictCase() local
219 + selection in testQueryConflictCase()
223 mContentResolver.query(uri, testProjection, selection, selectionArgs, null); in testQueryConflictCase()
274 String selection = Carriers.NAME + "=?"; in testUpdateConflictCase() local
[all …]
/cts/tests/tests/content/src/android/content/cts/
DMockContentProvider.java142 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
149 if (null == selection) { in delete()
151 selection = "1"; in delete()
153 count = db.delete("TestTable1", selection, selectionArgs); in delete()
158 (!TextUtils.isEmpty(selection) ? " AND (" + selection + ')' : ""), in delete()
162 count = db.delete("TestTable2", selection, selectionArgs); in delete()
167 (!TextUtils.isEmpty(selection) ? " AND (" + selection + ')' : ""), in delete()
286 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
288 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
292 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
[all …]

123456