Home
last modified time | relevance | path

Searched refs:equals (Results 1 – 25 of 1306) sorted by relevance

12345678910>>...53

/cts/tests/signature/lib/common/src/android/signature/cts/
DDexMember.java74 if ("V".equals(type)) { in dexToJavaType()
76 } else if ("Z".equals(type)) { in dexToJavaType()
78 } else if ("B".equals(type)) { in dexToJavaType()
80 } else if ("C".equals(type)) { in dexToJavaType()
82 } else if ("S".equals(type)) { in dexToJavaType()
84 } else if ("I".equals(type)) { in dexToJavaType()
86 } else if ("J".equals(type)) { in dexToJavaType()
88 } else if ("F".equals(type)) { in dexToJavaType()
90 } else if ("D".equals(type)) { in dexToJavaType()
102 if ("V".equals(type)) { in typeToClass()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DSmallStructsTest.java75 if (type.equals("i8")) { in getUnwrappedClassForType()
77 } else if (type.equals("i16")) { in getUnwrappedClassForType()
79 } else if (type.equals("i32")) { in getUnwrappedClassForType()
81 } else if (type.equals("i64")) { in getUnwrappedClassForType()
83 } else if (type.equals("f32")) { in getUnwrappedClassForType()
85 } else if (type.equals("f64")) { in getUnwrappedClassForType()
87 } else if (type.equals("v128")) { in getUnwrappedClassForType()
100 if (type.equals("i8")) { in getInitialValueSetter()
102 } else if (type.equals("i16")) { in getInitialValueSetter()
104 } else if (type.equals("i32")) { in getInitialValueSetter()
[all …]
/cts/hostsidetests/apex/src/android/apex/cts/
DApexTest.java40 && (systemProduct.equals("gsi_arm") in isGSI()
41 || systemProduct.equals("gsi_arm64") in isGSI()
42 || systemProduct.equals("gsi_x86") in isGSI()
43 || systemProduct.equals("gsi_x86_64") in isGSI()
44 || systemProduct.equals("aosp_arm") in isGSI()
45 || systemProduct.equals("aosp_arm64") in isGSI()
46 || systemProduct.equals("aosp_x86") in isGSI()
47 || systemProduct.equals("aosp_x86_64") in isGSI()
48 || systemProduct.equals("aosp_tv_arm") in isGSI()
49 || systemProduct.equals("aosp_tv_arm64") in isGSI()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTextTraversalTest.java139 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
140 && event.getClassName().equals(View.class.getName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
141 && event.getContentDescription().toString().equals( in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
169 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
170 && event.getClassName().equals(View.class.getName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
171 && event.getContentDescription().toString().equals( in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
199 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
200 && event.getClassName().equals(View.class.getName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
201 && event.getContentDescription().toString().equals( in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
233 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
[all …]
/cts/hostsidetests/car/src/android/car/cts/powerpolicy/
DTestResultTable.java82 public boolean equals(Object obj) { in equals() method in TestResultTable.RecordEntry
89 || (mSubject != null && !mSubject.equals(peerEntry.mSubject))) { in equals()
92 if (!mTestcase.equals(peerEntry.mTestcase) in equals()
93 || !mAction.equals(peerEntry.mAction) in equals()
94 || !mData.equals(peerEntry.mData)) { in equals()
118 return mTestcase.equals(peerEntry.mTestcase) in equalsIgnoreSubject()
119 && mAction.equals(peerEntry.mAction) in equalsIgnoreSubject()
120 && mData.equals(peerEntry.mData); in equalsIgnoreSubject()
139 || (mSubject != null && !mSubject.equals(subject)) in equalsWithPowerPolicyData()
140 || !mTestcase.equals(testcase) in equalsWithPowerPolicyData()
[all …]
DPowerPolicyTestHelper.java57 boolean expected = expectedPolicyId.equals(mFrameCpms.getCurrentPolicyId()); in checkCurrentPolicy()
71 boolean status = expected.equals(mSilentMode); in checkSilentModeFull()
82 if (def.getPolicyId().equals(expectedPolicy.getPolicyId())) { in checkRegisteredPolicy()
83 status = expectedPolicy.equals(def); in checkRegisteredPolicy()
97 if (def.getPolicyId().equals(policyId)) { in checkRegisteredPolicy()
114 status = id.equals(mSystemCpms.getPendingPolicyId()); in checkPendingPolicyId()
136 .that(expected.equals(mFrameCpms.getCurrentPolicyGroupId())).isTrue(); in checkCurrentPolicyGroupId()
141 .that(expected.equals(mFrameCpms.getPowerPolicyGroups())).isTrue(); in checkPowerPolicyGroups()
/cts/hostsidetests/gputools/apps/src/android/rootlessgpudebug/app/
DRootlessGpuDebugService.java68 Boolean supportedApi = API.equals("Vulkan") || in onStartCommand()
69 API.equals("GLES") || in onStartCommand()
70 API.equals("Both"); in onStartCommand()
76 if (API.equals("Vulkan") || API.equals("Both")) { in onStartCommand()
81 if (API.equals("GLES") || API.equals("Both")) { in onStartCommand()
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DTestingUtils.java29 return "y".equals(value) || "yes".equals(value) || "1".equals(value) || "true".equals(value) in getBooleanProperty()
30 || "on".equals(value); in getBooleanProperty()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionTest.java118 assertThat(result.equals(Utils.ABORT_REQUEST_CANCEL_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
121 assertThat(result.equals(Utils.ABORT_REQUEST_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
124 assertThat(result.equals(Utils.COMMANDREQUEST_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
127 assertThat(result.equals(Utils.COMMANDREQUEST_CANCEL_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
130 assertThat(result.equals(Utils.COMPLETION_REQUEST_CANCEL_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
133 assertThat(result.equals(Utils.COMPLETION_REQUEST_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
136 assertThat(result.equals(Utils.CONFIRMATION_REQUEST_CANCEL_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
139 assertThat(result.equals(Utils.CONFIRMATION_REQUEST_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
142 assertThat(result.equals(Utils.PICKOPTION_REQUEST_CANCEL_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
145 assertThat(result.equals(Utils.PICKOPTION_REQUEST_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DPersistableBundleTest.java54 assertTrue(Arrays.equals( in testWriteToStreamAndReadFromStream()
57 assertTrue(Arrays.equals( in testWriteToStreamAndReadFromStream()
60 assertTrue(Arrays.equals( in testWriteToStreamAndReadFromStream()
63 assertTrue(Arrays.equals( in testWriteToStreamAndReadFromStream()
66 assertTrue(Arrays.equals( in testWriteToStreamAndReadFromStream()
70 assertTrue(Arrays.equals( in testWriteToStreamAndReadFromStream()
73 assertTrue(Arrays.equals( in testWriteToStreamAndReadFromStream()
DTestedScreen.java40 if (LaunchpadActivity.FORWARD_RESULT.equals(getIntent().getAction())) { in onCreate()
46 } else if (DELIVER_RESULT.equals(getIntent().getAction())) { in onCreate()
49 } else if (CLEAR_TASK.equals(getIntent().getAction())) { in onCreate()
64 if (CLEAR_TASK.equals(getIntent().getAction())) { in onResume()
94 if (CLEAR_TASK.equals(getIntent().getAction())) {
106 if (WAIT_BEFORE_FINISH.equals(getIntent().getAction())) { in queueIdle()
109 } else if (CLEAR_TASK.equals(getIntent().getAction())) { in queueIdle()
DLaunchpadActivity.java179 if (LIFECYCLE_BASIC.equals(action)) { in onCreate()
183 } else if (LIFECYCLE_SCREEN.equals(action)) { in onCreate()
192 } else if (LIFECYCLE_DIALOG.equals(action)) { in onCreate()
279 if (LAUNCH.equals(action)) { in onResume()
285 } else if (FORWARD_RESULT.equals(action)) { in onResume()
290 } else if (BAD_PARCELABLE.equals(action)) { in onResume()
296 } else if (BROADCAST_REGISTERED.equals(action)) { in onResume()
303 } else if (BROADCAST_LOCAL.equals(action)) { in onResume()
308 } else if (BROADCAST_REMOTE.equals(action)) { in onResume()
313 } else if (BROADCAST_ALL.equals(action)) { in onResume()
[all …]
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DInputMethodManagerDeviceTest.java75 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID)), in testIme1InInputMethodList()
87 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID))); in testIme1NotInInputMethodList()
97 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID)), in testIme1InEnabledInputMethodList()
109 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID))); in testIme1NotInEnabledInputMethodList()
119 imi -> TextUtils.equals(imi.getId(), Ime2Constants.IME_ID)), in testIme2InInputMethodList()
131 imi -> TextUtils.equals(imi.getId(), Ime2Constants.IME_ID))); in testIme2NotInInputMethodList()
141 imi -> TextUtils.equals(imi.getId(), Ime2Constants.IME_ID)), in testIme2InEnabledInputMethodList()
153 imi -> TextUtils.equals(imi.getId(), Ime2Constants.IME_ID))); in testIme2NotInEnabledInputMethodList()
164 .filter(imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID)) in testIme1ImplicitlyEnabledSubtypeExists()
179 .filter(imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID)) in testIme1ImplicitlyEnabledSubtypeNotExist()
/cts/tests/camera/src/android/hardware/camera2/cts/
DSimpleObjectsTest.java63 !testRequestKey.equals(testRequestKey3)); in CameraKeysTest()
67 !testRequestKey.equals(testRequestKey4)); in CameraKeysTest()
71 !testRequestKey.equals(testRequestKey5)); in CameraKeysTest()
80 !testResultKey.equals(testResultKey3)); in CameraKeysTest()
84 !testResultKey.equals(testResultKey4)); in CameraKeysTest()
88 !testResultKey.equals(testResultKey5)); in CameraKeysTest()
97 !testCharacteristicsKey.equals(testCharacteristicsKey3)); in CameraKeysTest()
101 !testCharacteristicsKey.equals(testCharacteristicsKey4)); in CameraKeysTest()
106 !testCharacteristicsKey.equals(testCharacteristicsKey5)); in CameraKeysTest()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontFamilyTest.java62 assertTrue(family.getFont(0).equals(regularFont) || family.getFont(0).equals(boldFont)); in testBuilder_MultipleFont()
63 assertTrue(family.getFont(1).equals(regularFont) || family.getFont(1).equals(boldFont)); in testBuilder_MultipleFont()
77 assertTrue(family.getFont(0).equals(regularFont) || family.getFont(0).equals(boldFont)); in testBuilder_MultipleFont_overrideWeight()
78 assertTrue(family.getFont(1).equals(regularFont) || family.getFont(1).equals(boldFont)); in testBuilder_MultipleFont_overrideWeight()
92 assertTrue(family.getFont(0).equals(regularFont) || family.getFont(0).equals(italicFont)); in testBuilder_MultipleFont_overrideItalic()
93 assertTrue(family.getFont(1).equals(regularFont) || family.getFont(1).equals(italicFont)); in testBuilder_MultipleFont_overrideItalic()
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
DUtilsProvider.java60 if (ACTION_GRANT_URI.equals(action)) { in call()
65 } else if (ACTION_REVOKE_URI.equals(action)) { in call()
69 } else if (ACTION_START_ACTIVITY.equals(action)) { in call()
74 } else if (ACTION_START_ACTIVITIES.equals(action)) { in call()
79 } else if (ACTION_START_SERVICE.equals(action)) { in call()
83 } else if (ACTION_VERIFY_OUTGOING_PERSISTED.equals(action)) { in call()
86 } else if (ACTION_SET_PRIMARY_CLIP.equals(action)) { in call()
90 } else if (ACTION_CLEAR_PRIMARY_CLIP.equals(action)) { in call()
93 } else if (ACTION_SET_INSTALLER_PACKAGE_NAME.equals(action)) { in call()
114 if (!perm.getUri().equals(uri)) { in verifyOutgoingPersisted()
/cts/tests/app/app/src/android/app/stubs/
DTestedScreen.java40 if (LaunchpadActivity.FORWARD_RESULT.equals(getIntent().getAction())) { in onCreate()
46 } else if (DELIVER_RESULT.equals(getIntent().getAction())) { in onCreate()
49 } else if (CLEAR_TASK.equals(getIntent().getAction())) { in onCreate()
64 if (CLEAR_TASK.equals(getIntent().getAction())) { in onResume()
94 if (CLEAR_TASK.equals(getIntent().getAction())) {
106 if (WAIT_BEFORE_FINISH.equals(getIntent().getAction())) { in queueIdle()
109 } else if (CLEAR_TASK.equals(getIntent().getAction())) { in queueIdle()
DLaunchpadActivity.java185 if (LIFECYCLE_BASIC.equals(action)) { in onCreate()
189 } else if (LIFECYCLE_SCREEN.equals(action)) { in onCreate()
198 } else if (LIFECYCLE_DIALOG.equals(action)) { in onCreate()
285 if (LAUNCH.equals(action)) { in onResume()
290 } else if (ACTIVITY_PREPARE.equals(action)) { in onResume()
292 } else if (FORWARD_RESULT.equals(action)) { in onResume()
297 } else if (BAD_PARCELABLE.equals(action)) { in onResume()
303 } else if (BROADCAST_REGISTERED.equals(action)) { in onResume()
310 } else if (BROADCAST_LOCAL.equals(action)) { in onResume()
315 } else if (BROADCAST_REMOTE.equals(action)) { in onResume()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodHelperActivity.java235 if (action.equals(ACTION_QUERY_PROFILE_OWNER)) { in onCreate()
240 } else if (action.equals(ACTION_REMOVE_MANAGED_PROFILE)) { in onCreate()
247 } else if (action.equals(ACTION_CHECK_DISK_ENCRYPTION)) { in onCreate()
252 } else if (action.equals(ACTION_INSTALL_APK)) { in onCreate()
258 } else if (action.equals(ACTION_INSTALL_APK_WORK_PROFILE_GLOBAL_RESTRICTION)) { in onCreate()
268 } else if (action.equals(ACTION_INSTALL_APK_PRIMARY_PROFILE_GLOBAL_RESTRICTION)) { in onCreate()
278 } else if (action.equals(ACTION_CHECK_INTENT_FILTERS)) { in onCreate()
284 } else if (action.equals(ACTION_CAPTURE_AND_CHECK_IMAGE)) { in onCreate()
291 } else if (action.equals(ACTION_CAPTURE_AND_CHECK_VIDEO_WITH_EXTRA_OUTPUT) || in onCreate()
292 action.equals(ACTION_CAPTURE_AND_CHECK_VIDEO_WITHOUT_EXTRA_OUTPUT)) { in onCreate()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
DDnsSdTxtRecordListenerTest.java111 public boolean equals(Object obj) { in equals() method in DnsSdTxtRecordListenerTest.Argument
116 return equals(mFullDomainName, arg.mFullDomainName) && in equals()
117 equals(mTxtRecordMap, arg.mTxtRecordMap); in equals()
120 private boolean equals(String s1, String s2) { in equals() method in DnsSdTxtRecordListenerTest.Argument
127 return s1.equals(s2); in equals()
130 private boolean equals(Map<String, String> s1, Map<String, String> s2) { in equals() method in DnsSdTxtRecordListenerTest.Argument
137 return s1.equals(s2); in equals()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DAllocationInfo.java236 if (element.equals(Element.YUV(mRS))) { in AllocationInfo()
305 if (element.equals(Element.YUV(RenderScriptSingleton.getRS()))) { in fromElement()
307 } else if (element.equals(Element.RGBA_8888(RenderScriptSingleton.getRS()))) { in fromElement()
309 } else if (element.equals(Element.U8_3(RenderScriptSingleton.getRS()))) { in fromElement()
311 } else if (element.equals(Element.U8_4(RenderScriptSingleton.getRS()))) { in fromElement()
350 return mElement.equals(comparison); in isElementEqualTo()
376 public boolean equals(Object other) { in equals() method in AllocationInfo
378 return equals((AllocationInfo)other); in equals()
394 public boolean equals(AllocationInfo other) { in equals() method in AllocationInfo
400 return mType.equals(other.mType) && mUsage == other.mUsage; in equals()
/cts/tests/tests/contactsprovider/gal/src/android/provider/cts/contacts/galprovider/
DCtsGalProvider.java129 if (column.equals(Directory.ACCOUNT_NAME)) { in handleDirectories()
131 } else if (column.equals(Directory.ACCOUNT_TYPE)) { in handleDirectories()
133 } else if (column.equals(Directory.TYPE_RESOURCE_ID)) { in handleDirectories()
135 } else if (column.equals(Directory.DISPLAY_NAME)) { in handleDirectories()
137 } else if (column.equals(Directory.EXPORT_SUPPORT)) { in handleDirectories()
139 } else if (column.equals(Directory.SHORTCUT_SUPPORT)) { in handleDirectories()
141 } else if (column.equals(Directory.PHOTO_SUPPORT)) { in handleDirectories()
167 if (!ACCOUNT_NAME.equals(accountName)) { in handleFilter()
171 if (!ACCOUNT_TYPE.equals(accountType)) { in handleFilter()
196 if (Contacts.DISPLAY_NAME.equals(column)) { in handleFilter()
/cts/common/device-side/preconditions/src/com/android/compatibility/common/preconditions/
DExternalStorageHelper.java30 return Environment.MEDIA_MOUNTED.equals(state); in isExternalStorageWritable()
36 return (Environment.MEDIA_MOUNTED.equals(state) || in isExternalStorageReadable()
37 Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)); in isExternalStorageReadable()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java154 if (!TextUtils.equals(eventName, event.getEventName())) { in editorMatcher()
158 return TextUtils.equals(marker, editorInfo.privateImeOptions); in editorMatcher()
167 return event -> "onVerify".equals(event.getEventName())
168 && name.equals(event.getArguments().getString("name"));
181 if (!TextUtils.equals(eventName, event.getEventName())) {
186 return (TextUtils.equals(marker, editorInfo.privateImeOptions) && !restarting );
199 if (!TextUtils.equals(eventName, event.getEventName())) {
226 if (!TextUtils.equals("onHandleCommand", event.getEventName())) {
313 if (!TextUtils.equals("bindInput", event.getEventName())) {
330 expectEvent(stream, event -> TextUtils.equals(eventName, event.getEventName())
[all …]
/cts/hostsidetests/devicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/
DDirectoryProvider.java124 if (column.equals(Directory.ACCOUNT_NAME)) { in query()
126 } else if (column.equals(Directory.ACCOUNT_TYPE)) { in query()
128 } else if (column.equals(Directory.TYPE_RESOURCE_ID)) { in query()
130 } else if (column.equals(Directory.DISPLAY_NAME)) { in query()
132 } else if (column.equals(Directory.EXPORT_SUPPORT)) { in query()
134 } else if (column.equals(Directory.SHORTCUT_SUPPORT)) { in query()
154 if (!"com.android.cts.managedprofile".equals(callerPackage)) { in query()
164 if (column.equals(Contacts._ID)) { in query()
166 } else if (column.equals(Contacts.DISPLAY_NAME)) { in query()
169 } else if (column.equals(Contacts.PHOTO_THUMBNAIL_URI)) { in query()
[all …]

12345678910>>...53