/frameworks/base/libs/androidfw/tests/ |
H A D | ResourceUtils_test.cpp | 24 StringPiece package, type, entry; local 25 ASSERT_TRUE(ExtractResourceName("android:string/foo", &package, &type, &entry)); 28 EXPECT_EQ("foo", entry); 30 ASSERT_TRUE(ExtractResourceName("@android:string/foo", &package, &type, &entry)); 33 EXPECT_EQ("foo", entry); 35 ASSERT_TRUE(ExtractResourceName("string/foo", &package, &type, &entry)); 38 EXPECT_EQ("foo", entry); 40 ASSERT_TRUE(ExtractResourceName("@string/foo", &package, &type, &entry)); 43 EXPECT_EQ("foo", entry); 45 ASSERT_TRUE(ExtractResourceName("foo", &package, &type, &entry)); [all...] |
/frameworks/base/tools/aapt/tests/ |
H A D | AaptGroupEntry_test.cpp | 26 static ::testing::AssertionResult TestParse(AaptGroupEntry& entry, const String8& dirName, argument 28 if (entry.initFromDirName(dirName, outType)) { 34 static ::testing::AssertionResult TestParse(AaptGroupEntry& entry, const char* input, argument 36 return TestParse(entry, String8(input), outType); 40 AaptGroupEntry entry; local 42 EXPECT_TRUE(TestParse(entry, "menu", &type)); 47 AaptGroupEntry entry; local 49 EXPECT_TRUE(TestParse(entry, "anim", &type)); 52 EXPECT_TRUE(TestParse(entry, "animator", &type));
|
/frameworks/base/telecomm/java/android/telecom/Logging/ |
H A D | TimedEvent.java | 34 for (TimedEvent<T> entry : events) { 35 if (counts.containsKey(entry.getKey())) { 36 counts.put(entry.getKey(), counts.get(entry.getKey()) + 1); 37 result.put(entry.getKey(), result.get(entry.getKey()) + entry.getTime()); 39 counts.put(entry.getKey(), 1); 40 result.put(entry.getKey(), (double) entry [all...] |
/frameworks/base/telecomm/java/android/telecom/ |
H A D | TimedEvent.java | 34 for (TimedEvent<T> entry : events) { 35 if (counts.containsKey(entry.getKey())) { 36 counts.put(entry.getKey(), counts.get(entry.getKey()) + 1); 37 result.put(entry.getKey(), result.get(entry.getKey()) + entry.getTime()); 39 counts.put(entry.getKey(), 1); 40 result.put(entry.getKey(), (double) entry [all...] |
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
H A D | CSVFormatter.java | 42 public String getOutput(TrackerEntry entry) { argument 45 rowOutput.append(entry.getTimestamp()); 47 rowOutput.append(entry.getTag()); 49 //rowOutput.append(entry.getType()); 51 if (entry.getType() == EntryType.LOCATION_TYPE) { 52 if (entry.getLocation().hasAccuracy()) { 53 rowOutput.append(entry.getLocation().getAccuracy()); 56 rowOutput.append(entry.getLocation().getLatitude()); 58 rowOutput.append(entry.getLocation().getLongitude()); 60 if (entry [all...] |
H A D | IFormatter.java | 25 String getOutput(TrackerEntry entry); argument
|
/frameworks/compile/mclinker/lib/MC/ |
H A D | SearchDirs.cpp | 92 MCLDDirectory::iterator entry = (*mcld_dir)->begin(); local 97 while (entry != enEnd) { 98 if (file == entry.path()->filename().native()) 99 return entry.path(); 100 ++entry; 105 while (entry != enEnd) { 106 if (file == entry.path()->stem().native()) { 108 entry.path()->extension().native()) { 109 return entry.path(); 112 ++entry; 157 MCLDDirectory::iterator entry = (*mcld_dir)->begin(); local [all...] |
/frameworks/opt/vcard/java/com/android/vcard/ |
H A D | VCardEntryHandler.java | 34 * The method called when one vCard entry is created. Children come before their parent in 38 * In the following vCard, the entry for "entry2" comes before one for "entry1". 48 public void onEntryCreated(final VCardEntry entry); argument
|
/frameworks/ex/framesequence/jni/ |
H A D | FrameSequence.cpp | 22 const RegistryEntry* entry = Registry::Find(stream); local 24 if (!entry) return NULL; 26 FrameSequence* frameSequence = entry->createFrameSequence(stream);
|
/frameworks/base/core/java/android/content/res/ |
H A D | ConfigurationBoundResourceCache.java | 38 final ConstantState<T> entry = get(key, theme); 39 if (entry != null) { 40 return entry.newInstance(resources, theme); 47 public boolean shouldInvalidateEntry(ConstantState<T> entry, @Config int configChanges) { argument 48 return Configuration.needNewResources(configChanges, entry.getChangingConfigurations());
|
H A D | DrawableCache.java | 35 final Drawable.ConstantState entry = get(key, theme); 36 if (entry != null) { 37 return entry.newDrawable(resources, theme); 44 public boolean shouldInvalidateEntry(Drawable.ConstantState entry, int configChanges) { argument 45 return Configuration.needNewResources(configChanges, entry.getChangingConfigurations());
|
/frameworks/compile/mclinker/unittests/ |
H A D | DirIteratorTest.cpp | 47 Directory::iterator entry = m_pDir->begin(); local 51 while (entry != enEnd) { 52 if (0 != entry.path()) { 53 size = entry.path()->native().size(); 57 ++entry;
|
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | GnssGeofenceProvider.java | 58 GeofenceEntry entry = mGeofenceEntries.valueAt(i); 59 boolean added = mNative.addGeofence(entry.geofenceId, entry.latitude, 60 entry.longitude, 61 entry.radius, 62 entry.lastTransition, entry.monitorTransitions, 63 entry.notificationResponsiveness, entry.unknownTimer); 64 if (added && entry [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerStreamListener.cpp | 56 QueueEntry entry; local 57 entry.mIsCommand = false; 58 entry.mIndex = index; 59 entry.mSize = size; 60 entry.mOffset = 0; 63 mQueue.push_back(entry); 78 QueueEntry entry; local 79 entry.mIsCommand = true; 80 entry.mCommand = cmd; 81 entry 113 QueueEntry *entry = &*mQueue.begin(); local [all...] |
/frameworks/base/tools/aapt/ |
H A D | ResourceFilter.cpp | 27 std::pair<ConfigDescription, uint32_t>& entry = mConfigs.editItemAt(i); local 33 val.writeTo(&entry.first); 34 } else if (!AaptConfig::parse(part, &entry.first)) { 39 entry.second = mDefault.diff(entry.first); 42 entry.second &= ~ResTable_config::CONFIG_VERSION; 45 if ((entry.second & ResTable_config::CONFIG_DENSITY) != 0) { 46 fprintf(stderr, "warning: ignoring flag -c %s. Use --preferred-density instead.\n", entry.first.toString().string()); 47 entry.first.density = 0; 48 entry 71 scriptsMatch(const ResTable_config& config, const ResTable_config& entry) argument 109 const std::pair<ConfigDescription, uint32_t>& entry = mConfigs[i]; local [all...] |
/frameworks/base/libs/hwui/ |
H A D | LayerUpdateQueue.cpp | 32 for (Entry& entry : mEntries) { 33 if (CC_UNLIKELY(entry.renderNode == renderNode)) { 34 entry.damage.unionWith(damage);
|
/frameworks/base/libs/hwui/font/ |
H A D | FontCacheHistoryTracker.cpp | 30 void FontCacheHistoryTracker::dumpRenderEntry(String8& log, const RenderEntry& entry) { argument 31 if (entry.penX == -1 && entry.penY == -1) { 32 log.appendFormat(" glyph skipped in gen: %d\n", entry.glyph.generation); 35 dumpCachedGlyph(log, entry.glyph); 36 log.appendFormat(" at (%d, %d)\n", entry.penX, entry.penY); 64 RenderEntry& entry = mRenderHistory.next(); local 65 entry.glyph.generation = generation; 66 entry [all...] |
/frameworks/base/tools/aapt2/format/binary/ |
H A D | ResourceTypeExtensions.h | 26 android::ResTable_entry entry; member in struct:aapt::ResTable_entry_ext
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | SmartReplyController.java | 39 public void smartReplySent(NotificationData.Entry entry, int replyIndex, CharSequence reply) { argument 43 notificationEntryManager.rebuildNotificationWithRemoteInput(entry, reply, 46 mSendingKeys.add(entry.key); 49 mBarService.onNotificationSmartReplySent(entry.notification.getKey(), 64 public void smartRepliesAdded(final NotificationData.Entry entry, int replyCount) { argument 66 mBarService.onNotificationSmartRepliesAdded(entry.notification.getKey(), 73 public void stopSending(final NotificationData.Entry entry) { argument 74 if (entry != null) { 75 mSendingKeys.remove(entry.notification.getKey());
|
/frameworks/base/tools/aapt2/optimize/ |
H A D | ResourceDeduper.cpp | 31 * Based on the dominator tree, we can remove a value of an entry if: 33 * 1. The configuration for the entry's value is dominated by a configuration 34 * with an equivalent entry value. 35 * 2. All compatible configurations for the entry (those not in conflict and 36 * unrelated by domination with the configuration for the entry's value) have 37 * an equivalent entry value. 43 explicit DominatedKeyValueRemover(IAaptContext* context, ResourceEntry* entry) argument 44 : context_(context), entry_(entry) {} 60 // Compare compatible configs for this entry and ensure the values are 93 static void DedupeEntry(IAaptContext* context, ResourceEntry* entry) { argument [all...] |
/frameworks/base/core/java/com/android/internal/net/ |
H A D | NetworkStatsFactory.java | 102 for (Map.Entry<String, String> entry : sStackedIfaces.entrySet()) { 103 if (relatedIfaces.contains(entry.getKey())) { 104 relatedIfaces.add(entry.getValue()); 105 } else if (relatedIfaces.contains(entry.getValue())) { 106 relatedIfaces.add(entry.getKey()); 165 final NetworkStats.Entry entry = new NetworkStats.Entry(); 172 entry.iface = reader.nextString(); 173 entry.uid = UID_ALL; 174 entry.set = SET_ALL; 175 entry [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | LaunchTimeTracker.java | 33 Entry entry = mWindowingModeLaunchTime.get(r.getWindowingMode()); 34 if (entry == null){ 35 entry = new Entry(); 36 mWindowingModeLaunchTime.append(r.getWindowingMode(), entry); 38 entry.setLaunchTime(r); 42 final Entry entry = mWindowingModeLaunchTime.get(windowingMode); 43 if (entry == null) { 46 entry.stopFullyDrawnTraceIfNeeded();
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | DisplaySettings.java | 71 // Try to get the entry with the unique if possible. 73 Entry entry; 74 if (uniqueId == null || (entry = mEntries.get(uniqueId)) == null) { 75 entry = mEntries.get(name); 77 if (entry != null) { 78 outRect.left = entry.overscanLeft; 79 outRect.top = entry.overscanTop; 80 outRect.right = entry.overscanRight; 81 outRect.bottom = entry.overscanBottom; 91 // we have no need for the entry [all...] |
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/ |
H A D | SimpleRecipientChip.java | 42 public SimpleRecipientChip(final RecipientEntry entry) { argument 43 mDisplay = entry.getDisplayName(); 44 mValue = entry.getDestination().trim(); 45 mContactId = entry.getContactId(); 46 mDirectoryId = entry.getDirectoryId(); 47 mLookupKey = entry.getLookupKey(); 48 mDataId = entry.getDataId(); 49 mEntry = entry;
|
/frameworks/base/core/java/android/net/ |
H A D | NetworkStats.java | 306 NetworkStats.Entry entry = null; 308 entry = getValues(i, entry); 309 clone.addValues(entry); 357 * Add new stats entry, copying from given {@link Entry}. The {@link Entry} 360 public NetworkStats addValues(Entry entry) { argument 378 setValues(size, entry); 384 private void setValues(int i, Entry entry) { argument 385 iface[i] = entry.iface; 386 uid[i] = entry 463 combineValues(Entry entry) argument [all...] |