/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowAdapterView.java | 26 private Adapter adapter; field in ShadowAdapterView 38 public void setAdapter(Adapter adapter) { in setAdapter() argument 39 this.adapter = adapter; in setAdapter() 41 if (null != adapter) { in setAdapter() 42 adapter.registerDataSetObserver(new AdapterViewDataSetObserver()); in setAdapter() 52 updateEmptyStatus(adapter == null || adapter.isEmpty()); in setEmptyView() 72 itemCount = adapter == null ? 0 : adapter.getCount(); in invalidateAndScheduleUpdate() 176 return adapter; in getAdapter() 216 Adapter adapter = getAdapter(); in getItemAtPosition() local 217 return (adapter == null || position < 0) ? null : adapter.getItem(position); in getItemAtPosition() [all …]
|
D | ShadowViewPager.java | 14 private PagerAdapter adapter; field in ShadowViewPager 19 public void setAdapter(PagerAdapter adapter) { in setAdapter() argument 20 this.adapter = adapter; in setAdapter() 25 return adapter; in getAdapter()
|
D | ShadowAutoCompleteTextView.java | 18 private ListAdapter adapter; field in ShadowAutoCompleteTextView 24 return adapter; in getAdapter() 28 public <T extends ListAdapter & Filterable> void setAdapter(T adapter) { in setAdapter() argument 29 this.adapter = adapter; in setAdapter()
|
D | ShadowAlertDialog.java | 43 private ListAdapter adapter; field in ShadowAlertDialog 168 return adapter; in getAdapter() 207 …adapter = new ArrayAdapter<CharSequence>(context, R.layout.simple_list_item_checked, R.id.text1, i… in show() 210 if (adapter != null) { in show() 211 getListView().setAdapter(adapter); in show() 245 private ListAdapter adapter; field in ShadowAlertDialog.ShadowBuilder 309 …public AlertDialog.Builder setSingleChoiceItems(ListAdapter adapter, int checkedItem, final Dialog… in setSingleChoiceItems() argument 313 this.adapter = adapter; in setSingleChoiceItems() 439 latestAlertDialog.adapter = adapter; in create()
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/dxgid3d10/ |
D | dxgid3d10.cpp | 34 IDXGIAdapter *adapter, in D3D10CreateDevice1() argument 45 if(!adapter) in D3D10CreateDevice1() 54 adapter = adapter_to_release.p; in D3D10CreateDevice1() 57 hr = adapter->QueryInterface(IID_IGalliumAdapter, (void**)&gallium_adapter); in D3D10CreateDevice1() 74 hr = GalliumD3D10DeviceCreate1(screen, context, TRUE, flags, adapter, &device); in D3D10CreateDevice1() 86 IDXGIAdapter* adapter, in D3D10CreateDeviceAndSwapChain1() argument 99 hr = D3D10CreateDevice1(adapter, driver_type, software, flags, hardware_level, sdk_version, &dev); in D3D10CreateDeviceAndSwapChain1() 106 ComPtr<IDXGIAdapter> adapter; in D3D10CreateDeviceAndSwapChain1() local 111 hr = dxgi_device->GetAdapter(&adapter); in D3D10CreateDeviceAndSwapChain1() 115 adapter->GetParent(IID_IDXGIFactory, (void**)&factory); in D3D10CreateDeviceAndSwapChain1() [all …]
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | CursorAdapterTest.java | 34 private CursorAdapter adapter; field in CursorAdapterTest 60 adapter = new TestAdapter(curs); in setUp() 65 assertThat(adapter.getCursor(), notNullValue()); in testChangeCursor() 66 assertThat(adapter.getCursor(), sameInstance(curs)); in testChangeCursor() 68 adapter.changeCursor( null ); in testChangeCursor() 71 assertThat(adapter.getCursor(), nullValue() ); in testChangeCursor() 76 assertThat(adapter.getCount(), equalTo(curs.getCount())); in testCount() 77 adapter.changeCursor( null ); in testCount() 78 assertThat(adapter.getCount(), equalTo(0) ); in testCount() 84 assertThat(adapter.getItemId(i), equalTo((long) 1234 + i)); in testGetItemId() [all …]
|
D | BaseAdapterTest.java | 18 BaseAdapter adapter = new TestBaseAdapter(); in shouldRecordNotifyDataSetChanged() local 19 adapter.notifyDataSetChanged(); in shouldRecordNotifyDataSetChanged() 20 assertTrue(shadowOf(adapter).wasNotifyDataSetChangedCalled()); in shouldRecordNotifyDataSetChanged() 25 BaseAdapter adapter = new TestBaseAdapter(); in canResetNotifyDataSetChangedFlag() local 26 adapter.notifyDataSetChanged(); in canResetNotifyDataSetChangedFlag() 27 shadowOf(adapter).clearWasDataSetChangedCalledFlag(); in canResetNotifyDataSetChangedFlag() 28 assertFalse(shadowOf(adapter).wasNotifyDataSetChangedCalled()); in canResetNotifyDataSetChangedFlag()
|
D | AdapterViewBehavior.java | 106 CountingAdapter adapter = new CountingAdapter(2); in testSetAdapter_ShouldFireOnNothingSelectedWhenAdapterCountIsReducedToZero() local 107 adapterView.setAdapter(adapter); in testSetAdapter_ShouldFireOnNothingSelectedWhenAdapterCountIsReducedToZero() 110 adapter.setCount(0); in testSetAdapter_ShouldFireOnNothingSelectedWhenAdapterCountIsReducedToZero() 146 CountingAdapter adapter = new CountingAdapter(0); in testSetEmptyView_ShouldHideEmptyViewWhenAdapterGetsNewItem() local 147 adapterView.setAdapter(adapter); in testSetEmptyView_ShouldHideEmptyViewWhenAdapterGetsNewItem() 155 adapter.setCount(1); in testSetEmptyView_ShouldHideEmptyViewWhenAdapterGetsNewItem() 164 CountingAdapter adapter = new CountingAdapter(1); in testSetEmptyView_ShouldHideAdapterViewWhenAdapterBecomesEmpty() local 165 adapterView.setAdapter(adapter); in testSetEmptyView_ShouldHideAdapterViewWhenAdapterBecomesEmpty() 173 adapter.setCount(0); in testSetEmptyView_ShouldHideAdapterViewWhenAdapterBecomesEmpty() 183 CountingAdapter adapter = new CountingAdapter(2) { in shouldOnlyUpdateOnceIfInvalidatedMultipleTimes() local [all …]
|
D | ListActivityTest.java | 24 ListAdapter adapter = new CountingAdapter(5); in shouldSupportSettingAndGettingListAdapter() local 25 listActivity.setListAdapter(adapter); in shouldSupportSettingAndGettingListAdapter() 48 ListAdapter adapter = new CountingAdapter(5); in shouldSetAdapterOnListView() local 51 listActivity.setListAdapter(adapter); in shouldSetAdapterOnListView() 52 assertThat(listView.getAdapter(), sameInstance(adapter)); in shouldSetAdapterOnListView()
|
D | ViewPagerTest.java | 18 private TestPagerAdapter adapter; field in ViewPagerTest 23 adapter = new TestPagerAdapter(); in setUp() 30 pager.setAdapter(adapter); in shouldSetAndGetAdapter() 31 assertSame(adapter, pager.getAdapter()); in shouldSetAndGetAdapter()
|
D | ListViewTest.java | 245 …final ArrayAdapter<String> adapter = new ArrayAdapter<String>(null, android.R.layout.simple_list_i… in clickItemContainingText_shouldPerformItemClickOnList_arrayAdapter() local 246 listView.setAdapter(adapter); in clickItemContainingText_shouldPerformItemClickOnList_arrayAdapter() 252 transcript.add("clicked on item " + adapter.getItem(position)); in clickItemContainingText_shouldPerformItemClickOnList_arrayAdapter() 273 ListAdapter adapter = prepareWithListAdapter(); in revalidate_removingAnItemWithoutInvalidating_shouldExplode() local 274 adapter.items.remove(0); in revalidate_removingAnItemWithoutInvalidating_shouldExplode() 280 ListAdapter adapter = prepareWithListAdapter(); in revalidate_addingAnItemWithoutInvalidating_shouldExplode() local 281 adapter.items.add("x"); in revalidate_addingAnItemWithoutInvalidating_shouldExplode() 287 ListAdapter adapter = prepareWithListAdapter(); in revalidate_changingAnItemWithoutInvalidating_shouldExplode() local 288 adapter.items.remove(2); in revalidate_changingAnItemWithoutInvalidating_shouldExplode() 289 adapter.items.add("x"); in revalidate_changingAnItemWithoutInvalidating_shouldExplode() [all …]
|
/external/libpcap/ |
D | pcap-win32.c | 134 if(PacketGetStats(p->adapter, (struct bpf_stat*)ps) != TRUE){ in pcap_stats_win32() 146 if(PacketSetBuff(p->adapter,dim)==FALSE) in pcap_setbuff_win32() 158 if(PacketSetMode(p->adapter,mode)==FALSE) in pcap_setmode_win32() 171 if(PacketSetMinToCopy(p->adapter, size)==FALSE) in pcap_setmintocopy_win32() 183 return p->adapter; in pcap_getadapter_win32() 209 if(PacketReceivePacket(p->adapter,p->Packet,TRUE)==FALSE){ in pcap_read_win32_npf() 285 unsigned dfp = p->adapter->DagFastProcess; in pcap_read_win32_dag() 291 if(PacketReceivePacket(p->adapter, p->Packet, TRUE)==FALSE){ in pcap_read_win32_dag() 300 header = (dag_record_t*)p->adapter->DagBuffer; in pcap_read_win32_dag() 446 if(PacketSendPacket(p->adapter,PacketToSend,TRUE) == FALSE){ in pcap_inject_win32() [all …]
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/dxgid3d11/ |
D | dxgid3d11.cpp | 34 IDXGIAdapter *adapter, in D3D11CreateDevice() argument 48 if(!adapter) in D3D11CreateDevice() 57 adapter = adapter_to_release.p; in D3D11CreateDevice() 60 hr = adapter->QueryInterface(IID_IGalliumAdapter, (void**)&gallium_adapter); in D3D11CreateDevice() 77 hr = GalliumD3D11DeviceCreate(screen, context, TRUE, flags, adapter, &device); in D3D11CreateDevice() 93 IDXGIAdapter* adapter, in D3D11CreateDeviceAndSwapChain() argument 109 …hr = D3D11CreateDevice(adapter, driver_type, software, flags, feature_levels, num_feature_levels, … in D3D11CreateDeviceAndSwapChain() 116 ComPtr<IDXGIAdapter> adapter; in D3D11CreateDeviceAndSwapChain() local 121 hr = dxgi_device->GetAdapter(&adapter); in D3D11CreateDeviceAndSwapChain() 125 adapter->GetParent(IID_IDXGIFactory, (void**)&factory); in D3D11CreateDeviceAndSwapChain()
|
/external/antlr/antlr-3.4/gunit/src/main/antlr3/org/antlr/gunit/swingui/parsers/ |
D | StGUnit.g | 49 public TestSuiteAdapter adapter ;; 53 : 'gunit' name=id {adapter.setGrammarName($name.text);} 64 {adapter.startRule($parserRule.text);} 66 {adapter.startRule($lexerRule.text);} 70 {adapter.endRule();} 75 {adapter.addTestCase($input.in, $expect.out);} 79 : OK {$out = adapter.createBoolOutput(true);} 80 | FAIL {$out = adapter.createBoolOutput(false);} 81 | 'returns' RETVAL {$out = adapter.createReturnOutput($RETVAL.text);} 82 | '->' output {$out = adapter.createStdOutput($output.text);} [all …]
|
/external/glide/library/src/main/java/com/bumptech/glide/request/animation/ |
D | DrawableCrossFadeViewAnimation.java | 43 public boolean animate(T current, ViewAdapter adapter) { in animate() argument 44 Drawable previous = adapter.getCurrentDrawable(); in animate() 49 adapter.setDrawable(transitionDrawable); in animate() 52 defaultAnimation.animate(current, adapter); in animate()
|
D | ViewPropertyAnimation.java | 37 public boolean animate(R current, ViewAdapter adapter) { in animate() argument 38 final View view = adapter.getView(); in animate() 40 animator.animate(adapter.getView()); in animate()
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/gd3d11/ |
D | d3d11.cpp | 165 GalliumD3D11Screen(pipe_screen* screen, struct pipe_context* immediate_pipe, IDXGIAdapter* adapter) in GalliumD3D11Screen() 166 : GalliumD3D11ScreenBase(adapter), screen(screen), immediate_pipe(immediate_pipe) in GalliumD3D11Screen() 224 …text* context, BOOL owns_context, unsigned creation_flags, IDXGIAdapter* adapter, ID3D11Device** p… in GalliumD3D11DeviceCreate() argument 227 …Device = new GalliumD3D11ScreenImpl<false>(screen, context, owns_context, creation_flags, adapter); in GalliumD3D11DeviceCreate() 229 …pDevice = new GalliumD3D11ScreenImpl<true>(screen, context, owns_context, creation_flags, adapter); in GalliumD3D11DeviceCreate() 233 …text* context, BOOL owns_context, unsigned creation_flags, IDXGIAdapter* adapter, ID3D10Device1** … in GalliumD3D10DeviceCreate1() argument 236 *ppDevice = new GalliumD3D10Device<false>(screen, context, owns_context, creation_flags, adapter); in GalliumD3D10DeviceCreate1() 238 *ppDevice = new GalliumD3D10Device<true>(screen, context, owns_context, creation_flags, adapter); in GalliumD3D10DeviceCreate1()
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/dxgi/src/ |
D | dxgi_native.cpp | 44 static HRESULT GalliumDXGIAdapterCreate(GalliumDXGIFactory* adapter, const struct native_platform* … 45 static HRESULT GalliumDXGIOutputCreate(GalliumDXGIAdapter* adapter, const std::string& name, const … 159 UINT adapter, in EnumAdapters() 162 return EnumAdapters1(adapter, (IDXGIAdapter1**)out_adapter); in EnumAdapters() 166 UINT adapter, in EnumAdapters1() 170 if(adapter == 0) in EnumAdapters1() 179 if(adapter < nscreens) in EnumAdapters1() 182 if(adapter <= def_screen) in EnumAdapters1() 183 --adapter; in EnumAdapters1() 184 *out_adapter = GalliumDXGIAdapterCreate(this, platform, display, adapter); in EnumAdapters1() [all …]
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/model/property/editor/ |
D | TextDisplayPropertyEditor.java | 52 public <T> T getAdapter(Class<T> adapter) { in getAdapter() argument 54 if (adapter == PropertyTooltipProvider.class) { in getAdapter() 55 return adapter.cast(createPropertyTooltipProvider()); in getAdapter() 57 return super.getAdapter(adapter); in getAdapter()
|
D | AbstractTextPropertyEditor.java | 146 public void proposalPopupClosed(ContentProposalAdapter adapter) { in proposalPopupClosed() argument 151 public void proposalPopupOpened(ContentProposalAdapter adapter) { in proposalPopupOpened() argument 174 ImmediateProposalAdapter adapter = new ImmediateProposalAdapter( in activate() local 177 adapter.setFilterStyle(ContentProposalAdapter.FILTER_NONE); in activate() 178 adapter.setProposalAcceptanceStyle(ContentProposalAdapter.PROPOSAL_REPLACE); in activate() 181 adapter.setLabelProvider(labelProvider); in activate()
|
/external/dexmaker/src/mockito/java/com/google/dexmaker/mockito/ |
D | DexmakerMockMaker.java | 74 InvocationHandlerAdapter adapter = getInvocationHandlerAdapter(mock); in resetMock() local 75 adapter.setHandler(newHandler); in resetMock() 79 InvocationHandlerAdapter adapter = getInvocationHandlerAdapter(mock); in getHandler() local 80 return adapter != null ? adapter.getHandler() : null; in getHandler()
|
/external/junit/src/org/junit/internal/runners/ |
D | JUnit38ClassRunner.java | 110 Describable adapter= (Describable) test; in makeDescription() local 111 return adapter.getDescription(); in makeDescription() 129 Filterable adapter= (Filterable) getTest(); in filter() local 130 adapter.filter(filter); in filter() 146 Sortable adapter= (Sortable) getTest(); in sort() local 147 adapter.sort(sorter); in sort()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | main_winsvc.c | 66 TCHAR adapter[TBUFLEN], config[TBUFLEN], ctrl_interface[TBUFLEN]; in read_interface() local 92 buflen = sizeof(adapter); in read_interface() 94 (LPBYTE) adapter, &buflen); in read_interface() 96 adapter[TBUFLEN - 1] = TEXT('\0'); in read_interface() 97 wpa_unicode2ascii_inplace(adapter); in read_interface() 99 (int) buflen, (char *) adapter); in read_interface() 100 iface.ifname = (char *) adapter; in read_interface()
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/model/property/ |
D | ComplexProperty.java | 147 public <T> T getAdapter(Class<T> adapter) { in getAdapter() argument 148 if (adapter == PropertyTooltipProvider.class && m_tooltip != null) { in getAdapter() 149 return adapter.cast(new PropertyTooltipTextProvider() { in getAdapter() 156 return super.getAdapter(adapter); in getAdapter()
|
/external/chromium-trace/trace-viewer/tracing/third_party/vinn/third_party/parse5/ |
D | README.md | 73 …lting tree format. If `treeAdapter` argument is not specified, `default` tree adapter will be used. 85 //Instantiate new parser with default tree adapter 88 //Instantiate new parser with htmlparser2 tree adapter 180 …input tree format. If `treeAdapter` argument is not specified, `default` tree adapter will be used. 191 //Instantiate new serializer with default tree adapter 194 //Instantiate new serializer with htmlparser2 tree adapter 224 ## Custom tree adapter 225 You can create a custom tree adapter so parse5 can work with your own DOM-tree implementation. 226 Just pass your adapter implementation to the parser's constructor as an argument: 240 The custom tree adapter should implement all methods exposed via `exports` in the sample implementa…
|