Home
last modified time | relevance | path

Searched refs:item (Results 1 – 25 of 55) sorted by relevance

123

/cts/tools/dex-tools/src/dex/reader/
DDexFileReader.java189 ProtIdItem item = null; in readProtos() local
191 item = new ProtIdItem(); in readProtos()
192 item.shorty_idx = b.readUInt(); in readProtos()
193 item.return_type_idx = b.readUInt(); in readProtos()
194 item.parameter_off = b.readUInt(); in readProtos()
195 protoIdItems[i] = item; in readProtos()
211 FieldIdItem item = null; in readFields() local
213 item = new FieldIdItem(); in readFields()
214 item.class_idx = b.readUShort(); in readFields()
215 item.type_idx = b.readUShort(); in readFields()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DTvAppVerifierActivity.java64 protected void setButtonEnabled(View item, boolean enabled) { in setButtonEnabled() argument
65 View button = item.findViewById(R.id.user_action_button); in setButtonEnabled()
71 protected void setPassState(View item, boolean passed) { in setPassState() argument
72 ImageView status = (ImageView) item.findViewById(R.id.status); in setPassState()
74 setButtonEnabled(item, false); in setPassState()
86 View item = mInflater.inflate(R.layout.tv_item, mItemList, false); in createUserItem() local
87 TextView instructions = (TextView) item.findViewById(R.id.instructions); in createUserItem()
89 Button button = (Button) item.findViewById(R.id.user_action_button); in createUserItem()
93 mItemList.addView(item); in createUserItem()
94 return item; in createUserItem()
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebHistoryItemTest.java107 WebHistoryItem item = list.getCurrentItem(); in testWebHistoryItem() local
108 assertNotNull(item); in testWebHistoryItem()
109 assertEquals(url, item.getUrl()); in testWebHistoryItem()
110 assertEquals(url, item.getOriginalUrl()); in testWebHistoryItem()
111 assertEquals(TestHtmlConstants.HELLO_WORLD_TITLE, item.getTitle()); in testWebHistoryItem()
113 assertTrue(icon.sameAs(item.getFavicon())); in testWebHistoryItem()
119 item = list.getCurrentItem(); in testWebHistoryItem()
120 assertNotNull(item); in testWebHistoryItem()
121 assertEquals(TestHtmlConstants.BR_TAG_TITLE, item.getTitle()); in testWebHistoryItem()
DWebBackForwardListTest.java100 WebHistoryItem item = list.getItemAtIndex(i); in checkBackForwardList() local
101 if (!url[i].equals(item.getUrl())) { in checkBackForwardList()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DLocationModeTestActivity.java113 View item = mInflater.inflate(R.layout.location_mode_item, mItemList, false); in createUserItem() local
114 TextView instructions = (TextView) item.findViewById(R.id.instructions); in createUserItem()
116 mItemList.addView(item); in createUserItem()
117 return item; in createUserItem()
125 View item = mInflater.inflate(R.layout.location_mode_item, mItemList, false); in createAutoItem() local
126 TextView instructions = (TextView) item.findViewById(R.id.instructions); in createAutoItem()
128 View button = item.findViewById(R.id.launch_settings); in createAutoItem()
130 mItemList.addView(item); in createAutoItem()
131 return item; in createAutoItem()
138 ViewGroup item = (ViewGroup) mItemList.getChildAt(index); in setItemState() local
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DPolicySerializationTestActivity.java110 for (PolicyItem<?> item : mPolicyItems) { in loadPolicy()
111 item.loadExpectedValue(prefs); in loadPolicy()
112 item.loadActualValue(mDevicePolicyManager, mAdmin); in loadPolicy()
113 mAdapter.add(item); in loadPolicy()
121 for (PolicyItem<?> item : mPolicyItems) { in generateRandomPolicy()
122 item.setRandomExpectedValue(random); in generateRandomPolicy()
123 item.resetActualValue(); in generateRandomPolicy()
124 mAdapter.add(item); in generateRandomPolicy()
156 for (PolicyItem<?> item : mPolicyItems) { in handleAddDeviceAdminResult()
157 item.applyExpectedValue(mDevicePolicyManager, admin); in handleAddDeviceAdminResult()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DCAInstallNotificationVerifierActivity.java122 ViewGroup item = (ViewGroup) mItemList.getChildAt(index); in setItemState() local
123 ImageView status = (ImageView) item.findViewById(R.id.ca_notify_status); in setItemState()
125 View button = item.findViewById(R.id.ca_notify_do_something); in setItemState()
132 ViewGroup item = (ViewGroup) mItemList.getChildAt(index); in markItemWaiting() local
133 ImageView status = (ImageView) item.findViewById(R.id.ca_notify_status); in markItemWaiting()
143 View item = mInflater.inflate(R.layout.cainstallnotify_item, mItemList, false); in createUserItem() local
144 TextView instructions = (TextView) item.findViewById(R.id.ca_notify_instructions); in createUserItem()
146 Button button = (Button) item.findViewById(R.id.ca_notify_do_something); in createUserItem()
151 mItemList.addView(item); in createUserItem()
152 return item; in createUserItem()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListAdapter.java348 TestListItem item = getItem(position); in getTestResult() local
349 return mTestResults.containsKey(item.testName) in getTestResult()
350 ? mTestResults.get(item.testName) in getTestResult()
355 TestListItem item = getItem(position); in getTestDetails() local
356 return mTestDetails.containsKey(item.testName) in getTestDetails()
357 ? mTestDetails.get(item.testName) in getTestDetails()
362 TestListItem item = getItem(position); in getReportLog() local
363 return mReportLogs.containsKey(item.testName) in getReportLog()
364 ? mReportLogs.get(item.testName) in getReportLog()
369 for (TestListItem item : mRows) { in allTestsPassed()
[all …]
DArrayTestListAdapter.java36 public void add(TestListItem item) { in add() argument
37 mRows.add(item); in add()
DTestResultsReport.java120 TestListItem item = mAdapter.getItem(i); in getContents() local
121 if (item.isTest()) { in getContents()
123 xml.attribute(null, "title", item.title); in getContents()
124 xml.attribute(null, "class-name", item.testName); in getContents()
DManifestTestListAdapter.java144 public int compare(TestListItem item, TestListItem otherItem) { in getRows()
145 return item.title.compareTo(otherItem.title); in getRows()
192 TestListItem item = TestListItem.newTest(title, testName, intent, requiredFeatures, in getTestsByCategory() local
196 addTestToCategory(testsByCategory, testCategory, item); in getTestsByCategory()
272 String testCategory, TestListItem item) { in addTestToCategory() argument
280 tests.add(item); in addTestToCategory()
DAbstractTestListActivity.java42 TestListItem item = mAdapter.getItem(position); in getIntent() local
43 return item.intent; in getIntent()
DTestListActivity.java114 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
115 return handleMenuItemSelected(item.getItemId()) ? true : super.onOptionsItemSelected(item); in onOptionsItemSelected()
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/
DSinglePaneDetailActivity.java48 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
49 switch (item.getItemId()) { in onOptionsItemSelected()
54 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
DTestItems.java95 private static void addTestItem(TestItem item) { in addTestItem() argument
96 ITEMS.add(item); in addTestItem()
97 ITEM_MAP.put(item.mId, item); in addTestItem()
DTest3DetailFragment.java61 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
64 builder.setMessage(item.getTitle()); in onOptionsItemSelected()
68 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
/cts/tests/app/src/android/app/cts/
DTestDialog.java208 public boolean onMenuItemSelected(int featureId, MenuItem item) { in onMenuItemSelected() argument
210 return super.onMenuItemSelected(featureId, item); in onMenuItemSelected()
246 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
248 switch (item.getItemId()) { in onOptionsItemSelected()
258 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
269 public boolean onContextItemSelected(MenuItem item) { in onContextItemSelected() argument
271 switch (item.getItemId()) { in onContextItemSelected()
277 return super.onContextItemSelected(item); in onContextItemSelected()
DAppStubActivity.java107 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
109 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
131 public boolean onContextItemSelected(MenuItem item){ in onContextItemSelected() argument
133 return super.onContextItemSelected(item); in onContextItemSelected()
DInstrumentationTestActivity.java187 public boolean onMenuItemSelected(int featureId, MenuItem item) { in onMenuItemSelected() argument
188 mMenuID = item.getItemId(); in onMenuItemSelected()
189 return super.onMenuItemSelected(featureId, item); in onMenuItemSelected()
203 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
204 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DInteractiveVerifierActivity.java187 View item = test.view; in markItem() local
188 ImageView status = (ImageView) item.findViewById(R.id.nls_status); in markItem()
189 View button = item.findViewById(R.id.nls_action_button); in markItem()
227 View item = mInflater.inflate(R.layout.nls_item, parent, false); in createUserItem() local
228 TextView instructions = (TextView) item.findViewById(R.id.nls_instructions); in createUserItem()
230 Button button = (Button) item.findViewById(R.id.nls_action_button); in createUserItem()
233 return item; in createUserItem()
237 View item = mInflater.inflate(R.layout.nls_item, parent, false); in createAutoItem() local
238 TextView instructions = (TextView) item.findViewById(R.id.nls_instructions); in createAutoItem()
240 View button = item.findViewById(R.id.nls_action_button); in createAutoItem()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DClipboardManagerTest.java190 private void assertClipItem(ExpectedClipItem expectedItem, Item item) { in assertClipItem() argument
191 assertEquals(expectedItem.mText, item.getText()); in assertClipItem()
193 assertNotNull(item.getIntent()); in assertClipItem()
195 assertNull(item.getIntent()); in assertClipItem()
198 assertEquals(expectedItem.mUri.toString(), item.getUri().toString()); in assertClipItem()
200 assertNull(item.getUri()); in assertClipItem()
/cts/suite/audio_quality/lib/src/task/
DTaskProcess.cpp264 std::vector<android::String8>& item = *(itemTokens.get()); in parseParams() local
265 if (StringUtil::compare(item[0], "id") == 0) { in parseParams()
266 Param param(EId, item[1]); in parseParams()
269 } else if (StringUtil::compare(item[0], "val") == 0) { in parseParams()
270 Param param(EVal, item[1]); in parseParams()
273 } else if (isInput && (StringUtil::compare(item[0], "consti") == 0)) { in parseParams()
274 int64_t value = atoll(item[1].string()); in parseParams()
279 } else if (isInput && (StringUtil::compare(item[0], "constf") == 0)) { in parseParams()
280 double value = atof(item[1].string()); in parseParams()
286 LOGE("unrecognized word %s", item[0].string()); in parseParams()
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DCopyPasteTest.java102 ClipData.Item item = clip.getItemAt(0); in getTextFromClipboard() local
103 if (item == null) { in getTextFromClipboard()
106 CharSequence text = item.getText(); in getTextFromClipboard()
/cts/tests/leanbackjank/app/src/android/cts/jank/leanback/presenter/
DGridItemPresenter.java52 public void onBindViewHolder(ViewHolder viewHolder, Object item) { in onBindViewHolder() argument
53 ((TextView) viewHolder.view).setText((String) item); in onBindViewHolder()
/cts/tests/tests/media/src/android/media/cts/
DMediaSessionTest.java170 QueueItem item = new QueueItem(new MediaDescription.Builder() in testConfigureSession() local
172 queue.add(item); in testConfigureSession()
297 QueueItem item = new QueueItem(new MediaDescription.Builder() in testQueueItem() local
299 assertEquals(TEST_QUEUE_ID, item.getQueueId()); in testQueueItem()
300 assertEquals("media-id", item.getDescription().getMediaId()); in testQueueItem()
301 assertEquals("title", item.getDescription().getTitle()); in testQueueItem()
304 item.writeToParcel(p, 0); in testQueueItem()
307 assertEquals(item.toString(), other.toString()); in testQueueItem()

123