/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
DrawableContainerStateTest.java | 110 doReturn(false).when(dr0).isStateful(); 116 doReturn(false).when(dr1).isStateful(); 122 doReturn(true).when(dr2).isStateful(); 128 doReturn(false).when(dr3).isStateful(); 167 * TODO: the behavior of getConstantPadding when variable padding is 203 doReturn(1).when(dr0).getMinimumHeight(); 204 doReturn(2).when(dr0).getMinimumWidth(); 205 doReturn(0).when(dr0).getIntrinsicHeight(); 206 doReturn(0).when(dr0).getIntrinsicWidth(); 215 doReturn(0).when(dr1).getMinimumHeight() [all...] |
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/ |
PreProvisioningControllerTest.java | 35 import static org.mockito.Mockito.when; 122 when(mContext.getSystemService(Context.DEVICE_POLICY_SERVICE)) 124 when(mContext.getSystemService(Context.USER_SERVICE)).thenReturn(mUserManager); 125 when(mContext.getPackageManager()).thenReturn(mPackageManager); 126 when(mContext.getSystemService(Context.ACTIVITY_SERVICE)).thenReturn(mActivityManager); 127 when(mContext.getSystemService(Context.KEYGUARD_SERVICE)).thenReturn(mKeyguardManager); 128 when(mContext.getSystemService(Context.PERSISTENT_DATA_BLOCK_SERVICE)) 130 when(mContext.getPackageName()).thenReturn(MP_PACKAGE_NAME); 131 when(mContext.getResources()).thenReturn( 134 when(mUserManager.getUserHandle()).thenReturn(TEST_USER_ID) [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
WifiConnectivityManagerTest.java | 94 when(mClock.getElapsedSinceBootMillis()).thenReturn(SystemClock.elapsedRealtime()); 148 when(resource.getInteger(R.integer.config_wifi_framework_SECURITY_AWARD)).thenReturn(80); 149 when(resource.getInteger(R.integer.config_wifi_framework_SAME_BSSID_AWARD)).thenReturn(24); 150 when(resource.getBoolean( 152 when(resource.getInteger( 155 when(resource.getInteger( 157 when(resource.getInteger( 159 when(resource.getInteger( 167 when(context.getResources()).thenReturn(mResource); 168 when(context.getSystemService(Context.ALARM_SERVICE)).thenReturn [all...] |
WifiNetworkSelectorTest.java | 72 when(mClock.getElapsedSinceBootMillis()).thenReturn(SystemClock.elapsedRealtime()); 151 when(mContext.getResources()).thenReturn(mResource); 155 doReturn(value).when(mResource).getInteger(resourceName); 160 doReturn(true).when(mResource).getBoolean( 179 when(mWifiInfo.is24GHz()).thenReturn(true); 180 when(mWifiInfo.is5GHz()).thenReturn(false); 181 when(mWifiInfo.getRssi()).thenReturn(-70); 182 when(mWifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID); 183 when(mWifiInfo.getBSSID()).thenReturn(null); 187 when(mWifiConfigManager.getLastSelectedNetwork() [all...] |
WifiStateMachinePrimeTest.java | 79 when(mWifiInjector.makeWificond()).thenReturn(null); 102 when(mWifiInjector.makeWificond()).thenReturn(mWificond); 103 when(mWificond.createApInterface()).thenReturn(mApInterface); 114 }).when(mWifiInjector).makeSoftApManager(any(INetworkManagementService.class), 129 * Test that when a new instance of WifiStateMachinePrime is created, any existing interfaces in 131 * Expectations: When the new WifiStateMachinePrime instance is created a call to 136 when(mWifiInjector.makeWificond()).thenReturn(mWificond); 153 * Expectations: When going from one state to another, any interfaces that are still up are torn 158 when(mWifiInjector.makeWificond()).thenReturn(mWificond); 185 when(mWifiInjector.makeWificond()).thenReturn(null) [all...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
RestrictedLockUtilsTest.java | 28 import static org.mockito.Mockito.when; 68 when(mContext.getSystemService(Context.DEVICE_POLICY_SERVICE)) 70 when(mContext.getSystemService(Context.USER_SERVICE)) 90 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin1, mUserId)) 103 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin1, mUserId)) 105 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin2, mUserId)) 118 when(mUserManager.getProfiles(mUserId)).thenReturn(Arrays.asList(new UserInfo[] { 121 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin1, mUserId)) 123 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin2, mProfileId)) 147 when(mUserManager.getProfiles(mUserId)).thenReturn(Arrays.asList(new UserInfo[] [all...] |
/external/dagger2/producers/src/test/java/dagger/producers/monitoring/internal/ |
MonitorsTest.java | 35 import static org.mockito.Mockito.when; 67 when(mockProductionComponentMonitorFactory.create(any(Object.class))).thenReturn(null); 77 .when(mockProductionComponentMonitorFactory) 87 when(mockProductionComponentMonitorFactory.create(any(Object.class))) 89 when(mockProductionComponentMonitor.producerMonitorFor(any(ProducerToken.class))) 101 when(mockProductionComponentMonitorFactory.create(any(Object.class))) 104 .when(mockProductionComponentMonitor) 159 doThrow(new RuntimeException("monkey")).when(mockProducerMonitor).methodStarting(); 160 doThrow(new RuntimeException("monkey")).when(mockProducerMonitor).methodFinished(); 161 doThrow(new RuntimeException("monkey")).when(mockProducerMonitor).succeeded(any(Object.class)) [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
QSSecurityFooterTest.java | 21 import static org.mockito.Mockito.when; 95 when(mSecurityController.isDeviceManaged()).thenReturn(false); 104 when(mSecurityController.isDeviceManaged()).thenReturn(true); 105 when(mSecurityController.getDeviceOwnerOrganizationName()).thenReturn(null); 119 when(mSecurityController.isDeviceManaged()).thenReturn(true); 120 when(mSecurityController.getDeviceOwnerOrganizationName()) 136 when(mSecurityController.isDeviceManaged()).thenReturn(true); 137 when(mSecurityController.getDeviceOwnerOrganizationName()).thenReturn(null); 139 when(mockUserInfo.isDemo()).thenReturn(true); 140 when(mUserManager.getUserInfo(anyInt())).thenReturn(mockUserInfo) [all...] |
/cts/tools/selinux/ |
SELinuxNeverallowTestFrame.py | 108 assertTrue("The following errors were encountered when validating the SELinux"
|
/developers/build/prebuilts/gradle/RuntimePermissions/kotlinApp/app/src/main/java/com/example/android/system/runtimepermissions/extensions/ |
CameraExts.kt | 30 val degrees = when (rotation) { 38 return when (facing) {
|
/developers/samples/android/system/RuntimePermissions/kotlinApp/app/src/main/java/com/example/android/system/runtimepermissions/extensions/ |
CameraExts.kt | 30 val degrees = when (rotation) { 38 return when (facing) {
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
tty.py | 18 def setraw(fd, when=TCSAFLUSH):
28 tcsetattr(fd, when, mode)
30 def setcbreak(fd, when=TCSAFLUSH):
36 tcsetattr(fd, when, mode)
|
/external/apache-xml/src/main/java/org/apache/xalan/templates/ |
ElemChoose.java | 33 * <!ELEMENT xsl:choose (xsl:when+, xsl:otherwise?)> 92 ElemWhen when = (ElemWhen) childElem; local 94 // must be xsl:when 98 // System.err.println("\""+when.getTest().getPatternString()+"\""); 100 // if(when.getTest().getPatternString().equals("COLLECTION/icuser/ictimezone/LITERAL='GMT +13:00 Pacific/Tongatapu'")) 103 if (when.getTest().bool(xctxt, sourceNode, when)) { 104 transformer.executeChildTemplates(when, true);
|
/external/guice/extensions/persist/test/com/google/inject/persist/jpa/ |
JpaPersistServiceTest.java | 24 import static org.mockito.Mockito.when; 44 when(provider.createEntityManagerFactory(PERSISTENCE_UNIT_NAME, PERSISTENCE_PROPERTIES)).thenReturn(factory); 45 when(factory.createEntityManager()).thenReturn(entityManager); 53 doThrow(SimulatedException.class).when(entityManager).close();
|
/external/jsr305/ri/src/main/java/javax/annotation/ |
CheckForNull.java | 8 import javax.annotation.meta.When; 12 @Nonnull(when = When.MAYBE)
|
CheckForSigned.java | 8 import javax.annotation.meta.When; 20 @Nonnegative(when = When.MAYBE)
|
Detainted.java | 8 import javax.annotation.meta.When; 12 @Untainted(when = When.ALWAYS)
|
Nullable.java | 8 import javax.annotation.meta.When; 12 @Nonnull(when = When.UNKNOWN)
|
PropertyKey.java | 8 import javax.annotation.meta.When; 14 When when() default When.ALWAYS;
|
Signed.java | 8 import javax.annotation.meta.When; 14 @Nonnegative(when = When.UNKNOWN)
|
Tainted.java | 8 import javax.annotation.meta.When; 12 @Untainted(when = When.MAYBE)
|
Untainted.java | 8 import javax.annotation.meta.When; 14 When when() default When.ALWAYS;
|
/external/libcxx/test/std/depr/depr.c.headers/ |
stdarg_h.pass.cpp | 22 # error va_copy is not defined when c++ >= 11
|
/external/libcxx/test/std/language.support/support.runtime/ |
cstdarg.pass.cpp | 22 # error va_copy is not defined when c++ >= 11
|
/external/mockito/src/test/java/org/mockitousage/junitrule/ |
LenientJUnitRuleTest.java | 12 import static org.mockito.Mockito.when; 26 when(mock.simpleMethod(1)).thenReturn("1"); 30 when(mock.simpleMethod(1)).thenReturn("1"); 35 when(mock.simpleMethod(1)).thenReturn("1");
|