/external/chromium_org/gpu/command_buffer/common/ |
id_allocator.h | 22 typedef uint32_t ResourceId; 24 static const ResourceId kInvalidResource = 0u; 31 virtual ResourceId AllocateID() = 0; 35 virtual ResourceId AllocateIDAtOrAbove(ResourceId desired_id) = 0; 38 virtual bool MarkAsUsed(ResourceId id) = 0; 41 virtual void FreeID(ResourceId id) = 0; 44 virtual bool InUse(ResourceId id) const = 0; 54 virtual ResourceId AllocateID() OVERRIDE; 55 virtual ResourceId AllocateIDAtOrAbove(ResourceId desired_id) OVERRIDE [all...] |
id_allocator.cc | 20 ResourceId IdAllocator::AllocateID() { 21 ResourceId id; 36 ResourceId IdAllocator::AllocateIDAtOrAbove(ResourceId desired_id) { 37 ResourceId id; 54 bool IdAllocator::MarkAsUsed(ResourceId id) { 61 void IdAllocator::FreeID(ResourceId id) { 68 bool IdAllocator::InUse(ResourceId id) const { 72 ResourceId IdAllocator::LastUsedId() const { 80 ResourceId IdAllocator::FindFirstUnusedId() const [all...] |
id_allocator_test.cc | 30 ResourceId id1 = allocator->AllocateID(); 35 ResourceId id2 = allocator->AllocateID(); 53 allocator->AllocateIDAtOrAbove(~static_cast<ResourceId>(0)); 57 ResourceId ids[kNumResources]; 64 ResourceId id1 = ids[kNumResources / 2]; 67 ResourceId id2 = allocator->AllocateID(); 75 ResourceId id = allocator->AllocateID(); 80 ResourceId id2 = allocator->AllocateID(); 83 ResourceId id3 = allocator->AllocateID(); 91 const ResourceId kOffset = 123456 [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/ |
IntegerResourceLoader.java | 13 public int getValue( int resourceId ) { 14 final String resourceIdDebugString = String.valueOf(resourceId) + " (" + "0x" + Integer.toHexString(resourceId) + ")"; 15 String resourceName = resourceExtractor.getResourceName(resourceId); 17 throw new IllegalArgumentException("No such resource: " + resourceId); 28 Integer resourceId = resourceExtractor.getResourceId(resourceName, isSystem); 32 return getValue(resourceId);
|
StringResourceLoader.java | 12 public String getValue(int resourceId) { 13 return stringResolver.getValue(resourceExtractor.getResourceName(resourceId));
|
DimenResourceLoader.java | 15 public float getValue(int resourceId) { 16 return dimenResolver.getValue(resourceExtractor.getResourceName(resourceId));
|
RawResourceLoader.java | 18 public InputStream getValue(int resourceId) { 19 String resourceFileName = resourceExtractor.getResourceName(resourceId);
|
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/ |
PictureData.java | 22 int resourceId; 26 public PictureData(int resourceId, String description, Bitmap thumbnail) { 27 this.resourceId = resourceId;
|
/external/chromium_org/cc/resources/ |
resource_provider.h | 60 typedef unsigned ResourceId; 61 typedef std::vector<ResourceId> ResourceIdArray; 62 typedef std::set<ResourceId> ResourceIdSet; 63 typedef base::hash_map<ResourceId, ResourceId> ResourceIdMap; 101 bool InUseByConsumer(ResourceId id); 103 bool IsLost(ResourceId id); 104 bool AllowOverlay(ResourceId id); 109 ResourceType GetResourceType(ResourceId id); 112 ResourceId CreateResource(const gfx::Size& size [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowImageView.java | 23 private int resourceId; 53 this.resourceId = resId; 60 * @param resourceId Resource id 63 protected Drawable buildDrawable(int resourceId) { 64 if (isDrawableXml(resourceId)) { 66 int[] resourceIds = resourceLoader.getDrawableIds(resourceId); 72 if (resourceLoader.isAnimatableXml(resourceId)) { 80 shadowOf(layerDrawable).setLoadedFromResourceId(resourceId); 85 getResources(), resourceId)); 92 * @param resourceId Resource i [all...] |
/packages/services/Telephony/src/com/android/services/telephony/ |
DisconnectCauseUtil.java | 151 Integer resourceId = null; 154 resourceId = R.string.callFailed_userBusy; 158 resourceId = R.string.callFailed_congestion; 162 resourceId = R.string.callFailed_timedOut; 166 resourceId = R.string.callFailed_server_unreachable; 170 resourceId = R.string.callFailed_number_unreachable; 174 resourceId = R.string.callFailed_invalid_credentials; 178 resourceId = R.string.callFailed_server_error; 182 resourceId = R.string.callFailed_out_of_network; 187 resourceId = R.string.callFailed_noSignal [all...] |
/developers/build/prebuilts/gradle/AdapterTransition/Application/src/main/java/com/example/android/adaptertransition/ |
Meat.java | 24 public int resourceId; 27 public Meat(int resourceId, String title) { 28 this.resourceId = resourceId;
|
/developers/build/prebuilts/gradle/FragmentTransition/Application/src/main/java/com/example/android/fragmenttransition/ |
Meat.java | 24 public int resourceId; 27 public Meat(int resourceId, String title) { 28 this.resourceId = resourceId;
|
MeatAdapter.java | 31 public MeatAdapter(LayoutInflater inflater, int resourceId) { 33 mResourceId = resourceId; 48 return Meat.MEATS[position].resourceId; 72 holder.image.setImageResource(meat.resourceId);
|
/developers/samples/android/ui/transition/AdapterTransition/Application/src/main/java/com/example/android/adaptertransition/ |
Meat.java | 24 public int resourceId; 27 public Meat(int resourceId, String title) { 28 this.resourceId = resourceId;
|
/developers/samples/android/ui/transition/FragmentTransition/Application/src/main/java/com/example/android/fragmenttransition/ |
Meat.java | 24 public int resourceId; 27 public Meat(int resourceId, String title) { 28 this.resourceId = resourceId;
|
MeatAdapter.java | 31 public MeatAdapter(LayoutInflater inflater, int resourceId) { 33 mResourceId = resourceId; 48 return Meat.MEATS[position].resourceId; 72 holder.image.setImageResource(meat.resourceId);
|
/development/samples/browseable/AdapterTransition/src/com.example.android.adaptertransition/ |
Meat.java | 24 public int resourceId; 27 public Meat(int resourceId, String title) { 28 this.resourceId = resourceId;
|
/development/samples/browseable/FragmentTransition/src/com.example.android.fragmenttransition/ |
Meat.java | 24 public int resourceId; 27 public Meat(int resourceId, String title) { 28 this.resourceId = resourceId;
|
MeatAdapter.java | 31 public MeatAdapter(LayoutInflater inflater, int resourceId) { 33 mResourceId = resourceId; 48 return Meat.MEATS[position].resourceId; 72 holder.image.setImageResource(meat.resourceId);
|
/packages/apps/Camera2/src/com/android/camera/ |
SoundPlayer.java | 45 public void loadSound(int resourceId) { 46 int soundId = mSoundPool.load(mAppContext, resourceId, 1/* priority */); 47 mResourceToSoundId.put(resourceId, soundId); 54 public void play(int resourceId, float volume) { 55 Integer soundId = mResourceToSoundId.get(resourceId); 65 public void unloadSound(int resourceId) { 66 Integer soundId = mResourceToSoundId.get(resourceId);
|
/cts/tests/tests/content/src/android/content/cts/ |
Intent_ShortcutIconResourceTest.java | 32 final int resourceId = com.android.cts.content.R.string.notify; 43 resourceId); 45 resourceId); 53 resourceId); 55 resourceId);
|
/external/chromium_org/cc/surfaces/ |
surface_factory_unittest.cc | 48 void SubmitFrameWithResources(ResourceProvider::ResourceId* resource_ids, 62 void UnrefResources(ResourceProvider::ResourceId* ids_to_unref, 76 ResourceProvider::ResourceId* expected_returned_ids, 106 ResourceProvider::ResourceId first_frame_ids[] = {1, 2, 3}; 119 ResourceProvider::ResourceId expected_returned_ids[] = {1, 2, 3}; 129 ResourceProvider::ResourceId first_frame_ids[] = {1, 2, 3}; 151 ResourceProvider::ResourceId expected_returned_ids[] = {1, 2, 3}; 161 ResourceProvider::ResourceId first_frame_ids[] = {7}; 188 ResourceProvider::ResourceId first_frame_ids[] = {3, 4}; 195 ResourceProvider::ResourceId second_frame_ids[] = {4, 5} [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
WifiNetworksBrowseInfo.java | 211 int resourceId = 0; 218 resourceId = R.drawable.ic_settings_wifi_active_1; 221 resourceId = R.drawable.ic_settings_wifi_active_2; 224 resourceId = R.drawable.ic_settings_wifi_active_3; 227 resourceId = R.drawable.ic_settings_wifi_active_4; 234 resourceId = R.drawable.ic_settings_wifi_secure_active_1; 237 resourceId = R.drawable.ic_settings_wifi_secure_active_2; 240 resourceId = R.drawable.ic_settings_wifi_secure_active_3; 243 resourceId = R.drawable.ic_settings_wifi_secure_active_4; 248 return resourceId; [all...] |
/external/chromium_org/cc/test/ |
fake_ui_resource_layer_tree_host_impl.h | 24 virtual ResourceProvider::ResourceId ResourceIdForUIResource( 30 ResourceProvider::ResourceId fake_next_resource_id_;
|