/external/strace/tests/ |
qual_fault-syntax.test | 45 invalid_syscall_name:when=3 \ 47 -1:when=4 \ 49 -2:when=5 \ 51 32767:when=6 \ 53 chdir:42:when=7 \ 55 chdir:invalid:when=8 \ 57 chdir:error=:when=10 \ 59 chdir:error=invalid_error_name:when=11 \ 61 chdir:error=-1:when=12 \ 63 chdir:error=-2:when=13 [all...] |
qual_inject-syntax.test | 45 invalid_syscall_name:when=3 \ 47 -1:when=4 \ 49 -2:when=5 \ 51 32767:when=6 \ 55 chdir:42:when=7 \ 57 chdir:invalid:when=8 \ 59 chdir:error=:when=10 \ 61 chdir:error=invalid_error_name:when=11 \ 63 chdir:error=-1:when=12 \ 65 chdir:error=-2:when=13 [all...] |
/external/strace/tests-m32/ |
qual_fault-syntax.test | 45 invalid_syscall_name:when=3 \ 47 -1:when=4 \ 49 -2:when=5 \ 51 32767:when=6 \ 53 chdir:42:when=7 \ 55 chdir:invalid:when=8 \ 57 chdir:error=:when=10 \ 59 chdir:error=invalid_error_name:when=11 \ 61 chdir:error=-1:when=12 \ 63 chdir:error=-2:when=13 [all...] |
qual_inject-syntax.test | 45 invalid_syscall_name:when=3 \ 47 -1:when=4 \ 49 -2:when=5 \ 51 32767:when=6 \ 55 chdir:42:when=7 \ 57 chdir:invalid:when=8 \ 59 chdir:error=:when=10 \ 61 chdir:error=invalid_error_name:when=11 \ 63 chdir:error=-1:when=12 \ 65 chdir:error=-2:when=13 [all...] |
/external/strace/tests-mx32/ |
qual_fault-syntax.test | 45 invalid_syscall_name:when=3 \ 47 -1:when=4 \ 49 -2:when=5 \ 51 32767:when=6 \ 53 chdir:42:when=7 \ 55 chdir:invalid:when=8 \ 57 chdir:error=:when=10 \ 59 chdir:error=invalid_error_name:when=11 \ 61 chdir:error=-1:when=12 \ 63 chdir:error=-2:when=13 [all...] |
qual_inject-syntax.test | 45 invalid_syscall_name:when=3 \ 47 -1:when=4 \ 49 -2:when=5 \ 51 32767:when=6 \ 55 chdir:42:when=7 \ 57 chdir:invalid:when=8 \ 59 chdir:error=:when=10 \ 61 chdir:error=invalid_error_name:when=11 \ 63 chdir:error=-1:when=12 \ 65 chdir:error=-2:when=13 [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ |
FormattedDateBuilder.java | 49 * @param when The time to generate a formatted date for 52 public CharSequence formatShortDateTime(long when) { 53 if (DateUtils.isToday(when)) { 54 return formatDateTime(when, DateUtils.FORMAT_SHOW_TIME); 55 } else if (isCurrentYear(when)) { 56 return formatDateTime(when, DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_ABBREV_MONTH); 58 return formatDateTime(when, DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_NUMERIC_DATE); 71 * @param when The time to generate a formatted date for 74 public CharSequence formatLongDateTime(long when) { 75 if (DateUtils.isToday(when)) { [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
WorkSoundPreferenceControllerTest.java | 27 import static org.mockito.Mockito.when; 79 when(mContext.getSystemService(Context.TELEPHONY_SERVICE)).thenReturn(mTelephonyManager); 80 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); 81 when(mScreen.findPreference(KEY_WORK_CATEGORY)) 83 when(mWorkCategory.findPreference(KEY_WORK_USE_PERSONAL_SOUNDS)) 85 when(mWorkCategory.findPreference(KEY_WORK_PHONE_RINGTONE)) 87 when(mWorkCategory.findPreference(KEY_WORK_NOTIFICATION_RINGTONE)) 89 when(mWorkCategory.findPreference(KEY_WORK_ALARM_RINGTONE)) 97 when(mAudioHelper.getManagedProfileId(nullable(UserManager.class))) 99 when(mAudioHelper.isUserUnlocked(nullable(UserManager.class), anyInt())).thenReturn(true) [all...] |
NotificationVolumePreferenceControllerTest.java | 35 import static org.mockito.Mockito.when; 57 when(mContext.getSystemService(Context.TELEPHONY_SERVICE)).thenReturn(mTelephonyManager); 58 when(mContext.getSystemService(Context.AUDIO_SERVICE)).thenReturn(mAudioManager); 59 when(mContext.getSystemService(Context.VIBRATOR_SERVICE)).thenReturn(mVibrator); 65 when(mHelper.isSingleVolume()).thenReturn(true); 66 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); 73 when(mHelper.isSingleVolume()).thenReturn(false); 74 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); 81 when(mHelper.isSingleVolume()).thenReturn(false); 82 when(mTelephonyManager.isVoiceCapable()).thenReturn(false) [all...] |
EmergencyBroadcastPreferenceControllerTest.java | 41 import static org.mockito.Mockito.when; 65 when(mContext.getSystemService(Context.USER_SERVICE)).thenReturn(mUserManager); 66 when(mContext.getPackageManager()).thenReturn(mPackageManager); 85 when(mUserManager.isAdminUser()).thenReturn(false); 86 when(mContext.getResources().getBoolean( 88 when(mPackageManager.getApplicationEnabledSetting(anyString())) 90 when(mAccountHelper.hasBaseUserRestriction(anyString(), anyInt())).thenReturn(false); 97 when(mUserManager.isAdminUser()).thenReturn(true); 98 when(mContext.getResources().getBoolean( 100 when(mPackageManager.getApplicationEnabledSetting(anyString()) [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
DozeConfigurationUtil.java | 21 import static org.mockito.Mockito.when; 35 when(params.getPulseOnSigMotion()).thenReturn(false); 36 when(params.getPickupVibrationThreshold()).thenReturn(0); 37 when(params.getProxCheckBeforePulse()).thenReturn(true); 38 when(params.getPickupSubtypePerformsProxCheck(anyInt())).thenReturn(true); 48 when(config.pulseOnDoubleTapEnabled(anyInt())).thenReturn(false); 49 when(config.pulseOnPickupEnabled(anyInt())).thenReturn(false); 50 when(config.pulseOnNotificationEnabled(anyInt())).thenReturn(true); 52 when(config.doubleTapSensorType()).thenReturn(null); 53 when(config.pulseOnPickupAvailable()).thenReturn(false) [all...] |
/external/mockito/src/test/java/org/mockitousage/matchers/ |
AnyXMatchersAcceptNullsTest.java | 15 import static org.mockito.Mockito.when; 29 when(mock.oneArg((Object) any())).thenReturn("matched"); 36 when(mock.oneArg((Object) anyObject())).thenReturn("matched"); 43 when(mock.oneArg(anyString())).thenReturn("0"); 44 when(mock.forList(anyListOf(String.class))).thenReturn("1"); 45 when(mock.forMap(anyMapOf(String.class, String.class))).thenReturn("2"); 46 when(mock.forCollection(anyCollectionOf(String.class))).thenReturn("3"); 47 when(mock.forSet(anySetOf(String.class))).thenReturn("4"); 59 when(mock.forInteger(anyInt())).thenReturn("0"); 60 when(mock.forCharacter(anyChar())).thenReturn("1") [all...] |
MatchersTest.java | 61 import static org.mockito.Mockito.when; 70 when(mock.oneArg(and(eq(false), eq(false)))).thenReturn("0"); 71 when(mock.oneArg(and(eq((byte) 1), eq((byte) 1)))).thenReturn("1"); 72 when(mock.oneArg(and(eq('a'), eq('a')))).thenReturn("2"); 73 when(mock.oneArg(and(eq((double) 1), eq((double) 1)))).thenReturn("3"); 74 when(mock.oneArg(and(eq((float) 1), eq((float) 1)))).thenReturn("4"); 75 when(mock.oneArg(and(eq((int) 1), eq((int) 1)))).thenReturn("5"); 76 when(mock.oneArg(and(eq((long) 1), eq((long) 1)))).thenReturn("6"); 77 when(mock.oneArg(and(eq((short) 1), eq((short) 1)))).thenReturn("7"); 78 when(mock.oneArg(and(contains("a"), contains("d")))).thenReturn("8") [all...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
A2dpProfileTest.java | 46 import static org.mockito.Mockito.when; 73 }).when(mAdapter).getProfileProxy(any(Context.class), any(), eq(BluetoothProfile.A2DP)); 82 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn( 86 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn( 90 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn( 97 when(mBluetoothA2dpWrapper.getOptionalCodecsEnabled(any())).thenReturn( 101 when(mBluetoothA2dpWrapper.getOptionalCodecsEnabled(any())).thenReturn( 109 when(mBluetoothA2dpWrapper.getOptionalCodecsEnabled(any())).thenReturn( 111 when(mBluetoothA2dp.getConnectionState(any())).thenReturn( 114 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn [all...] |
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
MockSessionBuilder.java | 20 import static org.mockito.Mockito.when; 76 when(session.getId()).thenReturn(id); 77 when(session.isValid()).thenReturn(valid); 78 when(session.getProtocol()).thenReturn(protocol); 79 when(session.getPeerHost()).thenReturn(host); 80 when(session.getPeerPort()).thenReturn(port); 81 when(session.getCipherSuite()).thenReturn(cipherSuite); 82 when(session.toBytes()).thenReturn(encodedBytes);
|
/frameworks/av/media/libaaudio/examples/input_monitor/jni/ |
Application.mk | 1 # TODO remove then when we support other architectures
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
FullBackupEntry.java | 24 public FullBackupEntry(String pkg, long when) { 26 lastBackup = when;
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
DdmVmInternal.java | 41 * @param when when to send the next HPIF chunk 42 * @return true on success. false if 'when' is bad or if there was 46 native public static boolean heapInfoNotify(int when); 54 native public static boolean heapSegmentNotify(int when, int what,
|
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/mach-o/ |
symbols-6-64.s | 1 # now look at what happens when we append some indirects to the normal
|
symbols-6.s | 1 # now look at what happens when we append some indirects to the normal
|
/frameworks/base/libs/androidfw/include/androidfw/ |
ZipUtils.h | 70 static inline void zipTimeToTimespec(uint32_t when, struct tm* timespec) { 71 const uint32_t date = when >> 16; 78 timespec->tm_hour = (when >> 11) & 0x1F; 79 timespec->tm_min = (when >> 5) & 0x3F; 80 timespec->tm_sec = (when & 0x1F) << 1;
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
BluetoothUtilsTest.java | 19 import static org.mockito.Mockito.when; 55 Mockito.doNothing().when(mMockRunUtil).sleep(Mockito.anyLong()); 84 when(mMockDevice.executeShellCommand(Mockito.anyString())).thenReturn(""); 85 Mockito.doReturn(true).when(mSpyClient).isSl4ARunning(); 86 Mockito.doNothing().when(mSpyClient).open(); 87 Mockito.doReturn(null).when(mSpyClient).rpcCall(BluetoothUtils.BTSNOOP_API, true); 93 when(mMockDevice.executeShellCommand(Mockito.anyString())).thenReturn(""); 94 Mockito.doReturn(true).when(mSpyClient).isSl4ARunning(); 95 Mockito.doNothing().when(mSpyClient).open(); 97 .when(mSpyClient [all...] |
/external/mockito/src/test/java/org/mockitousage/ |
CompilationWarningsTest.java | 19 doReturn(null).when(mock(IMethods.class)).objectReturningMethodNoArgs(); 20 doReturn("a", 12).when(mock(IMethods.class)).objectReturningMethodNoArgs(); 21 doReturn(1000).when(mock(IMethods.class)).objectReturningMethodNoArgs(); 22 doThrow(new NullPointerException()).when(mock(IMethods.class)).objectReturningMethodNoArgs(); 23 doThrow(new NullPointerException(), new IllegalArgumentException()).when(mock(IMethods.class)).objectReturningMethodNoArgs(); 24 doThrow(NullPointerException.class).when(mock(IMethods.class)).objectReturningMethodNoArgs(); 26 doAnswer(ignore()).doReturn(null).when(mock(IMethods.class)).objectReturningMethodNoArgs(); 27 doAnswer(ignore()).doReturn("a", 12).when(mock(IMethods.class)).objectReturningMethodNoArgs(); 28 doAnswer(ignore()).doReturn(1000).when(mock(IMethods.class)).objectReturningMethodNoArgs(); 29 doAnswer(ignore()).doThrow(new NullPointerException()).when(mock(IMethods.class)).objectReturningMethodNoArgs() [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
EnterprisePrivacyFeatureProviderImplTest.java | 53 import static org.mockito.Mockito.when; 90 when(mContext.getApplicationContext()).thenReturn(mContext); 92 when(mUserManager.getProfiles(MY_USER_ID)).thenReturn(mProfiles); 102 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(null); 105 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(OWNER); 111 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(OWNER); 120 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn(null); 123 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn(OWNER_ORGANIZATION); 129 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(null); 137 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(OWNER) [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
DefaultAppSettingsTest.java | 28 import static org.mockito.Mockito.when; 94 when(defaultSms.getDefaultAppLabel()).thenReturn("Sms1"); 95 when(defaultBrowser.getDefaultAppLabel()).thenReturn("Browser1"); 96 when(defaultPhone.getDefaultAppLabel()).thenReturn("Phone1"); 101 when(defaultSms.getDefaultAppLabel()).thenReturn(null); 102 when(defaultBrowser.getDefaultAppLabel()).thenReturn("Browser1"); 103 when(defaultPhone.getDefaultAppLabel()).thenReturn("Phone1"); 107 when(defaultSms.getDefaultAppLabel()).thenReturn("Sms1"); 108 when(defaultBrowser.getDefaultAppLabel()).thenReturn(null); 109 when(defaultPhone.getDefaultAppLabel()).thenReturn("Phone1") [all...] |