Home
last modified time | relevance | path

Searched refs:isSupported (Results 1 – 25 of 123) sorted by relevance

12345

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipTransformationTest.java40 Assert.assertTrue(trans.isSupported(BipTransformation.CROP)); in testAddTransformation()
41 Assert.assertFalse(trans.isSupported(BipTransformation.STRETCH)); in testAddTransformation()
42 Assert.assertFalse(trans.isSupported(BipTransformation.FILL)); in testAddTransformation()
46 Assert.assertTrue(trans.isSupported(BipTransformation.CROP)); in testAddTransformation()
47 Assert.assertTrue(trans.isSupported(BipTransformation.STRETCH)); in testAddTransformation()
48 Assert.assertFalse(trans.isSupported(BipTransformation.FILL)); in testAddTransformation()
56 Assert.assertTrue(trans.isSupported(BipTransformation.CROP)); in testAddExistingTransformation()
57 Assert.assertFalse(trans.isSupported(BipTransformation.STRETCH)); in testAddExistingTransformation()
58 Assert.assertFalse(trans.isSupported(BipTransformation.FILL)); in testAddExistingTransformation()
62 Assert.assertTrue(trans.isSupported(BipTransformation.CROP)); in testAddExistingTransformation()
[all …]
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/
DProperty.java28 public boolean isSupported() { return isBatterySaverSupported(); } in isSupported() method
32 public boolean isSupported() { return isDataSaverSupported(); } in isSupported() method
36 public boolean isSupported() { return !isDataSaverSupported(); } in ~DATA_SAVER_MODE.getValue() method
40 public boolean isSupported() { return isDozeModeSupported(); } in isSupported() method
44 public boolean isSupported() { return isAppStandbySupported(); } in isSupported() method
48 public boolean isSupported() { return !isLowRamDevice(); } in isSupported() method
52 public boolean isSupported() { in isSupported() method
58 public boolean isSupported() { in ~METERED_NETWORK.getValue() method
69 abstract boolean isSupported(); in isSupported() method in Property
/packages/services/Car/tests/CarLibUnitTest/src/com/android/car/internal/property/
DCarPropertyHelperUnitTest.java42 expectThat(CarPropertyHelper.isSupported(VENDOR_PROPERTY)).isTrue(); in testIsSupported()
45 expectThat(CarPropertyHelper.isSupported( in testIsSupported()
48 expectThat(CarPropertyHelper.isSupported(VehiclePropertyIds.INFO_VIN)).isTrue(); in testIsSupported()
50 expectThat(CarPropertyHelper.isSupported(VehiclePropertyIds.INVALID)).isFalse(); in testIsSupported()
52 expectThat(CarPropertyHelper.isSupported(0x12100100)).isFalse(); in testIsSupported()
57 assertThat(CarPropertyHelper.isSupported(BACKPORTED_PROPERTY)).isTrue(); in testIsSupported_backportedProperty()
/packages/services/Mtp/src/com/android/mtp/
DMtpDeviceRecord.java46 static boolean isSupported(@Nullable int[] supportedList, int code) { in isSupported() method in MtpDeviceRecord
59 if (isSupported(supportedList, MtpConstants.OPERATION_GET_PARTIAL_OBJECT_64)) { in isPartialReadSupported()
64 isSupported(supportedList, MtpConstants.OPERATION_GET_PARTIAL_OBJECT)) { in isPartialReadSupported()
71 return isSupported(supportedList, MtpConstants.OPERATION_SEND_OBJECT_INFO) && in isWritingSupported()
72 isSupported(supportedList, MtpConstants.OPERATION_SEND_OBJECT); in isWritingSupported()
/packages/modules/Media/apex/framework/java/android/media/
DApplicationMediaCapabilities.java412 boolean isSupported = Boolean.parseBoolean(supported); in parseFormatTag()
416 != isSupported) { in parseFormatTag()
423 if (isSupported) { in parseFormatTag()
430 if (isSupported) { in parseFormatTag()
437 if (isSupported) { in parseFormatTag()
444 if (isSupported) { in parseFormatTag()
451 if (isSupported) { in parseFormatTag()
458 if (isSupported) { in parseFormatTag()
465 if (isSupported) { in parseFormatTag()
472 mIsSlowMotionSupported = isSupported; in parseFormatTag()
[all …]
/packages/apps/Settings/tests/robotests/testutils/com/android/settings/testutils/shadow/
DShadowBluetoothAdapter.java78 public void setIsLeAudioBroadcastSourceSupported(int isSupported) { in setIsLeAudioBroadcastSourceSupported() argument
79 mIsLeAudioBroadcastSourceSupported = isSupported; in setIsLeAudioBroadcastSourceSupported()
87 public void setIsLeAudioBroadcastAssistantSupported(int isSupported) { in setIsLeAudioBroadcastAssistantSupported() argument
88 mIsLeAudioBroadcastAssistantSupported = isSupported; in setIsLeAudioBroadcastAssistantSupported()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/
DBipTransformation.java129 public boolean isSupported(int transformation) { in isSupported() method in BipTransformation
156 if (isSupported(STRETCH)) { in toString()
159 if (isSupported(FILL)) { in toString()
162 if (isSupported(CROP)) { in toString()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/ims/
DImsMmTelRepositoryTest.kt67 on { isSupported(eq(CAPABILITY), eq(TRANSPORT), any(), any()) } doAnswer { in <lambda>()
153 fun isSupported() = runBlocking { in <lambda>() method
154 val isSupported = repository.isSupported(CAPABILITY, TRANSPORT) in <lambda>() constant
156 assertThat(isSupported).isTrue() in <lambda>()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothAutoOnPreferenceController.java90 boolean isSupported = mBluetoothAdapter.isAutoOnSupported(); in getAvailabilityStatus()
91 Log.i(TAG, "getAvailabilityStatus() isSupported: " + isSupported); in getAvailabilityStatus()
92 if (isSupported) { in getAvailabilityStatus()
95 return isSupported ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/js/
DJavaScriptSandboxProviderTest.java90 when(JavaScriptSandbox.isSupported()).thenReturn(false); in testJsSandboxProviderCreateFailsIfSandboxNotSupported()
98 verify(JavaScriptSandbox::isSupported); in testJsSandboxProviderCreateFailsIfSandboxNotSupported()
104 when(JavaScriptSandbox.isSupported()).thenReturn(true); in testJsSandboxProviderCreatesOnlyOneInstance()
126 when(JavaScriptSandbox.isSupported()).thenReturn(true); in testJsSandboxProviderCreatesNewInstanceAfterFirstIsDestroyed()
154 when(JavaScriptSandbox.isSupported()).thenReturn(true); in testJsSandboxProviderDestroysOnlyIfCurrentInstance()
178 when(JavaScriptSandbox.isSupported()).thenReturn(true); in testJsSandboxProviderDestroysOnlyIfCurrentInstanceOnlyOnce()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/eligibility/
DProviderEligibilityChecker.java55 boolean isSupported = in isEnabledInMetadata()
57 if (!isSupported) { in isEnabledInMetadata()
60 return isSupported; in isEnabledInMetadata()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DBasePreferenceControllerTest.java120 assertThat(mPreferenceController.isSupported()).isTrue(); in isSupported_availableStatusAvailable_returnsTrue()
127 assertThat(mPreferenceController.isSupported()).isFalse(); in isSupported_availableStatusUnsupported_returnsFalse()
134 assertThat(mPreferenceController.isSupported()).isTrue(); in isSupported_availableStatusDisabledForUser_returnsTrue()
141 assertThat(mPreferenceController.isSupported()).isTrue(); in isSupported_availableStatusDependentSetting_returnsTrue()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DLauncherIconProvider.java57 public void setIconThemeSupported(boolean isSupported) { in setIconThemeSupported() argument
58 mSupportsIconTheme = isSupported; in setIconThemeSupported()
59 mThemedIconMap = isSupported && FeatureFlags.USE_LOCAL_ICON_OVERRIDES.get() in setIconThemeSupported()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DDnsSvcbPacketTest.java512 assertTrue(pkt.isSupported("http/1.1")); in testDnsSvcbPacket()
513 assertTrue(pkt.isSupported("h2")); in testDnsSvcbPacket()
514 assertTrue(pkt.isSupported("doq")); in testDnsSvcbPacket()
515 assertFalse(pkt.isSupported("http")); in testDnsSvcbPacket()
516 assertFalse(pkt.isSupported("h3")); in testDnsSvcbPacket()
517 assertFalse(pkt.isSupported("")); in testDnsSvcbPacket()
564 assertTrue(pkt.isSupported("doq")); in testDnsSvcbPacket_noIpHint()
/packages/services/Car/libs/backported-car-property-helper-lib/src/com/android/car/property/backported/
DCarPropertyHelper.java104 boolean isSupported = (mCarPropertyManager.getCarPropertyConfig(propertyId) != null); in isPropertySupported()
107 mPropertySupportedById.put(propertyId, isSupported); in isPropertySupported()
108 return isSupported; in isPropertySupported()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/wificalling/
DWifiCallingRepositoryTest.kt108 isSupported( in <lambda>()
115 val isSupported = repository.isWifiCallingSupported() in <lambda>() constant
117 assertThat(isSupported).isTrue() in <lambda>()
/packages/services/Car/service/src/com/android/car/hal/
DDiagnosticHalService.java81 boolean isSupported(int propertyId) { in isSupported() method in DiagnosticHalService.DiagnosticCapabilities
86 return isSupported(VehicleProperty.OBD2_LIVE_FRAME); in isLiveFrameSupported()
90 return isSupported(VehicleProperty.OBD2_FREEZE_FRAME); in isFreezeFrameSupported()
94 return isSupported(VehicleProperty.OBD2_FREEZE_FRAME_INFO); in isFreezeFrameInfoSupported()
98 return isSupported(VehicleProperty.OBD2_FREEZE_FRAME_CLEAR); in isFreezeFrameClearSupported()
102 return isSupported(OBD2_SELECTIVE_FRAME_CLEAR); in isSelectiveClearFreezeFramesSupported()
/packages/apps/Settings/src/com/android/settings/spa/app/specialaccess/
DNfcTagAppsSettings.kt44 val isSupported: Boolean, constant in com.android.settings.spa.app.specialaccess.NfcTagAppsSettingsRecord
92 isSupported = isAllowed != null, in transformItem()
99 ) = recordListFlow.map { recordList -> recordList.filter { it.isSupported } } in transformItem()
/packages/services/Car/service/src/com/android/car/vms/
DVmsLayerAvailability.java155 boolean isSupported = true; in addLayerToAvailabilityCalculationLocked()
162 isSupported = false; in addLayerToAvailabilityCalculationLocked()
168 if (isSupported) { in addLayerToAvailabilityCalculationLocked()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pNative.java197 return mHalDeviceManager.isSupported(); in isHalInterfaceSupported()
209 if (mHalDeviceManager.isSupported()) { in createP2pIface()
276 return mHalDeviceManager.isSupported() in setupInterface()
289 if (mHalDeviceManager.isSupported()) { in teardownInterface()
310 if (mHalDeviceManager.isSupported()) { in replaceRequestorWs()
993 if (!mHalDeviceManager.isSupported()) return false; in is5g6gDbsSupported()
/packages/apps/LegacyCamera/src/com/android/camera/
DFocusManager.java111 && isSupported(Parameters.FOCUS_MODE_AUTO, in initializeParameters()
367 if (isSupported(mode, supportedFocusModes)) { in getFocusMode()
374 if (!isSupported(mFocusMode, supportedFocusModes)) { in getFocusMode()
377 if (isSupported(Parameters.FOCUS_MODE_AUTO, in getFocusMode()
483 private static boolean isSupported(String value, List<String> supported) { in isSupported() method in FocusManager
/packages/services/Car/tests/CarLibUnitTest/src/android/car/evs/
DCarEvsManagerUnitTest.java312 when(mMockICarEvsService.isSupported(CarEvsManager.SERVICE_TYPE_REARVIEW)).thenReturn(true); in testIsSupported()
313 when(mMockICarEvsService.isSupported(CarEvsManager.SERVICE_TYPE_SURROUNDVIEW)) in testIsSupported()
316 assertThat(mManager.isSupported(CarEvsManager.SERVICE_TYPE_REARVIEW)).isTrue(); in testIsSupported()
317 assertThat(mManager.isSupported(CarEvsManager.SERVICE_TYPE_SURROUNDVIEW)).isFalse(); in testIsSupported()
322 when(mMockICarEvsService.isSupported(anyInt())).thenThrow(new RemoteException()); in testIsSupportedRemoteExceptionThrown()
324 assertThat(mManager.isSupported(CarEvsManager.SERVICE_TYPE_REARVIEW)).isFalse(); in testIsSupportedRemoteExceptionThrown()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ims/
DMockVolteQueryImsState.java55 public void setEnabledByPlatform(boolean isSupported) { in setEnabledByPlatform() argument
56 mIsSupported = isSupported; in setEnabledByPlatform()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ims/
DMockVolteQueryImsState.java55 public void setEnabledByPlatform(boolean isSupported) { in setEnabledByPlatform() argument
56 mIsSupported = isSupported; in setEnabledByPlatform()
/packages/modules/AdServices/adservices/tests/test-util/side-less/com/android/adservices/common/
DAbstractAdServicesDeviceSupportedRule.java115 boolean isSupported = mDeviceSupportHelper.isDeviceSupported(); in isAdServicesSupportedOnDevice()
116 mLog.v("isAdServicesSupportedOnDevice(): %b", isSupported); in isAdServicesSupportedOnDevice()
117 return isSupported; in isAdServicesSupportedOnDevice()

12345