/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() 83 View item = mInflater.inflate(R.layout.tv_item, mItemList, false); in createAndAttachUserItem() local 84 TextView instructions = (TextView) item.findViewById(R.id.instructions); in createAndAttachUserItem() 86 Button button = (Button) item.findViewById(R.id.user_action_button); in createAndAttachUserItem() 90 mItemList.addView(item); in createAndAttachUserItem() 91 return item; in createAndAttachUserItem() [all …]
|
D | MicrophoneDeviceTestActivity.java | 65 for (View item : mInputDeviceItems.keySet()) { in onClick() 66 if (containsButton(item, v)) { in onClick() 67 final List<Object> triple = mInputDeviceItems.get(item); in onClick() 73 setPassState(userAnswer ? item : pairedItem, true); in onClick() 74 setButtonEnabled(userAnswer ? pairedItem : item, false); in onClick() 75 item.setTag(PASS); pairedItem.setTag(PASS); in onClick() 86 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 …]
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | TestImsConfig.java | 34 public int setConfig(int item, int value) { in setConfig() argument 35 mIntHashMap.put(item, value); in setConfig() 40 public int setConfig(int item, String value) { in setConfig() argument 41 mStringHashMap.put(item, value); in setConfig() 46 public int getConfigInt(int item) { in getConfigInt() argument 47 Integer result = mIntHashMap.get(item); in getConfigInt() 52 public String getConfigString(int item) { in getConfigString() argument 53 return mStringHashMap.get(item); in getConfigString()
|
/cts/tests/security/src/android/keystore/cts/ |
D | CborUtils.java | 44 DataItem item = map.get(CborUtils.toNumber(index)); in getInt() local 45 return ((Number) item).getValue().intValue(); in getInt() 49 DataItem item = map.get(index); in getInt() local 50 return ((Number) item).getValue().intValue(); in getInt() 54 DataItem item = map.get(index); in getLong() local 55 return ((Number) item).getValue().longValue(); in getLong() 61 for (DataItem item : array.getDataItems()) { in getIntSet() 62 result.add(((Number) item).getValue().intValue()); in getIntSet() 78 for (DataItem item : array.getDataItems()) { in getBooleanList() 79 SimpleValueType value = ((SimpleValue) item).getSimpleValueType(); in getBooleanList() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaMetricsTest.java | 42 final MediaMetrics.Item item = new MediaMetrics.Item(key); in testBasicItem() local 44 item.putInt("int", (int) 1) in testBasicItem() 52 final Bundle bundle = item.toBundle(); in testBasicItem() 75 final MediaMetrics.Item item = new MediaMetrics.Item( in testBigItem() local 78 item.putInt("int", (int) 1) in testBigItem() 85 item.putInt(i.toString(), i); in testBigItem() 91 final Bundle bundle = item.toBundle(); in testBigItem() 111 item.clear(); // removes properties. in testBigItem() 112 item.putInt("value", (int) 100); in testBigItem() 114 final Bundle bundle2 = item.toBundle(); in testBigItem() [all …]
|
/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 | 114 for (PolicyItem<?> item : mPolicyItems) { in loadPolicy() 115 item.loadExpectedValue(prefs); in loadPolicy() 116 item.loadActualValue(mDevicePolicyManager, mAdmin); in loadPolicy() 117 Log.d(TAG, "loading " + item); in loadPolicy() 118 mAdapter.add(item); in loadPolicy() 128 for (PolicyItem<?> item : mPolicyItems) { in generateRandomPolicy() 129 Log.d(TAG, "Adding " + item); in generateRandomPolicy() 130 item.setRandomExpectedValue(random); in generateRandomPolicy() 131 item.resetActualValue(); in generateRandomPolicy() 132 mAdapter.add(item); in generateRandomPolicy() [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/ |
D | TestListAdapter.java | 468 TestListItem item = getItem(position); in getTestResult() local 469 return mTestResults.containsKey(item.testName) in getTestResult() 470 ? mTestResults.get(item.testName) in getTestResult() 475 TestListItem item = getItem(position); in getTestDetails() local 476 return mTestDetails.containsKey(item.testName) in getTestDetails() 477 ? mTestDetails.get(item.testName) in getTestDetails() 482 TestListItem item = getItem(position); in getReportLog() local 483 return mReportLogs.containsKey(item.testName) in getReportLog() 484 ? mReportLogs.get(item.testName) in getReportLog() 495 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()
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ |
D | Asserts.java | 45 ClipData.Item item = clip.getItemAt(i); in assertAccess() local 46 Uri uri = item.getUri(); in assertAccess() 50 Intent intent = item.getIntent(); in assertAccess() 99 ClipData.Item item = clip.getItemAt(i); in assertReadingClipNotAllowed() local 100 Uri uri = item.getUri(); in assertReadingClipNotAllowed() 104 Intent intent = item.getIntent(); in assertReadingClipNotAllowed() 203 ClipData.Item item = clip.getItemAt(i); in assertWritingClipNotAllowed() local 204 Uri uri = item.getUri(); in assertWritingClipNotAllowed() 208 Intent intent = item.getIntent(); in assertWritingClipNotAllowed() 223 ClipData.Item item = clip.getItemAt(i); in assertReadingClipAllowed() local [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/ |
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/content/HelloWorldApp/src7/com/example/helloworld/ |
D | MainActivity.java | 45 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument 49 int id = item.getItemId(); in onOptionsItemSelected() 56 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
|
/cts/tests/tests/content/HelloWorldApp/src5/com/example/helloworld/ |
D | MainActivity.java | 45 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument 49 int id = item.getItemId(); in onOptionsItemSelected() 56 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
|
/cts/tests/tests/content/HelloWorldApp/src_shell/com/android/shell/ |
D | MainActivity.java | 45 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument 49 int id = item.getItemId(); in onOptionsItemSelected() 56 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
|
/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/view/src/android/view/cts/ |
D | MenuTestActivity.java | 30 public boolean handleMenuItem(MenuItem item) { in handleMenuItem() argument 31 mMenuItemIdTracker = item.getItemId(); in handleMenuItem()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | InteractiveVerifierActivity.java | 225 View item = test.view; in markItem() local 226 ImageView status = item.findViewById(R.id.nls_status); in markItem() 262 View item = mInflater.inflate(R.layout.nls_item, parent, false); in createUserItem() local 263 TextView instructions = item.findViewById(R.id.nls_instructions); in createUserItem() 265 Button button = item.findViewById(R.id.nls_action_button); in createUserItem() 268 return item; in createUserItem() 272 ViewGroup item = (ViewGroup) mInflater.inflate(R.layout.nls_item, parent, false); in createAutoItem() local 273 TextView instructions = item.findViewById(R.id.nls_instructions); in createAutoItem() 275 View button = item.findViewById(R.id.nls_action_button); in createAutoItem() 277 return item; in createAutoItem() [all …]
|
/cts/tests/app/app/src/android/app/stubs/ |
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 | TestDialog.java | 211 public boolean onMenuItemSelected(int featureId, MenuItem item) { in onMenuItemSelected() argument 213 return super.onMenuItemSelected(featureId, item); in onMenuItemSelected() 249 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument 251 switch (item.getItemId()) { in onOptionsItemSelected() 261 return super.onOptionsItemSelected(item); in onOptionsItemSelected() 272 public boolean onContextItemSelected(MenuItem item) { in onContextItemSelected() argument 274 switch (item.getItemId()) { in onContextItemSelected() 280 return super.onContextItemSelected(item); in onContextItemSelected()
|
/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/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()
|
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/util/ |
D | IntentsResolutionHelper.java | 80 public boolean matches(Object item) { in activity() argument 81 if (item == null) { in activity() 84 ResolveInfo info = (ResolveInfo) item; in activity()
|