Home
last modified time | relevance | path

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

12345678910>>...18

/external/libtextclassifier/tests/
Dtext-classification-model_test.cc93 std::tuple<int, int> selection; in TEST() local
94 selection = model->SuggestSelection("abc\nBarack Obama", {4, 10}); in TEST()
95 EXPECT_EQ(4, std::get<0>(selection)); in TEST()
96 EXPECT_EQ(16, std::get<1>(selection)); in TEST()
98 selection = model->SuggestSelection("Barack Obama\nabc", {0, 6}); in TEST()
99 EXPECT_EQ(0, std::get<0>(selection)); in TEST()
100 EXPECT_EQ(12, std::get<1>(selection)); in TEST()
110 std::tuple<int, int> selection; in TEST() local
113 selection = model->SuggestSelection( in TEST()
115 EXPECT_EQ(15, std::get<0>(selection)); in TEST()
[all …]
/external/v8/tools/turbolizer/
Dselection.js9 this.selection = new Set();
14 return this.selection.size == 0;
22 handler.select(this.selection, false);
24 this.selection = new Set();
41 this.selection.add(i);
43 handler.select(this.selection, true);
47 if (this.selection.has(i)) {
49 this.selection.delete(i);
67 this.selection = new Set();
68 this.selection.add(this.selectionBase);
[all …]
Dgraph-view.js24 selection: null, property
54 var selection = graph.nodes
78 selection.forEach(function(n) {
87 graph.state.selection.select(this, selected);
94 graph.state.selection.clear();
99 graph.state.selection = new Selection(selectionHandler);
320 graph.state.selection.selection.forEach(function(element) {
380 graph.state.selection.select(this, true);
387 var selection = this.state.selection.detachSelection();
389 for (var i of selection) {
[all …]
Dcode-view.js57 let firstSelect = view.selection.isEmpty();
86 view.selection.select(currentSpan, selected);
92 brokeredClear: function() { view.selection.clear(); },
94 view.selection = new Selection(selectionHandler);
100 view.selection.clear();
102 view.selection.select(this, true);
108 view.selection.extendTo(this);
112 view.handleCodeMouseDown = function(e) { view.selection.clear(); }
Dtext-view.js39 view.selection.clear();
42 view.selection = new Selection(selectionHandler);
181 view.selection.clear();
187 let firstSelect = makeVisible && view.selection.isEmpty();
196 view.selection.select(child, selected);
206 view.selection.select(s, selected);
211 view.selection.select(s, selected);
219 view.selection.clear();
231 view.selection.clear();
265 view.selection.clear();
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/impl/
DDumbTextComponent.java53 private Selection selection = new Selection(); field in DumbTextComponent
189 int start = selection.getStart(); in keyPressed()
190 int end = selection.getEnd(); in keyPressed()
228 tempSelection.set(selection); in keyPressed()
234 tempSelection.set(selection); in keyPressed()
240 tempSelection.set(selection); in keyPressed()
249 tempSelection.set(selection); in keyPressed()
260 start = selection.getStart(); in keyPressed()
261 end = selection.getEnd(); in keyPressed()
277 contents.substring(selection.getStart(), selection.getEnd())); in copy()
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowCursorLoader.java15 private String selection; field in ShadowCursorLoader
23 …public void __constructor__(Context context, Uri uri, String[] projection, String selection, Strin… in __constructor__() argument
27 this.selection = selection; in __constructor__()
54 return selection; in getSelection()
58 public void setSelection(String selection) { in setSelection() argument
59 this.selection = selection; in setSelection()
DShadowSQLiteDatabase.java115 String selection, String[] selectionArgs, String groupBy, in query() argument
118 String where = selection; in query()
119 if (selection != null && selectionArgs != null) { in query()
120 where = buildWhereClause(selection, selectionArgs); in query()
140 public Cursor query(String table, String[] columns, String selection, in query() argument
143 … return query(false, table, columns, selection, selectionArgs, groupBy, having, orderBy, null); in query()
147 public Cursor query(String table, String[] columns, String selection, in query() argument
150 … return query(false, table, columns, selection, selectionArgs, groupBy, having, orderBy, limit); in query()
/external/syslinux/gpxe/src/usr/
Dpxemenu.c72 unsigned int selection; member
238 pxe_menu_draw_item ( menu, menu->selection, 1 ); in pxe_menu_select()
246 pxe_menu_draw_item ( menu, menu->selection, 0 ); in pxe_menu_select()
250 pxe_menu_draw_item ( menu, menu->selection, 1 ); in pxe_menu_select()
256 if ( menu->selection > 0 ) in pxe_menu_select()
257 menu->selection--; in pxe_menu_select()
259 if ( menu->selection < ( menu->num_items - 1 ) ) in pxe_menu_select()
260 menu->selection++; in pxe_menu_select()
264 menu->selection = key_selection; in pxe_menu_select()
265 pxe_menu_draw_item ( menu, menu->selection, 1 ); in pxe_menu_select()
[all …]
/external/libtextclassifier/smartselect/
Dtext-classification-model.cc62 CodepointSpan selection, const std::string& context) const { in StripPunctuation() argument
68 if (selection.first < 0 || selection.first > context_length || in StripPunctuation()
69 selection.second < 0 || selection.second > context_length) { in StripPunctuation()
70 return selection; in StripPunctuation()
75 std::advance(it_from_begin, selection.first); in StripPunctuation()
78 ++it_from_begin, ++selection.first) { in StripPunctuation()
84 std::advance(it_from_end, selection.second); in StripPunctuation()
89 --it_from_end, --selection.second) { in StripPunctuation()
91 return selection; in StripPunctuation()
318 std::pair<CodepointIndex, CodepointIndex> selection = in BestSelectionSpan() local
[all …]
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DEABProvider.java207 protected int deleteInternal(SQLiteDatabase db, Uri uri, String selection, in deleteInternal() argument
214 if (selection == null) { in deleteInternal()
215 selection = "_id=?"; in deleteInternal()
226 logger.debug("Deleting from the table" + table + " selection= " + selection); in deleteInternal()
227 printDeletingValues(uri, selection, selectionArgs); in deleteInternal()
229 return db.delete(table, selection, selectionArgs); in deleteInternal()
265 String selection, String[] selectionArgs, String sortOrder) { in queryInternal() argument
274 if(null != selection) { in queryInternal()
275 selection = "((" + idSelection + ") AND (" + selection + "))"; in queryInternal()
277 selection = idSelection; in queryInternal()
[all …]
DContactDbUtil.java55 String selection = ContactsContract.Data.MIMETYPE + " = '" + Phone.CONTENT_ITEM_TYPE + "'"; in resetVtCapability() local
59 int count = resolver.update(ContactsContract.Data.CONTENT_URI, values, selection, null); in resetVtCapability()
70 String selection = ContactsContract.Data.MIMETYPE + " = '" + Phone.CONTENT_ITEM_TYPE in updateVtCapability() local
76 selection, null, null); in updateVtCapability()
92 int count = resolver.update(ContactsContract.Data.CONTENT_URI, values, selection, null); in updateVtCapability()
DDatabaseContentProvider.java207 protected abstract int deleteInternal(final SQLiteDatabase db, Uri uri, String selection, in deleteInternal() argument
211 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
223 result = deleteInternal(db, uri, selection, selectionArgs); in delete()
320 String selection, String[] selectionArgs, String sortOrder); in queryInternal() argument
323 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
332 return queryInternal(db, uri, projection, selection, selectionArgs, sortOrder); in query()
339 String selection, String[] selectionArgs); in updateInternal() argument
342 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
353 result = updateInternal(db, uri, values, selection, selectionArgs); in update()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DCursorLoaderTest.java19 String selection = "_id = ?"; in testGetters() local
25 selection, in testGetters()
31 assertThat(cursorLoader.getSelection(), equalTo(selection)); in testGetters()
40 String selection = "_id = ?"; in testSetters() local
46 cursorLoader.setSelection(selection); in testSetters()
52 assertThat(cursorLoader.getSelection(), equalTo(selection)); in testSetters()
/external/selinux/gui/
DdomainsPage.py113 def itemSelected(self, selection): argument
114 store, iter = selection.get_selected()
126 selection = self.view.get_selection()
127 store, iter = selection.get_selected()
137 self.itemSelected(selection)
151 selection = self.view.get_selection()
152 store, iter = selection.get_selected()
162 self.itemSelected(selection)
/external/tpm2/
DPCR.c385 TPMS_PCR_SELECTION *selection // IN: The selection structure in IsPcrSelected() argument
390 && ((selection->pcrSelect[pcr/8]) & (1 << (pcr % 8))) != 0) in IsPcrSelected()
402 TPMS_PCR_SELECTION *selection // IN: input PCR selection in FilterPcr() argument
408 for(i = selection->sizeofSelect; i < PCR_SELECT_MAX; i++) in FilterPcr()
409 selection->pcrSelect[i] = 0; in FilterPcr()
413 if(gp.pcrAllocated.pcrSelections[i].hash == selection->hash) in FilterPcr()
419 for (i = 0; i < selection->sizeofSelect; i++) in FilterPcr()
424 selection->pcrSelect[i] = 0; in FilterPcr()
427 selection->pcrSelect[i] &= allocated->pcrSelect[i]; in FilterPcr()
729 TPML_PCR_SELECTION *selection, // IN/OUT: PCR selection (filtered on in PCRComputeCurrentDigest() argument
[all …]
/external/clang/test/CodeGenObjC/
Ddebuginfo-properties.m13 @property (nonatomic, retain) Selection* selection; property
14 // CHECK: !DISubprogram(name: "-[MyClass selection]"
20 // CHECK: !DISubprogram(name: "-[OtherClass selection]"
35 @synthesize selection = _selection;
43 @synthesize selection = _selection;
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
DBarPlotExampleActivity.java97 private Pair<Integer, XYSeries> selection; field in BarPlotExampleActivity
319 selection = null; in onPlotClicked()
333 if (selection == null) { in onPlotClicked()
334 selection = new Pair<Integer, XYSeries>(i, series); in onPlotClicked()
338 selection = new Pair<Integer, XYSeries>(i, series); in onPlotClicked()
344 selection = new Pair<Integer, XYSeries>(i, series); in onPlotClicked()
354 selection = null; in onPlotClicked()
357 if(selection == null) { in onPlotClicked()
360 selectionWidget.setText("Selected: " + selection.second.getTitle() + in onPlotClicked()
361 " Value: " + selection.second.getY(selection.first)); in onPlotClicked()
[all …]
/external/webrtc/webrtc/voice_engine/test/auto_test/
Dvoe_stress_test.cc98 int selection(-1); in MenuSelection() local
100 while ((selection < 0) || (selection > maxMenuSelection)) { in MenuSelection()
102 int retval = scanf("%d", &selection); in MenuSelection()
103 if ((retval != 1) || (selection < 0) || (selection > maxMenuSelection)) { in MenuSelection()
108 return selection; in MenuSelection()
/external/webrtc/webrtc/modules/audio_device/test/
Daudio_device_test_func.cc78 int selection(0); in func_test() local
85 selection = sel; in func_test()
89 if (scanf("%d", &selection) < 0) { in func_test()
94 switch (selection) in func_test()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/database/
DSimpleTestCursor.java11 public String selection; field in SimpleTestCursor
20 …public void setQuery(Uri uri, String[] projection, String selection, String[] selectionArgs, Strin… in setQuery() argument
23 this.selection = selection; in setQuery()
/external/clang/tools/clang-format/
Dclang-format-bbedit.applescript4 -- selection. Note that you can rename the menu item by renaming the script, and
12 set selectionOffset to characterOffset of selection
13 set selectionLength to length of selection
22 -- replacing a selection flashes a bit but doesn't affect the scroll position.
25 set text of selection to newContents
/external/autotest/client/site_tests/platform_CompressedSwapPerf/
Dplatform_CompressedSwapPerf.py128 def report_stat(self, units, swap_target, selection, metric, stat, value): argument
142 selection, metric, stat ]
149 def report_stats(self, units, swap_target, selection, metric, values): argument
169 self.report_stat(units, swap_target, selection, metric, 'mean', mean)
170 self.report_stat(units, swap_target, selection,
172 self.report_stat(units, swap_target, selection,
174 self.report_stat(units, swap_target, selection,
340 selection = f(i, len(hogs))
341 hog_sock = sockets[selection]
342 retcode = hogs[selection].poll()
/external/autotest/server/cros/ap_configurators/
DbelkinF5D8236_ap_configurator.py26 selection = 'WPA2-PSK'
28 selection = 'WPA-PSK'
29 self.select_item_from_popup_by_xpath(selection, psk,
/external/libvncserver/client_examples/
Dscrap.c347 Atom selection; in get_scrap() local
361 selection = XA_CUT_BUFFER0; in get_scrap()
370 selection = XInternAtom(SDL_Display, "SDL_SELECTION", in get_scrap()
373 selection, owner, CurrentTime); in get_scrap()
391 if (XGetWindowProperty(SDL_Display, owner, selection, in get_scrap()
517 response.xselection.selection=req->selection; in clipboard_filter()
527 sevent.xselection.selection = req->selection; in clipboard_filter()

12345678910>>...18