/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityNodeInfoTest.java | 93 AccessibilityNodeInfo info = AccessibilityNodeInfo.obtain(); in testDescribeContents() local 95 info.describeContents()); in testDescribeContents() 96 fullyPopulateAccessibilityNodeInfo(info); in testDescribeContents() 98 info.describeContents()); in testDescribeContents() 110 AccessibilityNodeInfo info = AccessibilityNodeInfo.obtain(); in testAddActions() local 111 info.addAction(AccessibilityNodeInfo.ACTION_FOCUS); in testAddActions() 112 info.addAction(AccessibilityNodeInfo.ACTION_CLEAR_FOCUS); in testAddActions() 114 info.addAction(customAction); in testAddActions() 117 assertSame(info.getActions(), (AccessibilityNodeInfo.ACTION_FOCUS in testAddActions() 123 assertEquals(info.getActionList(), allActions); in testAddActions() [all …]
|
/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
D | EditorInfoTest.java | 33 EditorInfo info = new EditorInfo(); in testEditorInfo() local 35 info.actionId = 1; in testEditorInfo() 36 info.actionLabel = "actionLabel"; in testEditorInfo() 37 info.fieldId = 2; in testEditorInfo() 38 info.fieldName = "fieldName"; in testEditorInfo() 39 info.hintText = "hintText"; in testEditorInfo() 40 info.imeOptions = EditorInfo.IME_FLAG_NO_ENTER_ACTION; in testEditorInfo() 41 info.initialCapsMode = TextUtils.CAP_MODE_CHARACTERS; in testEditorInfo() 42 info.initialSelEnd = 10; in testEditorInfo() 43 info.initialSelStart = 0; in testEditorInfo() [all …]
|
D | InputContentInfoTest.java | 32 InputContentInfo info = new InputContentInfo( in testInputContentInfo() local 37 assertEquals(Uri.parse("content://com.example/path"), info.getContentUri()); in testInputContentInfo() 38 assertEquals(1, info.getDescription().getMimeTypeCount()); in testInputContentInfo() 39 assertEquals("image/png", info.getDescription().getMimeType(0)); in testInputContentInfo() 40 assertEquals("sample content", info.getDescription().getLabel()); in testInputContentInfo() 41 assertEquals(Uri.parse("https://example.com"), info.getLinkUri()); in testInputContentInfo() 42 assertEquals(0, info.describeContents()); in testInputContentInfo() 45 info.writeToParcel(p, 0); in testInputContentInfo() 50 assertEquals(info.getContentUri(), targetInfo.getContentUri()); in testInputContentInfo() 51 assertEquals(info.getDescription().getMimeTypeCount(), in testInputContentInfo() [all …]
|
D | CompletionInfoTest.java | 32 CompletionInfo info = new CompletionInfo(ID, POSITION, TEXT, LABEL); in testCompletionInfo() local 33 assertCompletionInfo(info); in testCompletionInfo() 35 assertEquals(0, info.describeContents()); in testCompletionInfo() 36 assertNotNull(info.toString()); in testCompletionInfo() 39 info.writeToParcel(p, 0); in testCompletionInfo() 46 private void assertCompletionInfo(CompletionInfo info) { in assertCompletionInfo() argument 47 assertEquals(ID, info.getId()); in assertCompletionInfo() 48 assertEquals(POSITION, info.getPosition()); in assertCompletionInfo() 49 assertEquals(TEXT, info.getText().toString()); in assertCompletionInfo() 50 assertEquals(LABEL, info.getLabel().toString()); in assertCompletionInfo()
|
/cts/tests/admin/src/android/admin/cts/ |
D | DeviceAdminInfoTest.java | 62 DeviceAdminInfo info = new DeviceAdminInfo(mContext, resolveInfo); in testDeviceAdminInfo() local 63 assertEquals(mComponent, info.getComponent()); in testDeviceAdminInfo() 64 assertEquals(mComponent.getPackageName(), info.getPackageName()); in testDeviceAdminInfo() 65 assertEquals(mComponent.getClassName(), info.getReceiverName()); in testDeviceAdminInfo() 67 assertTrue(info.usesPolicy(DeviceAdminInfo.USES_POLICY_FORCE_LOCK)); in testDeviceAdminInfo() 68 assertTrue(info.usesPolicy(DeviceAdminInfo.USES_POLICY_LIMIT_PASSWORD)); in testDeviceAdminInfo() 69 assertTrue(info.usesPolicy(DeviceAdminInfo.USES_POLICY_RESET_PASSWORD)); in testDeviceAdminInfo() 70 assertTrue(info.usesPolicy(DeviceAdminInfo.USES_POLICY_WATCH_LOGIN)); in testDeviceAdminInfo() 71 assertTrue(info.usesPolicy(DeviceAdminInfo.USES_POLICY_WIPE_DATA)); in testDeviceAdminInfo() 74 info.getTagForPolicy(DeviceAdminInfo.USES_POLICY_FORCE_LOCK)); in testDeviceAdminInfo() [all …]
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvTrackInfoTest.java | 34 final TvTrackInfo info = new TvTrackInfo.Builder(TvTrackInfo.TYPE_AUDIO, "id_audio") in testAudioTrackInfoOp() local 40 assertEquals(TvTrackInfo.TYPE_AUDIO, info.getType()); in testAudioTrackInfoOp() 41 assertEquals("id_audio", info.getId()); in testAudioTrackInfoOp() 42 assertEquals(2, info.getAudioChannelCount()); in testAudioTrackInfoOp() 43 assertEquals(48000, info.getAudioSampleRate()); in testAudioTrackInfoOp() 44 assertEquals("eng", info.getLanguage()); in testAudioTrackInfoOp() 45 assertEquals(bundle.get("testTrue"), info.getExtra().get("testTrue")); in testAudioTrackInfoOp() 46 assertEquals(0, info.describeContents()); in testAudioTrackInfoOp() 50 info.writeToParcel(p, 0); in testAudioTrackInfoOp() 69 final TvTrackInfo info = new TvTrackInfo.Builder(TvTrackInfo.TYPE_VIDEO, "id_video") in testVideoTrackInfoOp() local [all …]
|
D | BundledTvInputServiceTest.java | 102 for (TvInputInfo info : mManager.getTvInputList()) { in setUp() 103 if (info.isPassthroughInput()) { in setUp() 104 mPassthroughInputList.add(info); in setUp() 134 for (final TvInputInfo info : mPassthroughInputList) { in testTune() 135 mCallback.mVideoUnavailableReasonMap.remove(info.getId()); in testTune() 139 mTvView.tune(info.getId(), in testTune() 140 TvContract.buildChannelUriForPassthroughInput(info.getId())); in testTune() 147 Integer reason = mCallback.getVideoUnavailableReason(info.getId()); in testTune() 165 final TvInputInfo info = in testTuneStress() local 167 mCallback.mVideoUnavailableReasonMap.remove(info.getId()); in testTuneStress() [all …]
|
D | TvInputManagerTest.java | 57 for (TvInputInfo info : list) { in getInfoForClassName() 58 if (info.getServiceInfo().name.equals(name)) { in getInfoForClassName() 59 return info; in getInfoForClassName() 224 TvInputInfo info = mCallback.getLastUpdatedTvInputInfo(); in testTvInputInfoUpdated() local 225 return info != null && info.getTunerCount() == 10 && info.canRecord(); in testTvInputInfoUpdated() 233 TvInputInfo info = mCallback.getLastUpdatedTvInputInfo(); in testTvInputInfoUpdated() local 234 return info != null && info.getTunerCount() == 1 && !info.canRecord(); in testTvInputInfoUpdated() 263 public synchronized void onTvInputInfoUpdated(TvInputInfo info) { in onTvInputInfoUpdated() argument 264 mLastUpdatedTvInputInfo = info; in onTvInputInfoUpdated()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | KeyboardShortcutInfoTest.java | 19 KeyboardShortcutInfo info = new KeyboardShortcutInfo( in testCharacterConstructor() local 21 assertNotNull(info); in testCharacterConstructor() 22 assertEquals(TEST_LABEL, info.getLabel()); in testCharacterConstructor() 23 assertEquals(TEST_BASE_CHARACTER, info.getBaseCharacter()); in testCharacterConstructor() 24 assertEquals(KeyEvent.KEYCODE_UNKNOWN, info.getKeycode()); in testCharacterConstructor() 25 assertEquals(TEST_MODIFIERS, info.getModifiers()); in testCharacterConstructor() 26 assertEquals(0, info.describeContents()); in testCharacterConstructor() 30 KeyboardShortcutInfo info = new KeyboardShortcutInfo( in testKeycodeConstructor() local 32 assertNotNull(info); in testKeycodeConstructor() 33 assertEquals(TEST_LABEL, info.getLabel()); in testKeycodeConstructor() [all …]
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyInfoTest.java | 61 KeyInfo info = keyFactory.getKeySpec(key, KeyInfo.class); in testImmutabilityViaGetterReturnValues() local 63 Date originalKeyValidityStartDate = (Date) info.getKeyValidityStart().clone(); in testImmutabilityViaGetterReturnValues() 64 info.getKeyValidityStart().setTime(1234567890L); in testImmutabilityViaGetterReturnValues() 65 assertEquals(originalKeyValidityStartDate, info.getKeyValidityStart()); in testImmutabilityViaGetterReturnValues() 68 (Date) info.getKeyValidityForOriginationEnd().clone(); in testImmutabilityViaGetterReturnValues() 69 info.getKeyValidityForOriginationEnd().setTime(1234567890L); in testImmutabilityViaGetterReturnValues() 71 info.getKeyValidityForOriginationEnd()); in testImmutabilityViaGetterReturnValues() 74 (Date) info.getKeyValidityForConsumptionEnd().clone(); in testImmutabilityViaGetterReturnValues() 75 info.getKeyValidityForConsumptionEnd().setTime(1234567890L); in testImmutabilityViaGetterReturnValues() 77 info.getKeyValidityForConsumptionEnd()); in testImmutabilityViaGetterReturnValues() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ApplicationInfoTest.java | 42 ApplicationInfo info = new ApplicationInfo(); in testConstructor() local 45 info.packageName = mPackageName; in testConstructor() 46 ApplicationInfo copy = new ApplicationInfo(info); in testConstructor() 47 assertEquals(info.packageName, copy.packageName); in testConstructor() 57 ApplicationInfo info = ApplicationInfo.CREATOR.createFromParcel(p); in testWriteToParcel() local 58 assertEquals(mApplicationInfo.taskAffinity, info.taskAffinity); in testWriteToParcel() 59 assertEquals(mApplicationInfo.permission, info.permission); in testWriteToParcel() 60 assertEquals(mApplicationInfo.processName, info.processName); in testWriteToParcel() 61 assertEquals(mApplicationInfo.className, info.className); in testWriteToParcel() 62 assertEquals(mApplicationInfo.theme, info.theme); in testWriteToParcel() [all …]
|
D | ActivityInfoTest.java | 38 ActivityInfo info = new ActivityInfo(); in testConstructor() local 39 new ActivityInfo(info); in testConstructor() 58 ActivityInfo info = ActivityInfo.CREATOR.createFromParcel(p); in testWriteToParcel() local 59 assertEquals(mActivityInfo.theme, info.theme); in testWriteToParcel() 60 assertEquals(mActivityInfo.launchMode, info.launchMode); in testWriteToParcel() 61 assertEquals(mActivityInfo.permission, info.permission); in testWriteToParcel() 62 assertEquals(mActivityInfo.taskAffinity, info.taskAffinity); in testWriteToParcel() 63 assertEquals(mActivityInfo.targetActivity, info.targetActivity); in testWriteToParcel() 64 assertEquals(mActivityInfo.flags, info.flags); in testWriteToParcel() 65 assertEquals(mActivityInfo.screenOrientation, info.screenOrientation); in testWriteToParcel() [all …]
|
/cts/tests/tests/drm/src/android/drm/cts/ |
D | DrmSupportInfoTest.java | 92 DrmSupportInfo info = new DrmSupportInfo(); in checkSetAndGetDescription() local 93 info.setDescription(description); in checkSetAndGetDescription() 94 assertEquals(info.getDescriprition(), description); in checkSetAndGetDescription() 98 DrmSupportInfo info = new DrmSupportInfo(); in checkSetInvalidDescription() local 100 info.setDescription(description); in checkSetInvalidDescription() 108 DrmSupportInfo info = new DrmSupportInfo(); in checkAddInvalidFileSuffix() local 110 info.addFileSuffix(fileSuffix); in checkAddInvalidFileSuffix() 111 info = null; in checkAddInvalidFileSuffix() 119 DrmSupportInfo info = new DrmSupportInfo(); in checkAddValidFileSuffix() local 120 info.addFileSuffix(fileSuffix); in checkAddValidFileSuffix() [all …]
|
D | DrmInfoTest.java | 82 DrmInfo info = new DrmInfo(DEFAULT_TYPE, DEFAULT_DATA, DEFAULT_MIME); in testPutAndGetKeys() local 86 info.put(key, attributes.get(key)); in testPutAndGetKeys() 90 Iterator<String> infoKeys = info.keyIterator(); in testPutAndGetKeys() 93 assertEquals(info.get(key), attributes.get(key)); in testPutAndGetKeys() 99 assertEquals(info.get(key), attributes.get(key)); in testPutAndGetKeys() 103 Iterator<Object> iterator = info.iterator(); in testPutAndGetKeys() 113 DrmInfo info = new DrmInfo(DEFAULT_TYPE, data, DEFAULT_MIME); in checkInvalidData() local 122 DrmInfo info = new DrmInfo(DEFAULT_TYPE, DEFAULT_DATA, mimeType); in checkInvalidMimeType() local 130 DrmInfo info = new DrmInfo(DEFAULT_TYPE, data, DEFAULT_MIME); in checkGetData() local 131 assertEquals(info.getData(), data); in checkGetData() [all …]
|
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/result/ |
D | DeviceInfoResultTest.java | 100 DeviceInfoResult info = new DeviceInfoResult(); in testPopulateMetrics_combinedSerial() local 102 addMetric(DeviceInfoConstants.PROCESSES, "proc", info); in testPopulateMetrics_combinedSerial() 103 addMetric(DeviceInfoConstants.SERIAL_NUMBER, "device1", info); in testPopulateMetrics_combinedSerial() 105 assertEquals("device1", info.getMetrics().get( in testPopulateMetrics_combinedSerial() 108 addMetric(DeviceInfoConstants.SERIAL_NUMBER, "device1", info); in testPopulateMetrics_combinedSerial() 110 assertEquals("device1", info.getMetrics().get( in testPopulateMetrics_combinedSerial() 113 addMetric(DeviceInfoConstants.SERIAL_NUMBER, "device2", info); in testPopulateMetrics_combinedSerial() 114 assertEquals("device1,device2", info.getMetrics().get( in testPopulateMetrics_combinedSerial() 122 DeviceInfoResult info = new DeviceInfoResult(); in testPopulateMetrics_verify() local 123 addMetric(DeviceInfoConstants.BUILD_FINGERPRINT, "fingerprint1", info); in testPopulateMetrics_verify() [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | SystemUtil.java | 31 final MemoryInfo info = new MemoryInfo(); in getFreeMemory() local 32 ((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryInfo(info); in getFreeMemory() 33 return info.availMem; in getFreeMemory() 37 final MemoryInfo info = new MemoryInfo(); in getTotalMemory() local 38 ((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryInfo(info); in getTotalMemory() 39 return info.totalMem; in getTotalMemory()
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarPackageManagerTest.java | 72 for (PackageInfo info : packages) { in testSystemActivitiesAllowed() 73 if (info.applicationInfo == null) { in testSystemActivitiesAllowed() 76 if ((info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0 || in testSystemActivitiesAllowed() 77 ((info.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0)) { in testSystemActivitiesAllowed() 79 Bundle metaData = info.applicationInfo.metaData; in testSystemActivitiesAllowed() 84 if (info.activities != null && info.activities.length > 0) { in testSystemActivitiesAllowed() 85 String activity = info.activities[0].name; in testSystemActivitiesAllowed() 86 String packageName = info.packageName; in testSystemActivitiesAllowed()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioTrackSurroundTest.java | 105 for (AudioDeviceInfo info : infos) { in scanDevicesForEncodings() 106 log(MTAG, "scanning devices, name = " + info.getProductName() in scanDevicesForEncodings() 107 + ", id = " + info.getId() in scanDevicesForEncodings() 108 + ", " + (info.isSink() ? "sink" : "source") in scanDevicesForEncodings() 109 + ", type = " + info.getType() in scanDevicesForEncodings() 112 for (int encoding : info.getEncodings()) { in scanDevicesForEncodings() 118 for (int rate : info.getSampleRates()) { in scanDevicesForEncodings() 123 if (info.isSink()) { in scanDevicesForEncodings() 124 for (int encoding : info.getEncodings()) { in scanDevicesForEncodings() 127 mInfoPCM16 = info; in scanDevicesForEncodings() [all …]
|
D | MediaSessionTest.java | 253 MediaController.PlaybackInfo info = null; in testPlaybackToLocalAndRemote() local 258 info = mCallback.mPlaybackInfo; in testPlaybackToLocalAndRemote() 259 if (info != null && info.getCurrentVolume() == TEST_CURRENT_VOLUME in testPlaybackToLocalAndRemote() 260 && info.getMaxVolume() == TEST_MAX_VOLUME in testPlaybackToLocalAndRemote() 261 && info.getVolumeControl() == VolumeProvider.VOLUME_CONTROL_FIXED in testPlaybackToLocalAndRemote() 262 && info.getPlaybackType() in testPlaybackToLocalAndRemote() 267 assertNotNull(info); in testPlaybackToLocalAndRemote() 268 assertEquals(MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE, info.getPlaybackType()); in testPlaybackToLocalAndRemote() 269 assertEquals(TEST_MAX_VOLUME, info.getMaxVolume()); in testPlaybackToLocalAndRemote() 270 assertEquals(TEST_CURRENT_VOLUME, info.getCurrentVolume()); in testPlaybackToLocalAndRemote() [all …]
|
D | MediaCodecCapabilitiesTest.java | 328 for (MediaCodecInfo info : mcl.getCodecInfos()) { in supports() 329 if (isEncoder != info.isEncoder()) { in supports() 333 CodecCapabilities caps = info.getCapabilitiesForType(mime); in supports() 374 for (MediaCodecInfo info : mAllInfos) { in testHaveAdaptiveVideoDecoderForAllSupportedFormats() 375 if (info.isEncoder()) { in testHaveAdaptiveVideoDecoderForAllSupportedFormats() 378 for (String mime : info.getSupportedTypes()) { in testHaveAdaptiveVideoDecoderForAllSupportedFormats() 406 for (MediaCodecInfo info : mAllInfos) { in testAllVideoDecodersAreAdaptive() 407 if (info.isEncoder()) { in testAllVideoDecodersAreAdaptive() 410 for (String mime : info.getSupportedTypes()) { in testAllVideoDecodersAreAdaptive() 417 CodecCapabilities caps = info.getCapabilitiesForType(mime); in testAllVideoDecodersAreAdaptive() [all …]
|
D | ResourceManagerTestActivityBase.java | 51 MediaCodec codec, int index, MediaCodec.BufferInfo info) { in onOutputBufferAvailable() argument 88 for (MediaCodecInfo info : mcl.getCodecInfos()) { in getTestCodecInfo() 89 if (info.isEncoder() != isEncoder) { in getTestCodecInfo() 94 caps = info.getCapabilitiesForType(MIME); in getTestCodecInfo() 101 Log.d(TAG, "securePlayback " + securePlayback + " will use " + info.getName()); in getTestCodecInfo() 103 Log.d(TAG, "securePlayback " + securePlayback + " skip " + info.getName()); in getTestCodecInfo() 110 return info; in getTestCodecInfo() 128 MediaCodecInfo info = getTestCodecInfo(securePlayback); in allocateCodecs() local 129 if (info != null) { in allocateCodecs() 130 allocateCodecs(max, info, securePlayback); in allocateCodecs() [all …]
|
/cts/libs/deviceutil/src/android/cts/util/ |
D | SystemUtil.java | 36 MemoryInfo info = new MemoryInfo(); in getFreeMemory() local 38 activityManager.getMemoryInfo(info); in getFreeMemory() 39 return info.availMem; in getFreeMemory() 43 MemoryInfo info = new MemoryInfo(); in getTotalMemory() local 45 activityManager.getMemoryInfo(info); in getTotalMemory() 46 return info.totalMem; // TODO totalMem N/A in ICS. in getTotalMemory()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | MediaDeviceInfo.java | 43 MediaCodecInfo info = MediaCodecList.getCodecInfoAt(i); in collectDeviceInfo() local 46 store.addResult("name", info.getName()); in collectDeviceInfo() 47 store.addResult("encoder", info.isEncoder()); in collectDeviceInfo() 50 for (String type : info.getSupportedTypes()) { in collectDeviceInfo() 54 if (info.getCapabilitiesForType(type).profileLevels.length > 0) { in collectDeviceInfo() 57 info.getCapabilitiesForType(type).profileLevels) { in collectDeviceInfo()
|
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/build/ |
D | CompatibilityBuildProvider.java | 79 IBuildInfo info = new DeviceBuildInfo(buildId, mTestTag, buildFlavor); in getBuild() local 89 info.setBuildBranch(mBranch); in getBuild() 90 info.setBuildFlavor(buildFlavor); in getBuild() 93 info.addBuildAttribute("build_alias", buildAlias); in getBuild() 95 return info; in getBuild() 103 public void buildNotTested(IBuildInfo info) { in buildNotTested() argument 111 public void cleanUp(IBuildInfo info) { in cleanUp() argument
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/build/ |
D | CtsBuildProvider.java | 85 IBuildInfo info = new DeviceBuildInfo(buildId, mTestTag, buildFlavor); in getBuild() local 95 info.setBuildBranch(mBranch); in getBuild() 96 info.setBuildFlavor(buildFlavor); in getBuild() 99 info.addBuildAttribute("build_alias", buildAlias); in getBuild() 101 return info; in getBuild() 109 public void buildNotTested(IBuildInfo info) { in buildNotTested() argument 117 public void cleanUp(IBuildInfo info) { in cleanUp() argument
|