/external/libdrm/tests/etnaviv/ |
etnaviv_bo_cache_test.c | 89 drmVersionPtr version; local 96 version = drmGetVersion(fd); 97 if (version) { 98 printf("Version: %d.%d.%d\n", version->version_major, 99 version->version_minor, version->version_patchlevel); 100 printf(" Name: %s\n", version->name); 101 printf(" Date: %s\n", version->date); 102 printf(" Description: %s\n", version->desc) [all...] |
/frameworks/support/jetifier/jetifier/core/src/main/kotlin/com/android/tools/build/jetifier/core/pom/ |
PomRewriteRule.kt | 4 * Licensed under the Apache License, Version 2.0 (the "License"); 48 if (checkVersion && (dep.version == null || dep.version!!.isEmpty())) { 50 "Version is missing in the POM rule for ${dep.groupId}:${dep.artifactId}!") 60 * Validates that the given [input] dependency has a valid version. 63 if (from.version == null || input.version == null) { 71 if (!areVersionsMatching(from.version!!, input.version!!)) { 72 Log.e(TAG, "Version mismatch! Expected version '%s' but found version '%s' for " [all...] |
DependencyVersions.kt | 4 * Licensed under the Apache License, Version 2.0 (the "License"); 45 "contain version set called '$name' or maybe you passed incorrect version " + 54 * Puts the given version into the map to be referred to using the given variable name. 58 * @param newVersion New version to be put into the map 59 * @param forVariable Then name of the variable to be used to refer to the version 69 /** Takes a version from a configuration file and rewrites any variables related to the map. */ 70 fun applyOnVersionRef(version: String): String { 71 if (version.matches(Regex("^\\{[a-zA-Z0-9]+\\}$"))) { 72 val variableName = version.removePrefix("{").removeSuffix("}" [all...] |
/external/elfutils/lib/ |
eu-config.h | 9 Software Foundation; either version 3 of the License, or (at 10 your option) any later version 15 Software Foundation; either version 2 of the License, or (at 16 your option) any later version 168 # define OLD_VERSION(name, version) \ 169 asm (".globl _compat." #version "." #name "\n" \ 170 "_compat." #version "." #name " = " #name "\n" \ 171 ".symver _compat." #version "." #name "," #name "@" #version); 172 # define NEW_VERSION(name, version) \ [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/versioncheck/ |
pyversioncheck.py | 17 def versioncheck(package, url, version, verbose=0):
18 ok, newversion, fp = checkonly(package, url, version, verbose)
22 print '%s: No correctly formatted current version file found'%(package)
24 print '%s: up-to-date (version %s)'%(package, version)
26 print '%s: version %s installed, version %s found:' % \
27 (package, version, newversion)
35 def checkonly(package, url, version, verbose=0):
39 ok, newversion, fp = _check1version(package, url, version, verbose) [all...] |
/external/python/cpython2/Tools/versioncheck/ |
pyversioncheck.py | 17 def versioncheck(package, url, version, verbose=0): 18 ok, newversion, fp = checkonly(package, url, version, verbose) 22 print '%s: No correctly formatted current version file found'%(package) 24 print '%s: up-to-date (version %s)'%(package, version) 26 print '%s: version %s installed, version %s found:' % \ 27 (package, version, newversion) 35 def checkonly(package, url, version, verbose=0): 39 ok, newversion, fp = _check1version(package, url, version, verbose [all...] |
/tools/tradefederation/core/src/com/android/tradefed/device/ |
AndroidDebugBridgeWrapper.java | 4 * Licensed under the Apache License, Version 2.0 (the "License"); 40 private static final Pattern SUB_VERSION_PATTERN = Pattern.compile(".*(Version )(.*)"); 90 getRunUtil().runTimedCmd(DdmPreferences.getTimeOut(), adbOsLocation, "version"); 92 StringBuilder version = new StringBuilder(); local 95 version.append(m.group(1)); 96 version.append("."); 97 version.append(m.group(2)); 98 version.append("."); 99 version.append(m.group(3)); 105 version.append("-") [all...] |
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
PacketReflector.java | 4 * Licensed under the Apache License, Version 2.0 (the "License"); 72 private static void swapAddresses(byte[] buf, int version) { 74 switch(version) { 91 private void processTcpPacket(byte[] buf, int version, int len, int hdrLen) { 97 swapAddresses(buf, version); 105 private void processUdpPacket(byte[] buf, int version, int len, int hdrLen) { 111 swapAddresses(buf, version); 121 private void processIcmpPacket(byte[] buf, int version, int len, int hdrLen) { 127 if (!(version == 4 && type == ICMP_ECHO) && 128 !(version == 6 && type == ICMPV6_ECHO_REQUEST)) 201 int version = mBuf[0] >> 4; local [all...] |
/tools/tradefederation/contrib/src/com/android/tradefed/build/ |
TestzipDeviceBuildInfo.java | 4 * Licensed under the Apache License, Version 2.0 (the "License"); 26 private static final long serialVersionUID = BuildSerializedVersion.VERSION; 37 public void setTestzipDir(File testsZipFile, String version) { 38 mTestzipBuildInfo.setTestzipDir(testsZipFile, version); 109 public void setDeviceImageFile(File deviceImageFile, String version) { 110 mDeviceBuild.setDeviceImageFile(deviceImageFile, version); 133 public void setUserDataImageFile(File userDataFile, String version) { 134 mDeviceBuild.setUserDataImageFile(userDataFile, version); 157 public void setTestsDir(File testsDir, String version) { 158 mTestzipBuildInfo.setTestzipDir(testsDir, version); [all...] |
/tools/tradefederation/core/src/com/android/tradefed/build/ |
KernelDeviceBuildInfo.java | 4 * Licensed under the Apache License, Version 2.0 (the "License"); 25 private static final long serialVersionUID = BuildSerializedVersion.VERSION; 82 public void setDeviceImageFile(File deviceImageFile, String version) { 83 mDeviceBuild.setDeviceImageFile(deviceImageFile, version); 106 public void setUserDataImageFile(File userDataFile, String version) { 107 mDeviceBuild.setUserDataImageFile(userDataFile, version); 130 public void setTestsDir(File testsDir, String version) { 131 mDeviceBuild.setTestsDir(testsDir, version); 154 public void setBasebandImage(File basebandFile, String version) { 155 mDeviceBuild.setBasebandImage(basebandFile, version); [all...] |
/external/autotest/site_utils/ |
stable_version_utils.py | 15 # Name of the default board. For boards that don't have stable version 16 # explicitly set, version for the default board will be used. 27 versions = dict([(v.board, v.version) 38 """Get stable version for the given board. 42 board. There is no default version that works for all 46 @return: Stable version of the given board. If the given board is not listed 54 return models.StableVersion.objects.get(board=board).version 66 def set(version, board=DEFAULT): 67 """Set stable version for the given board. 69 @param version: The new value of stable version for given board [all...] |
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
MetaBox.java | 4 * Licensed under the Apache License, Version 2.0 (the License); 32 private int version = 0; field in class:MetaBox 71 version = -1; 75 version = IsoTypeReader.readUInt8(content); 93 IsoTypeWriter.writeUInt8(byteBuffer, version); 101 return version != -1 && flags != -1; 106 version = 0; 109 version = -1;
|
/external/python/cpython2/Doc/tools/extensions/ |
patchlevel.py | 6 Extract version info from Include/patchlevel.h. 35 release = version = '%s.%s' % (d['PY_MAJOR_VERSION'], d['PY_MINOR_VERSION']) 48 return version, release 53 release = version = '%s.%s' % (major, minor) 58 return version, release 65 version, release = get_sys_version_info() 66 print >>sys.stderr, 'Can\'t get version info from Include/patchlevel.h, ' \ 67 'using version of this interpreter (%s).' % release 68 return version, release
|
/external/python/cpython3/Doc/tools/extensions/ |
patchlevel.py | 6 Extract version info from Include/patchlevel.h. 37 release = version = '%s.%s' % (d['PY_MAJOR_VERSION'], d['PY_MINOR_VERSION']) 49 return version, release 54 release = version = '%s.%s' % (major, minor) 58 return version, release 65 version, release = get_sys_version_info() 66 print('Can\'t get version info from Include/patchlevel.h, ' \ 67 'using version of this interpreter (%s).' % release, file=sys.stderr) 68 return version, release
|
/external/skia/experimental/tools/ |
mskp_parser.py | 30 version, page_count = struct.unpack('II', src.read(8))[:2] 31 print('MSKP version: ', version) 33 if version > 2 or version < 1: 34 #TODO(halcanary): Remove support for version 1. 35 sys.stderr.write('unsupported mskp version\n') 40 if version == 1: 44 elif version == 2: 50 if version == 2 or len(offsets) < 2 [all...] |
/external/skqp/experimental/tools/ |
mskp_parser.py | 30 version, page_count = struct.unpack('II', src.read(8))[:2] 31 print('MSKP version: ', version) 33 if version > 2 or version < 1: 34 #TODO(halcanary): Remove support for version 1. 35 sys.stderr.write('unsupported mskp version\n') 40 if version == 1: 44 elif version == 2: 50 if version == 2 or len(offsets) < 2 [all...] |
/prebuilts/sdk/tools/ |
jack-diagnose | 5 # Licensed under the Apache License, Version 2.0 (the "License"); 17 # Version: 1.3-a11 61 if ! "$CURL_COMMAND" --version >/dev/null 2>&1 ; then 66 if "$CURL_COMMAND" --version | grep -q "SecureTransport" ; then 70 if "$CURL_COMMAND" --version | grep -q "OpenSSL/1.0.0" ; then 72 elif curl --version | grep -q "OpenSSL/0." ; then 86 if ! "$JAVA_COMMAND" -version >/dev/null 2>&1 ; then 92 JAVA_VERSION=$("$JAVA_COMMAND" -version 2>&1 | head -1 | grep --only-matching -e \"1\\.[0-9]* | cut -c 4-) 94 echo "'$JAVA_COMMAND': Failed to parse version, please ensure you're running a supported java" 162 echo "'$BASE64_COMMAND' is not a supported version" [all...] |
/external/ltp/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ |
ext4_inode_version_test.sh | 9 ## the Free Software Foundation; either version 2 of the License, or ## 10 ## (at your option) any later version. ## 26 export TCID="ext4-inode-version" 31 # Test that inode version is not 32 bits with 128 inode size 34 tst_resm TINFO "Test inode version is 32 bits with 128 inode size" 50 # inode version > 0 53 version=`ext4_get_inode_version.sh tmp_file` 55 if [ $version -lt 1 ]; then 56 tst_resm TFAIL "inode version is smaller than 1" 61 # inode version is 32 bits: 0x0000000 [all...] |
/kernel/tests/net/test/ |
qtaguid_test.py | 5 # Licensed under the Apache License, Version 2.0 (the "License"); 57 def SetIptablesRule(self, version, is_add, is_gid, my_id, inverted): 64 self.assertFalse(net_test.RunIptablesCommand(version, args)) 66 def AddIptablesRule(self, version, is_gid, myId): 67 self.SetIptablesRule(version, True, is_gid, myId, False) 69 def AddIptablesInvertedRule(self, version, is_gid, myId): 70 self.SetIptablesRule(version, True, is_gid, myId, True) 72 def DelIptablesRule(self, version, is_gid, myId): 73 self.SetIptablesRule(version, False, is_gid, myId, False) 75 def DelIptablesInvertedRule(self, version, is_gid, myId) [all...] |
/external/boringssl/src/crypto/x509/ |
x509rset.c | 52 * The licence and distribution terms for any publically available version or 62 int X509_REQ_set_version(X509_REQ *x, long version) 66 return (ASN1_INTEGER_set(x->req_info->version, version));
|
/external/libdrm/nouveau/nvif/ |
if0002.h | 9 __u8 version; member in struct:nvif_perfmon_query_domain_v0 19 __u8 version; member in struct:nvif_perfmon_query_signal_v0 29 __u8 version; member in struct:nvif_perfmon_query_source_v0
|
/external/python/cpython3/Tools/scripts/ |
checkpip.py | 3 Checks that the version of the projects bundled in ensurepip are the latest 15 for project, version in ensurepip._PROJECTS: 20 upstream_version = data["info"]["version"] 22 if version != upstream_version: 24 print("The latest version of {} on PyPI is {}, but ensurepip " 25 "has {}".format(project, upstream_version, version))
|
/frameworks/base/core/tests/coretests/src/android/text/ |
EmojiTest.java | 4 * Licensed under the Apache License, Version 2.0 (the "License"); 32 * where the existing ICU version is not aware of the latest emoji that Android supports. 74 for (int version = 0; version < data.length; version++) { 75 for (int row = 0; row < data[version].length; row++) { 76 for (int c = data[version][row][0]; c < data[version][row][1]; c++) { 111 for (int version = 0; version < data.length; version++) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
DbDowngradeHelper.java | 4 * Licensed under the Apache License, Version 2.0 (the "License"); 45 private static final String KEY_VERSION = "version"; 49 public final int version; field in class:DbDowngradeHelper 51 private DbDowngradeHelper(int version) { 52 this.version = version; 61 throw new SQLiteException("Downgrade path not supported to version " + i); 77 for (int version = helper.version - 1; version > 0; version--) [all...] |
/prebuilts/ndk/r16/sources/third_party/shaderc/libshaderc_util/src/ |
version_profile.cc | 3 // Licensed under the Apache License, Version 2.0 (the "License"); 31 bool ParseVersionProfile(const std::string& version_profile, int* version, 39 std::istringstream(version_profile) >> *version >> profile_string; 41 if (!IsKnownVersion(*version)) {
|