/libcore/jsr166-tests/src/test/java/jsr166/ |
AtomicLongTest.java | 37 AtomicLong ai = new AtomicLong(1); local 38 assertEquals(1, ai.get()); 45 AtomicLong ai = new AtomicLong(); local 46 assertEquals(0, ai.get()); 53 AtomicLong ai = new AtomicLong(1); local 54 assertEquals(1, ai.get()); 55 ai.set(2); 56 assertEquals(2, ai.get()); 57 ai.set(-3); 58 assertEquals(-3, ai.get()) 65 AtomicLong ai = new AtomicLong(1); local 77 AtomicLong ai = new AtomicLong(1); local 92 final AtomicLong ai = new AtomicLong(1); local 111 AtomicLong ai = new AtomicLong(1); local 123 AtomicLong ai = new AtomicLong(1); local 133 AtomicLong ai = new AtomicLong(1); local 144 AtomicLong ai = new AtomicLong(1); local 154 AtomicLong ai = new AtomicLong(1); local 168 AtomicLong ai = new AtomicLong(1); local 179 AtomicLong ai = new AtomicLong(1); local 190 AtomicLong ai = new AtomicLong(1); local 219 AtomicLong ai = new AtomicLong(); local 231 AtomicLong ai = new AtomicLong(); local 243 AtomicLong ai = new AtomicLong(); local 255 AtomicLong ai = new AtomicLong(); local 267 AtomicLong ai = new AtomicLong(); local [all...] |
DoubleAdderTest.java | 32 DoubleAdder ai = new DoubleAdder(); local 33 assertEquals(0.0, ai.sum()); 40 DoubleAdder ai = new DoubleAdder(); local 41 ai.add(2.0); 42 assertEquals(2.0, ai.sum()); 43 ai.add(-4.0); 44 assertEquals(-2.0, ai.sum()); 51 DoubleAdder ai = new DoubleAdder(); local 52 ai.add(2.0); 53 assertEquals(2.0, ai.sum()) 62 DoubleAdder ai = new DoubleAdder(); local 87 DoubleAdder ai = new DoubleAdder(); local 97 DoubleAdder ai = new DoubleAdder(); local 107 DoubleAdder ai = new DoubleAdder(); local 117 DoubleAdder ai = new DoubleAdder(); local 127 DoubleAdder ai = new DoubleAdder(); local [all...] |
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
IntPrimitiveOpsTests.java | 72 AtomicInteger ai = new AtomicInteger(0); local 73 IntStream.range(1, 10).parallel().filter(i -> i % 2 == 0).forEach(ai::addAndGet); 74 assertEquals(ai.get(), 20);
|
IntSliceOpTest.java | 191 AtomicInteger ai = new AtomicInteger(); local 193 .peek(i -> ai.getAndIncrement()) 196 assertEquals(ai.get(), l, "tee block was called too many times");
|
LongPrimitiveOpsTests.java | 72 AtomicLong ai = new AtomicLong(0); local 73 LongStream.range(1, 10).parallel().filter(i -> i % 2 == 0).forEach(ai::addAndGet); 74 assertEquals(ai.get(), 20);
|
/frameworks/base/core/java/android/app/ |
AliasActivity.java | 58 ActivityInfo ai = getPackageManager().getActivityInfo( local 60 parser = ai.loadXmlMetaData(getPackageManager(),
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
ApplicationUtils.java | 38 final ActivityInfo ai = context.getPackageManager().getActivityInfo(cn, 0); local 39 if (ai != null) { 40 return ai.labelRes;
|
/bionic/tests/ |
netdb_test.cpp | 34 addrinfo* ai = NULL; local 35 ASSERT_EQ(0, getaddrinfo(NULL, "smtp", NULL, &ai)); 37 ASSERT_EQ(25U, ntohs(reinterpret_cast<sockaddr_in*>(ai->ai_addr)->sin_port)); 38 freeaddrinfo(ai); 43 addrinfo* ai = NULL; local 44 ASSERT_EQ(0, getaddrinfo("localhost", NULL, NULL, &ai)); 45 ASSERT_TRUE(ai != NULL); 46 freeaddrinfo(ai); 50 addrinfo* ai = NULL; local 51 ASSERT_EQ(0, getaddrinfo("localhost", "9999", NULL, &ai)); 72 addrinfo* ai = NULL; local 87 addrinfo* ai = NULL; local 103 addrinfo* ai = NULL; local [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/ |
CarDockTestActivity.java | 77 ActivityInfo ai = null; local 81 ai = info.activityInfo; 83 if (!ai.packageName.equals(getPackageName())) {
|
/external/icu/icu4c/source/tools/genrb/ |
rle.c | 241 int32_t ai = 0; local 269 target[ai++] = c; 275 target[ai++] = runValue; 280 target[ai++] = c; 284 if (ai != length){ 303 int32_t ai=0; local 325 for (; ai<tgtLen; ) { 354 target[ai++] = b; 362 target[ai++] = ESCAPE_BYTE; 377 if(ai<tgtLen) [all...] |
/external/ipsec-tools/src/racoon/ |
kmpstat.c | 212 struct addrinfo hint, *ai; local 220 error = getaddrinfo(name, port, &hint, &ai); 226 return ai->ai_addr;
|
/packages/apps/Settings/src/com/android/settings/ |
ShowAdminSupportDetailsDialog.java | 92 ActivityInfo ai = null; local 94 ai = AppGlobals.getPackageManager().getReceiverInfo(admin, 0 /* flags */, 99 if (ai != null) { 100 Drawable icon = ai.loadIcon(getPackageManager());
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
RequestIgnoreBatteryOptimizations.java | 73 ApplicationInfo ai; local 75 ai = getPackageManager().getApplicationInfo(mPackageName, 0); 93 p.mMessage = getString(R.string.high_power_prompt_body, ai.loadLabel(getPackageManager()));
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsIcuTest.java | 31 final AlphabeticIndex ai = new AlphabeticIndex(Locale.forLanguageTag(localeTags[0])); local 35 ai.addLabels(Locale.forLanguageTag(localeTags[i])); 38 final ImmutableIndex index = ai.buildImmutableIndex();
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
KeyphraseEnrollmentInfo.java | 118 ApplicationInfo ai = pm.getApplicationInfo( local 120 if ((ai.privateFlags & ApplicationInfo.PRIVATE_FLAG_PRIVILEGED) == 0) { 123 Slog.w(TAG, ai.packageName + "is not a privileged system app"); 126 if (!Manifest.permission.MANAGE_VOICE_KEYPHRASES.equals(ai.permission)) { 129 Slog.w(TAG, ai.packageName + " does not require MANAGE_VOICE_KEYPHRASES"); 134 getKeyphraseMetadataFromApplicationInfo(pm, ai, parseErrors), 135 ai.packageName); 160 ApplicationInfo ai, List<String> parseErrors) { 162 String packageName = ai.packageName; 165 parser = ai.loadXmlMetaData(pm, VOICE_KEYPHRASE_META_DATA) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/ |
AttributeListImplTest.java | 45 AttributeListImpl ai = new AttributeListImpl(empty); local 46 assertEquals(0, ai.getLength()); 49 ai = new AttributeListImpl(multi); 50 assertEquals(3, ai.getLength()); 54 ai = new AttributeListImpl(null); 55 assertEquals(0, ai.getLength()); 134 AttributeListImpl ai = new AttributeListImpl(empty); local 135 assertEquals(0, ai.getLength()); 137 ai = new AttributeListImpl(multi); 138 assertEquals(3, ai.getLength()) [all...] |
/packages/apps/Nfc/src/com/android/nfc/ |
RegisteredComponentCache.java | 180 ActivityInfo ai = info.activityInfo; local 184 parser = ai.loadXmlMetaData(pm, mMetaDataName); 189 parseTechLists(pm.getResourcesForApplication(ai.applicationInfo), ai.packageName, 192 throw new XmlPullParserException("Unable to load resources for " + ai.packageName);
|
/build/kati/ |
command.cc | 103 auto& ai = ce_->current_dep_node()->actual_inputs; local 104 if (!ai.empty()) 105 *s += ai[0].str(); 111 for (Symbol ai : ce_->current_dep_node()->actual_inputs) { 112 if (seen.insert(ai.str()).second) 113 ww.Write(ai.str()); 119 for (Symbol ai : ce_->current_dep_node()->actual_inputs) { 120 ww.Write(ai.str());
|
/development/ndk/platforms/android-17/samples/Teapot/src/com/sample/helper/ |
NDKHelper.java | 169 ApplicationInfo ai = context.getApplicationInfo(); local 171 Log.w("NDKHelper", "ai.nativeLibraryDir:" + ai.nativeLibraryDir); 173 if ((ai.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0 174 || (ai.flags & ApplicationInfo.FLAG_SYSTEM) == 0) 176 return ai.nativeLibraryDir;
|
/development/ndk/platforms/android-18/samples/MoreTeapots/src/com/sample/helper/ |
NDKHelper.java | 169 ApplicationInfo ai = context.getApplicationInfo(); local 171 Log.w("NDKHelper", "ai.nativeLibraryDir:" + ai.nativeLibraryDir); 173 if ((ai.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0 174 || (ai.flags & ApplicationInfo.FLAG_SYSTEM) == 0) 176 return ai.nativeLibraryDir;
|
/external/clang/test/SemaCXX/ |
atomic-type.cpp | 28 void test_overloading(int i, float f, _Atomic(int) ai, _Atomic(float) af, 32 int& ir2 = ovl1(ai); 90 _Atomic(int) ai = { 4 }; // expected-error {{illegal initializer type}} member in namespace:copy_init
|
/external/clang/test/SemaTemplate/ |
instantiate-field.cpp | 91 A<int> ai; // expected-note{{in instantiation of}} member in namespace:PR7355
|
/external/curl/CMake/ |
CurlTests.c | 268 struct addrinfo hints, *ai; local 277 error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
|
/external/javassist/src/main/javassist/bytecode/ |
ClassFilePrinter.java | 98 AttributeInfo ai = (AttributeInfo)list.get(i); local 99 if (ai instanceof CodeAttribute) { 100 CodeAttribute ca = (CodeAttribute)ai; 101 out.println("attribute: " + ai.getName() + ": " 102 + ai.getClass().getName()); 111 else if (ai instanceof AnnotationsAttribute) { 112 out.println("annnotation: " + ai.toString()); 114 else if (ai instanceof ParameterAnnotationsAttribute) { 115 out.println("parameter annnotations: " + ai.toString()); 117 else if (ai instanceof StackMapTable) [all...] |
/external/lzma/CPP/7zip/UI/Common/ |
UpdatePair.cpp | 140 const CArcItem *ai = NULL;
local 154 ai = &arcItems[arcIndex2];
158 compareResult = CompareFileNames(dirNames[dirIndex2], ai->Name);
161 if (di->IsDir() != ai->IsDir)
162 compareResult = (ai->IsDir ? 1 : -1);
176 name = &ai->Name;
177 pair.State = ai->Censored ?
187 ThrowError(k_Duplicate_inArc_Message, ai->Name, arcItems[arcIndices[arcIndex + dupl]].Name);
190 if (!ai->Censored)
191 ThrowError(k_NotCensoredCollision_Message, *name, ai->Name); [all...] |