Home
last modified time | relevance | path

Searched refs:VERSION (Results 1 – 25 of 215) sorted by relevance

123456789

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DApiHelper.java43 public static final boolean AT_LEAST_16 = Build.VERSION.SDK_INT >= 16;
46 Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;
49 Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH;
61 Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;
64 Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
67 Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;
77 Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
80 Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB_MR1;
83 Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;
86 Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
[all …]
DHttpClientFactory.java124 Build.VERSION.SDK_INT, in getUserAgent()
125 Build.VERSION.RELEASE, in getUserAgent()
126 Build.VERSION.INCREMENTAL); in getUserAgent()
/packages/apps/Camera2/src/com/android/camera/util/
DApiHelper.java27 public static final boolean AT_LEAST_16 = Build.VERSION.SDK_INT >= 16;
30 Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1;
33 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN;
35 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN;
37 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN;
39 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN;
41 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN;
43 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN;
45 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN;
50 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1;
[all …]
/packages/providers/CallLogProvider/tests/src/com/android/calllogbackup/
DCallLogBackupAgentTest.java116 state.version = CallLogBackupAgent.VERSION; in testWriteState_NoCalls()
122 inOrder.verify(mDataOutput).writeInt(CallLogBackupAgent.VERSION); in testWriteState_NoCalls()
128 state.version = CallLogBackupAgent.VERSION; in testWriteState_OneCall()
135 inOrder.verify(mDataOutput).writeInt(CallLogBackupAgent.VERSION); in testWriteState_OneCall()
142 state.version = CallLogBackupAgent.VERSION; in testWriteState_MultipleCalls()
151 inOrder.verify(mDataOutput).writeInt(CallLogBackupAgent.VERSION); in testWriteState_MultipleCalls()
160 state.version = CallLogBackupAgent.VERSION; in testRunBackup_NoCalls()
171 state.version = CallLogBackupAgent.VERSION; in testRunBackup_OneNewCall()
183 state.version = CallLogBackupAgent.VERSION; in testRunBackup_MultipleCall()
203 state.version = CallLogBackupAgent.VERSION; in testRunBackup_PartialMultipleCall()
/packages/apps/Nfc/src/com/android/nfc/snep/
DSnepMessage.java34 public static final byte VERSION = (0xF0 & (VERSION_MAJOR << 4)) | (0x0F & VERSION_MINOR); field in SnepMessage
71 return new SnepMessage(VERSION, REQUEST_GET, 4 + ndef.toByteArray().length, in getGetRequest()
76 return new SnepMessage(VERSION, REQUEST_PUT, ndef.toByteArray().length, 0, ndef); in getPutRequest()
80 return new SnepMessage(VERSION, field, 0, 0, null); in getMessage()
85 return new SnepMessage(VERSION, RESPONSE_SUCCESS, 0, 0, null); in getSuccessResponse()
87 return new SnepMessage(VERSION, RESPONSE_SUCCESS, ndef.toByteArray().length, 0, ndef); in getSuccessResponse()
/packages/apps/Nfc/src/com/android/nfc/ndefpush/
DNdefPushProtocol.java37 private static final byte VERSION = 1; field in NdefPushProtocol
79 if(version != VERSION) { in NdefPushProtocol()
80 Log.w(TAG, "Got version " + version + ", expected " + VERSION); in NdefPushProtocol()
81 throw new FormatException("Got version " + version + ", expected " + VERSION); in NdefPushProtocol()
153 output.writeByte(VERSION); in toByteArray()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DAdditionalSubtypeUtilsTests.java120 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { in assertEnUsDvorak()
122 } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { in assertEnUsDvorak()
124 } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { in assertEnUsDvorak()
143 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { in assertAzerty()
145 } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { in assertAzerty()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DConstants.java89 final boolean validRelease = !TextUtils.isEmpty(Build.VERSION.RELEASE);
91 final boolean includeModel = "REL".equals(Build.VERSION.CODENAME)
96 builder.append("/").append(Build.VERSION.RELEASE);
100 builder.append(" ").append(Build.VERSION.RELEASE);
/packages/apps/TV/src/com/android/tv/audio/
DAudioManagerHelper.java45 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { in AudioManagerHelper()
86 && Build.VERSION.SDK_INT >= Build.VERSION_CODES.N in setVolumeByAudioFocusStatus()
116 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { in requestAudioFocus()
133 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { in abandonAudioFocus()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DBuildCompatUtils.java26 private static final boolean IS_RELEASE_BUILD = Build.VERSION.CODENAME.equals("REL");
34 ? Build.VERSION.SDK_INT
35 : Build.VERSION.SDK_INT + 1;
DInputMethodSubtypeCompatUtils.java44 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
66 || Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR1) { in newInputMethodSubtype()
90 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in getLocaleObject()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/compat/
DBuildCompat.java19 import android.os.Build.VERSION;
31 private static int sSdk = Build.VERSION.SDK_INT;
73 || (sSdk == N_MR1_SDK_VERSION && VERSION.RELEASE.equals("7.1.2")); in isAtLeastNMR2()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/datamanager/
DChannelDataManager.java98 private static final int VERSION = 6; field in ChannelDataManager
166 Log.d(TAG, "ChannelDataManager.VERSION=" + VERSION + " (current=" + version + ")"); in checkDataVersion()
167 if (version == VERSION) { in checkDataVersion()
182 TunerPreferences.setChannelDataVersion(context, VERSION); in setCurrentVersion()
553 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { in buildContentProviderOperation()
594 values.put(TvContract.Channels.COLUMN_INTERNAL_PROVIDER_FLAG1, VERSION); in handleChannel()
650 new String[] {Integer.toString(VERSION)}, in checkVersion() argument
671 if (version != VERSION) { in checkVersion()
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DPeriodicJobService.java26 import android.os.Build.VERSION;
60 if (VERSION.SDK_INT >= VERSION_CODES.N_MR1 && UserManagerCompat.isUserUnlocked(context)) { in schedulePeriodicJob()
94 if (VERSION.SDK_INT >= VERSION_CODES.N_MR1) { in onStartJob()
/packages/apps/Settings/src/com/android/settings/widget/
DDotsPageIndicator.java153 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in DotsPageIndicator()
322 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { in clearAnimation()
356 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in drawUnselected()
370 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in drawUnselected()
439 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in getUnselectedPath()
470 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in getUnselectedPath()
566 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { in setSelectedPage()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DDotsPageIndicator.java153 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in DotsPageIndicator()
322 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { in clearAnimation()
356 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in drawUnselected()
370 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in drawUnselected()
439 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in getUnselectedPath()
470 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in getUnselectedPath()
566 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { in setSelectedPage()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberBackupAgent.java54 private static final int VERSION = 1; field in BlockedNumberBackupAgent
96 int version = VERSION; in readState()
134 dataOutputStream.writeInt(VERSION); in addToBackup()
192 dataOutputStream.writeInt(VERSION); in writeNewState()
/packages/apps/Messaging/src/android/support/v7/mms/
DUtils.java42 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP; in hasMmsApi()
51 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1; in supportMSim()
60 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT; in hasUserAgentApi()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DLegacyVoicemailNotificationReceiver.java64 + Build.VERSION.SDK_INT in onReceive()
66 + Build.VERSION.PREVIEW_SDK_INT in onReceive()
68 + Build.VERSION.RELEASE); in onReceive()
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DTranscriptionDbHelper.java66 Assert.checkState(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O); in getTranscriptionAndState()
86 Assert.checkState(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O); in getUntranscribedVoicemails()
113 Assert.checkState(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O); in getTranscribingVoicemails()
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java34 static final boolean ATLEAST_OREO = Build.VERSION.SDK_INT >= Build.VERSION_CODES.O;
35 static final boolean ATLEAST_P = Build.VERSION.SDK_INT >= Build.VERSION_CODES.P;
320 user, Build.VERSION.SDK_INT); in makeDefaultIcon()
325 Build.VERSION.SDK_INT >= Build.VERSION_CODES.O in getFullResDefaultActivityIcon()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DUtils.java133 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN; in isRunningJellybeanOrLater()
137 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1; in isRunningJBMR1OrLater()
141 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT; in isRunningKitkatOrLater()
145 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP; in isRunningLOrLater()
149 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.N; in isRunningNOrLater()
1022 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) { in traceBeginSection()
1034 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) { in traceEndSection()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DDvrRecordingService.java78 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { in startForegroundService()
193 Build.VERSION.SDK_INT >= Build.VERSION_CODES.O in startForegroundInternal()
205 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { in createNotificationChannel()
/packages/apps/Contacts/src/com/android/contacts/compat/
DSdkVersionOverride.java19 import android.os.Build.VERSION;
43 return ALLOW_OVERRIDE_VERSION ? overrideVersion : VERSION.SDK_INT; in getSdkVersion()
/packages/apps/DeskClock/src/com/android/deskclock/
DUtils.java112 return Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP; in isPreL()
120 final int sdkInt = Build.VERSION.SDK_INT; in isLOrLMR1()
128 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP; in isLOrLater()
135 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1; in isLMR1OrLater()
142 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.M; in isMOrLater()

123456789