/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
D | TvAppVerifierActivity.java | 60 protected void setButtonEnabled(View item, boolean enabled) { in setButtonEnabled() argument 61 View button = item.findViewById(R.id.user_action_button); in setButtonEnabled() 67 protected void setPassState(View item, boolean passed) { in setPassState() argument 68 ImageView status = (ImageView) item.findViewById(R.id.status); in setPassState() 70 setButtonEnabled(item, false); in setPassState() 82 View item = mInflater.inflate(R.layout.tv_item, mItemList, false); in createUserItem() local 83 TextView instructions = (TextView) item.findViewById(R.id.instructions); in createUserItem() 85 Button button = (Button) item.findViewById(R.id.user_action_button); in createUserItem() 89 mItemList.addView(item); in createUserItem() 90 return item; in createUserItem() [all …]
|
D | MicrophoneDeviceTestActivity.java | 66 for (View item : mInputDeviceItems.keySet()) { in onClick() 67 if (containsButton(item, v)) { in onClick() 68 final List<Object> triple = mInputDeviceItems.get(item); in onClick() 74 setPassState(userAnswer ? item : pairedItem, true); in onClick() 75 setButtonEnabled(userAnswer ? pairedItem : item, false); in onClick() 76 item.setTag(PASS); pairedItem.setTag(PASS); in onClick() 87 setPassState(userAnswer ? item : pairedItem, false); in onClick() 149 private boolean hasPassed(View item) { in hasPassed() argument 150 return (item.getTag() != null) && ((Boolean) item.getTag()) == PASS; in hasPassed() 155 for (View item : mInputDeviceItems.keySet()) { in checkAllPassed() [all …]
|
/cts/tests/tests/slice/src/android/slice/cts/ |
D | SliceBuilderTest.java | 58 SliceItem item = s.getItems().get(0); in testInt() local 59 assertEquals(SliceItem.FORMAT_INT, item.getFormat()); in testInt() 60 assertEquals(0xff121212, item.getInt()); in testInt() 61 assertEquals("subtype", item.getSubType()); in testInt() 62 assertTrue(item.hasHint(Slice.HINT_TITLE)); in testInt() 76 SliceItem item = s.getItems().get(0); in testIcon() local 77 assertEquals(SliceItem.FORMAT_IMAGE, item.getFormat()); in testIcon() 78 assertEquals(i, item.getIcon()); in testIcon() 79 assertEquals("subtype", item.getSubType()); in testIcon() 80 assertTrue(item.hasHint(Slice.HINT_TITLE)); in testIcon() [all …]
|
D | SliceBindingTest.java | 86 SliceItem item = s.getItems().get(0); in testSubSlice() local 87 assertEquals(SliceItem.FORMAT_SLICE, item.getFormat()); in testSubSlice() 88 assertEquals("subslice", item.getSubType()); in testSubSlice() 90 assertTrue(item.getSlice().getUri().toString().startsWith(uri.toString())); in testSubSlice() 91 assertNotEquals(uri, item.getSlice().getUri()); in testSubSlice() 102 SliceItem item = s.getItems().get(0); in testText() local 103 assertEquals(SliceItem.FORMAT_TEXT, item.getFormat()); in testText() 105 assertEquals("Expected text", item.getText()); in testText() 116 SliceItem item = s.getItems().get(0); in testIcon() local 117 assertEquals(SliceItem.FORMAT_IMAGE, item.getFormat()); in testIcon() [all …]
|
D | SliceManagerTest.java | 152 for (SliceItem item : s.getItems()) { in findAction() 153 if (SliceItem.FORMAT_SLICE.equals(item.getFormat())) { in findAction() 154 return findAction(item.getSlice()); in findAction() 156 if (SliceItem.FORMAT_ACTION.equals(item.getFormat())) { in findAction() 157 return item.getAction(); in findAction()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebHistoryItemTest.java | 107 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()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/ |
D | PolicySerializationTestActivity.java | 113 for (PolicyItem<?> item : mPolicyItems) { in loadPolicy() 114 item.loadExpectedValue(prefs); in loadPolicy() 115 item.loadActualValue(mDevicePolicyManager, mAdmin); in loadPolicy() 116 mAdapter.add(item); in loadPolicy() 124 for (PolicyItem<?> item : mPolicyItems) { in generateRandomPolicy() 125 item.setRandomExpectedValue(random); in generateRandomPolicy() 126 item.resetActualValue(); in generateRandomPolicy() 127 mAdapter.add(item); in generateRandomPolicy() 159 for (PolicyItem<?> item : mPolicyItems) { in handleAddDeviceAdminResult() 160 item.applyExpectedValue(mDevicePolicyManager, admin); in handleAddDeviceAdminResult() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | VirtualContainerView.java | 140 final Item item = getItem(id); in autofill() local 141 item.autofill(value.getTextValue()); in autofill() 229 final Item item = mItems.valueAt(i); in onProvideAutofillVirtualStructure() local 230 Log.d(TAG, "Adding new child" + syncMsg + " at index " + index + ": " + item); in onProvideAutofillVirtualStructure() 234 child.setAutofillId(structure.getAutofillId(), item.id); in onProvideAutofillVirtualStructure() 235 child.setDataIsSensitive(item.sensitive); in onProvideAutofillVirtualStructure() 236 if (item.editable) { in onProvideAutofillVirtualStructure() 237 child.setInputType(item.line.inputType); in onProvideAutofillVirtualStructure() 240 child.setClassName(item.className); in onProvideAutofillVirtualStructure() 242 child.setId(1000 + index, packageName, "id", item.resourceId); in onProvideAutofillVirtualStructure() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtilsMatchers.java | 39 protected boolean matchesSafely(List<Integer> item) { in inAscendingOrder() argument 40 int itemCount = item.size(); in inAscendingOrder() 44 int curr = item.get(i); in inAscendingOrder() 45 int next = item.get(i + 1); in inAscendingOrder()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/qstiles/ |
D | InteractiveVerifierActivity.java | 206 View item = test.view; in markItem() local 207 ImageView status = (ImageView) item.findViewById(R.id.tiles_status); in markItem() 208 View buttonPass = item.findViewById(R.id.tiles_action_pass); in markItem() 209 View buttonFail = item.findViewById(R.id.tiles_action_fail); in markItem() 248 View item = mInflater.inflate(R.layout.tiles_item, parent, false); in createUserPassFail() local 249 TextView instructions = (TextView) item.findViewById(R.id.tiles_instructions); in createUserPassFail() 251 return item; in createUserPassFail() 255 View item = mInflater.inflate(R.layout.tiles_item, parent, false); in createAutoItem() local 256 TextView instructions = (TextView) item.findViewById(R.id.tiles_instructions); in createAutoItem() 258 View buttonPass = item.findViewById(R.id.tiles_action_pass); in createAutoItem() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestListAdapter.java | 365 TestListItem item = getItem(position); in getTestResult() local 366 return mTestResults.containsKey(item.testName) in getTestResult() 367 ? mTestResults.get(item.testName) in getTestResult() 372 TestListItem item = getItem(position); in getTestDetails() local 373 return mTestDetails.containsKey(item.testName) in getTestDetails() 374 ? mTestDetails.get(item.testName) in getTestDetails() 379 TestListItem item = getItem(position); in getReportLog() local 380 return mReportLogs.containsKey(item.testName) in getReportLog() 381 ? mReportLogs.get(item.testName) in getReportLog() 386 for (TestListItem item : mRows) { in allTestsPassed() [all …]
|
D | ArrayTestListAdapter.java | 36 public void add(TestListItem item) { in add() argument 37 mRows.add(item); in add()
|
D | ManifestTestListAdapter.java | 151 public int compare(TestListItem item, TestListItem otherItem) { in getRows() 152 return item.title.compareTo(otherItem.title); in getRows() 201 TestListItem item = TestListItem.newTest(title, testName, intent, requiredFeatures, in getTestsByCategory() local 205 addTestToCategory(testsByCategory, testCategory, item); in getTestsByCategory() 294 String testCategory, TestListItem item) { in addTestToCategory() argument 302 tests.add(item); in addTestToCategory()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaBrowserServiceTest.java | 61 for (MediaItem item : children) { 62 assertRootHints(item); 75 for (MediaItem item : children) { 76 assertRootHints(item); 86 public void onItemLoaded(MediaItem item) { 89 assertRootHints(item); 234 private void assertRootHints(MediaItem item) { in assertRootHints() argument 235 Bundle rootHints = item.getDescription().getExtras(); in assertRootHints()
|
D | MediaSessionTest.java | 195 QueueItem item = new QueueItem(new MediaDescription.Builder() in testConfigureSession() local 197 queue.add(item); in testConfigureSession() 511 QueueItem item = new QueueItem(descriptionBuilder.build(), TEST_QUEUE_ID); in testQueueItem() local 512 assertEquals(TEST_QUEUE_ID, item.getQueueId()); in testQueueItem() 513 assertEquals("media-id", item.getDescription().getMediaId()); in testQueueItem() 514 assertEquals("title", item.getDescription().getTitle()); in testQueueItem() 515 assertEquals(0, item.describeContents()); in testQueueItem() 518 assertTrue(item.equals(sameItem)); in testQueueItem() 522 assertFalse(item.equals(differentQueueId)); in testQueueItem() 526 assertFalse(item.equals(differentDescription)); in testQueueItem() [all …]
|
/cts/tests/app/app/src/android/app/stubs/ |
D | TestDialog.java | 208 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()
|
D | AppStubActivity.java | 105 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument 107 return super.onOptionsItemSelected(item); in onOptionsItemSelected() 129 public boolean onContextItemSelected(MenuItem item){ in onContextItemSelected() argument 131 return super.onContextItemSelected(item); in onContextItemSelected()
|
D | InstrumentationTestActivity.java | 192 public boolean onMenuItemSelected(int featureId, MenuItem item) { in onMenuItemSelected() argument 193 mMenuID = item.getItemId(); in onMenuItemSelected() 194 return super.onMenuItemSelected(featureId, item); in onMenuItemSelected() 208 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument 209 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | UserRestrictions.java | 182 final UserRestrictionItem item = findRestrictionItem(restriction); in getRestrictionLabel() local 183 return context.getString(item.label); in getRestrictionLabel() 187 final UserRestrictionItem item = findRestrictionItem(restriction); in getUserAction() local 188 return context.getString(item.userAction); in getUserAction() 192 final UserRestrictionItem item = USER_RESTRICTION_ITEMS.get(restriction); in findRestrictionItem() local 193 if (item == null) { in findRestrictionItem() 196 return item; in findRestrictionItem() 221 final UserRestrictionItem item = USER_RESTRICTION_ITEMS.get(restriction); in getUserRestrictionTestIntent() local 226 .putExtra(PolicyTransparencyTestActivity.EXTRA_TITLE, context.getString(item.label)) in getUserRestrictionTestIntent() 228 item.intentAction); in getUserRestrictionTestIntent()
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskProcess.cpp | 266 std::vector<android::String8>& item = *(itemTokens.get()); in parseParams() local 267 if (StringUtil::compare(item[0], "id") == 0) { in parseParams() 268 Param param(EId, item[1]); in parseParams() 271 } else if (StringUtil::compare(item[0], "val") == 0) { in parseParams() 272 Param param(EVal, item[1]); in parseParams() 275 } else if (isInput && (StringUtil::compare(item[0], "consti") == 0)) { in parseParams() 276 int64_t value = atoll(item[1].string()); in parseParams() 281 } else if (isInput && (StringUtil::compare(item[0], "constf") == 0)) { in parseParams() 282 double value = atof(item[1].string()); in parseParams() 288 LOGE("unrecognized word %s", item[0].string()); in parseParams()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | MenuTestActivity.java | 30 public boolean handleMenuItem(MenuItem item) { in handleMenuItem() argument 31 mMenuItemIdTracker = item.getItemId(); in handleMenuItem()
|
D | MenuTest.java | 220 MenuItem item = mMenu.add(0, 0, 0, "test"); in testGetShortcutModifiers() local 222 item.setShortcut('2', 'a', KeyEvent.META_ALT_ON, in testGetShortcutModifiers() 224 assertEquals('2', item.getNumericShortcut()); in testGetShortcutModifiers() 225 assertEquals(KeyEvent.META_ALT_ON, item.getNumericModifiers()); in testGetShortcutModifiers() 226 assertEquals('a', item.getAlphabeticShortcut()); in testGetShortcutModifiers() 227 assertEquals(KeyEvent.META_CTRL_ON | KeyEvent.META_SHIFT_ON, item.getAlphabeticModifiers()); in testGetShortcutModifiers()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | InteractiveVerifierActivity.java | 209 View item = test.view; in markItem() local 210 ImageView status = (ImageView) item.findViewById(R.id.nls_status); in markItem() 211 View button = item.findViewById(R.id.nls_action_button); in markItem() 249 View item = mInflater.inflate(R.layout.nls_item, parent, false); in createUserItem() local 250 TextView instructions = (TextView) item.findViewById(R.id.nls_instructions); in createUserItem() 252 Button button = (Button) item.findViewById(R.id.nls_action_button); in createUserItem() 255 return item; in createUserItem() 259 View item = mInflater.inflate(R.layout.nls_item, parent, false); in createAutoItem() local 260 TextView instructions = (TextView) item.findViewById(R.id.nls_instructions); in createAutoItem() 262 View button = item.findViewById(R.id.nls_action_button); in createAutoItem() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/mtp/ |
D | MtpHostTestActivity.java | 153 for (final TestItem item : mItems) { in onCreate() 154 itemsView.addView(item.view); in onCreate() 175 final TestItem item = mStep < mItems.size() ? mItems.get(mStep) : null; in handleMessage() 179 if (item == null) { in handleMessage() 183 item.setEnabled(true); in handleMessage() 216 item.setState(ITEM_STATE_PASS); in handleMessage() 217 item.setEnabled(false); in handleMessage() 223 item.setState(ITEM_STATE_FAIL); in handleMessage() 224 item.setEnabled(false); in handleMessage()
|
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
D | CopyPasteTest.java | 89 ClipData.Item item = clip.getItemAt(0); in getTextFromClipboard() local 90 if (item == null) { in getTextFromClipboard() 93 CharSequence text = item.getText(); in getTextFromClipboard()
|