/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
D | TvAppVerifierActivity.java | 60 public static void setButtonEnabled(View item, boolean enabled) { in setButtonEnabled() argument 61 View button = item.findViewById(R.id.user_action_button); in setButtonEnabled() 67 public static 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 | 92 SliceItem item = s.getItems().get(0); in testSubSlice() local 93 assertEquals(SliceItem.FORMAT_SLICE, item.getFormat()); in testSubSlice() 94 assertEquals("subslice", item.getSubType()); in testSubSlice() 96 assertTrue(item.getSlice().getUri().toString().startsWith(uri.toString())); in testSubSlice() 97 assertNotEquals(uri, item.getSlice().getUri()); in testSubSlice() 109 SliceItem item = s.getItems().get(0); in testText() local 110 assertEquals(SliceItem.FORMAT_TEXT, item.getFormat()); in testText() 112 assertEquals("Expected text", item.getText()); in testText() 124 SliceItem item = s.getItems().get(0); in testIcon() local 125 assertEquals(SliceItem.FORMAT_IMAGE, item.getFormat()); in testIcon() [all …]
|
D | SliceManagerTest.java | 165 for (SliceItem item : s.getItems()) { in findAction() 166 if (SliceItem.FORMAT_SLICE.equals(item.getFormat())) { in findAction() 167 return findAction(item.getSlice()); in findAction() 169 if (SliceItem.FORMAT_ACTION.equals(item.getFormat())) { in findAction() 170 return item.getAction(); in findAction()
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | TestImsConfig.java | 29 public int setConfig(int item, int value) { in setConfig() argument 30 mIntHashMap.put(item, value); in setConfig() 35 public int setConfig(int item, String value) { in setConfig() argument 36 mStringHashMap.put(item, value); in setConfig() 41 public int getConfigInt(int item) { in getConfigInt() argument 42 Integer result = mIntHashMap.get(item); in getConfigInt() 47 public String getConfigString(int item) { in getConfigString() argument 48 return mStringHashMap.get(item); in getConfigString() 53 int item = isCompressed ? ImsUtils.ITEM_COMPRESSED : ImsUtils.ITEM_NON_COMPRESSED; in notifyRcsAutoConfigurationReceived() local 54 setConfig(item, new String(content)); in notifyRcsAutoConfigurationReceived()
|
/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/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestListAdapter.java | 386 TestListItem item = getItem(position); in getTestResult() local 387 return mTestResults.containsKey(item.testName) in getTestResult() 388 ? mTestResults.get(item.testName) in getTestResult() 393 TestListItem item = getItem(position); in getTestDetails() local 394 return mTestDetails.containsKey(item.testName) in getTestDetails() 395 ? mTestDetails.get(item.testName) in getTestDetails() 400 TestListItem item = getItem(position); in getReportLog() local 401 return mReportLogs.containsKey(item.testName) in getReportLog() 402 ? mReportLogs.get(item.testName) in getReportLog() 413 TestListItem item = getItem(position); in getHistoryCollection() local [all …]
|
D | ArrayTestListAdapter.java | 36 public void add(TestListItem item) { in add() argument 37 mRows.add(item); in add()
|
D | ManifestTestListAdapter.java | 156 Collections.sort(tests, Comparator.comparing(item -> item.title)); in getRows() 202 TestListItem item = TestListItem.newTest(title, testName, intent, requiredFeatures, in getTestsByCategory() local 206 addTestToCategory(testsByCategory, testCategory, item); in getTestsByCategory() 295 String testCategory, TestListItem item) { in addTestToCategory() argument 303 tests.add(item); in addTestToCategory()
|
/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/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/tests/tests/media/src/android/media/cts/ |
D | MediaBrowserServiceTest.java | 62 for (MediaItem item : children) { 63 assertRootHints(item); 76 for (MediaItem item : children) { 77 assertRootHints(item); 87 public void onItemLoaded(MediaItem item) { 90 assertRootHints(item); 235 private void assertRootHints(MediaItem item) { in assertRootHints() argument 236 Bundle rootHints = item.getDescription().getExtras(); in assertRootHints()
|
D | MediaSessionTest.java | 196 QueueItem item = new QueueItem(new MediaDescription.Builder() in testConfigureSession() local 198 queue.add(item); in testConfigureSession() 512 QueueItem item = new QueueItem(descriptionBuilder.build(), TEST_QUEUE_ID); in testQueueItem() local 513 assertEquals(TEST_QUEUE_ID, item.getQueueId()); in testQueueItem() 514 assertEquals("media-id", item.getDescription().getMediaId()); in testQueueItem() 515 assertEquals("title", item.getDescription().getTitle()); in testQueueItem() 516 assertEquals(0, item.describeContents()); in testQueueItem() 519 assertTrue(item.equals(sameItem)); in testQueueItem() 523 assertFalse(item.equals(differentQueueId)); in testQueueItem() 527 assertFalse(item.equals(differentDescription)); in testQueueItem() [all …]
|
/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/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/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/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/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()
|
/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()
|