Home
last modified time | relevance | path

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

12345

/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()
DAsyncTaskUtil.java33 if (Build.VERSION.SDK_INT >= 11) {
50 if (Build.VERSION.SDK_INT < 11) { in executeInParallel()
/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.java30 public static final byte VERSION = (0xF0 & (VERSION_MAJOR << 4)) | (0x0F & VERSION_MINOR); field in SnepMessage
54 return new SnepMessage(VERSION, REQUEST_GET, 4 + ndef.toByteArray().length, in getGetRequest()
59 return new SnepMessage(VERSION, REQUEST_PUT, ndef.toByteArray().length, 0, ndef); in getPutRequest()
63 return new SnepMessage(VERSION, field, 0, 0, null); in getMessage()
68 return new SnepMessage(VERSION, RESPONSE_SUCCESS, 0, 0, null); in getSuccessResponse()
70 return new SnepMessage(VERSION, RESPONSE_SUCCESS, ndef.toByteArray().length, 0, ndef); in getSuccessResponse()
/packages/apps/TV/common/src/com/android/tv/common/feature/
DSdk.java47 return Build.VERSION.SDK_INT == mVersionCode in isEnabled()
48 && Build.VERSION.PREVIEW_SDK_INT >= mPreviewCode; in isEnabled()
50 return Build.VERSION.SDK_INT == mVersionCode in isEnabled()
51 && Build.VERSION.PREVIEW_SDK_INT == mPreviewCode; in isEnabled()
/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/apps/TV/src/com/android/tv/util/
DPermissionUtils.java17 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { in hasAccessAllEpg()
32 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { in hasAccessWatchedHistory()
47 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { in hasModifyParentalControls()
61 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { in hasReadTvListings()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DAdditionalSubtypeUtilsTests.java110 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { in assertEnUsDvorak()
112 } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { in assertEnUsDvorak()
114 } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { in assertEnUsDvorak()
133 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { in assertAzerty()
135 } 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/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/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/
DExtendableParcelableTest.java42 private static final int VERSION = 1; field in ExtendableParcelableTest.V1Parcelable
45 super(VERSION); in V1Parcelable()
53 super(in, VERSION); in V1Parcelable()
110 private static final int VERSION = 2; field in ExtendableParcelableTest.V2Parcelable
114 super(VERSION); in V2Parcelable()
124 super(in, VERSION); in V2Parcelable()
201 private static final int VERSION = 3; field in ExtendableParcelableTest.V3Parcelable
205 super(VERSION); in V3Parcelable()
217 super(in, VERSION); in V3Parcelable()
/packages/services/Car/car-support-lib/src/android/support/car/navigation/
DCarNavigationInstrumentCluster.java33 private static final int VERSION = 1; field in CarNavigationInstrumentCluster
131 super(VERSION); in CarNavigationInstrumentCluster()
156 super(in, VERSION); in CarNavigationInstrumentCluster()
/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/ContactsCommon/src/com/android/contacts/common/compat/
DSdkVersionOverride.java19 import android.os.Build.VERSION;
43 return ALLOW_OVERRIDE_VERSION ? overrideVersion : VERSION.SDK_INT; in getSdkVersion()
/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/TV/src/com/android/tv/ui/
DTunableTvView.java270 } else if (android.os.Build.VERSION.SDK_INT >=
608 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { in tuneTo()
712 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { in unblockContent()
1169 …if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M || mTimeShiftAvailable == isTimeShiftAvailable) { in setTimeShiftAvailable()
1217 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { in timeshiftPlay()
1234 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { in timeshiftPause()
1253 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { in timeshiftRewind()
1274 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { in timeshiftFastForward()
1295 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { in timeshiftSeekTo()
1309 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { in timeshiftGetCurrentPositionMs()
/packages/apps/Settings/src/com/android/settings/widget/
DDotsPageIndicator.java151 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in DotsPageIndicator()
320 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { in clearAnimation()
354 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in drawUnselected()
368 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in drawUnselected()
437 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in getUnselectedPath()
468 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in getUnselectedPath()
564 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { in setSelectedPage()
/packages/experimental/PrintService/src/foo/bar/printservice/
DMyPrintService.java242 if (Build.VERSION.SDK_INT >= 24) { in handlePrintJobProgress()
401 if (Build.VERSION.SDK_INT >= 24) { in FakePrinterDiscoverySession()
407 if (Build.VERSION.SDK_INT >= 24) { in FakePrinterDiscoverySession()
420 if (Build.VERSION.SDK_INT >= 24) { in FakePrinterDiscoverySession()
472 if (Build.VERSION.SDK_INT >= 23) { in onStartPrinterStateTracking()
/packages/apps/TV/src/com/android/tv/data/
DGenreItems.java72 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP_MR1) { in createGenres()
85 String[] items = Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP_MR1 in getLabels()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
DValuesDeltaTests.java52 final boolean isInsert = Build.VERSION.SDK_INT >= Build.VERSION_CODES.M in testValuesDiffInsert()
85 final boolean isUpdate = Build.VERSION.SDK_INT >= Build.VERSION_CODES.M in testValuesDiffUpdate()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java104 public static final boolean ATLEAST_N = Build.VERSION.SDK_INT >= Build.VERSION_CODES.N;
107 Build.VERSION.SDK_INT >= Build.VERSION_CODES.M;
110 Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1;
113 Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP;
116 Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
119 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1;
122 Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2;
/packages/services/Car/car-support-lib/src/android/support/car/hardware/
DCarSensorEvent.java41 private static final int VERSION = 1; field in CarSensorEvent
210 super(in, VERSION); in CarSensorEvent()
254 super(VERSION); in CarSensorEvent()
263 super(VERSION); in CarSensorEvent()

12345