/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowGallery.java | 12 @RealObject Gallery gallery; field in class:ShadowGallery 20 onKeyListener.onKey(gallery, keyCode, event);
|
/external/chromium_org/chrome/browser/ui/views/extensions/ |
H A D | media_galleries_dialog_views_unittest.cc | 24 MediaGalleryPrefInfo gallery; local 25 gallery.pref_id = id; 26 gallery.device_id = storage_monitor::StorageInfo::MakeDeviceId( 29 gallery.display_name = base::ASCIIToUTF16("Display Name"); 30 return gallery; 109 // a gallery that the dialog hasn't seen before.
|
H A D | media_galleries_dialog_views.cc | 185 const MediaGalleriesDialogController::Entry& gallery, 188 bool show_folder_viewer = controller_->ShouldShowFolderViewer(gallery); 190 CheckboxMap::iterator iter = checkbox_map_.find(gallery.pref_info.pref_id); 193 checkbox->SetChecked(gallery.selected); 194 checkbox->SetText(gallery.pref_info.GetGalleryDisplayName()); 195 checkbox->SetTooltipText(gallery.pref_info.GetGalleryTooltip()); 196 base::string16 details = gallery.pref_info.GetGalleryAdditionalDetails(); 204 new MediaGalleryCheckboxView(gallery.pref_info, show_folder_viewer, 206 gallery_view->checkbox()->SetChecked(gallery.selected); 208 checkbox_map_[gallery 184 AddOrUpdateGallery( const MediaGalleriesDialogController::Entry& gallery, views::View* container, int trailing_vertical_space) argument [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
H A D | GalleryTest.java | 18 private Gallery gallery; field in class:GalleryTest 24 gallery = new Gallery(null); 26 gallery.setOnKeyListener(listener); 32 assertTrue(gallery.onKeyDown(KeyEvent.KEYCODE_DPAD_RIGHT, event)); 34 assertThat((Gallery) listener.view, sameInstance(gallery)); 40 assertTrue(gallery.onKeyDown(KeyEvent.KEYCODE_DPAD_RIGHT, event)); 42 assertThat((Gallery)listener.view, sameInstance(gallery));
|
/external/chromium_org/chrome/browser/media_galleries/ |
H A D | media_galleries_permissions_unittest.cc | 21 void AddGalleryPermission(MediaGalleryPrefId gallery, argument 25 permission.pref_id = gallery;
|
H A D | media_galleries_permission_controller_unittest.cc | 35 std::string GalleryName(const MediaGalleryPrefInfo& gallery) { argument 36 base::string16 name = gallery.GetGalleryDisplayName(); 255 MediaGalleryPrefInfo gallery; local 256 gallery.pref_id = 1; 257 gallery.device_id = StorageInfo::MakeDeviceId( 258 StorageInfo::FIXED_MASS_STORAGE, "/path/to/gallery"); 259 gallery.type = MediaGalleryPrefInfo::kAutoDetected; 260 std::string galleryName("/path/to/gallery"); 262 galleryName = "gallery"; 264 EXPECT_EQ(galleryName, GalleryName(gallery)); [all...] |
H A D | media_galleries_permission_controller.cc | 37 // Comparator for sorting gallery entries. Sort Removable entries above 301 MediaGalleryPrefInfo gallery; local 303 bool gallery_exists = preferences_->LookUpGalleryByPath(path, &gallery); 304 if (gallery_exists && !gallery.IsBlackListedType()) { 306 // |known_galleries_| as well. User selecting a known gallery effectively 307 // just sets the gallery to permitted. 308 GalleryDialogId gallery_id = GetDialogId(gallery.pref_id); 320 if (iter->second.pref_info.path == gallery.path && 321 iter->second.pref_info.device_id == gallery.device_id) { 328 // Lastly, if not found, add a new gallery t 397 const MediaGalleryPrefInfo& gallery = iter->second; local 454 const MediaGalleryPrefInfo& gallery = iter->second.pref_info; local 475 Entry& gallery = it->second; local [all...] |
H A D | media_galleries_scan_result_controller.cc | 271 const MediaGalleryPrefInfo& gallery = it->second; local 272 if ((gallery.audio_count || gallery.image_count || gallery.video_count) && 273 !gallery.IsBlackListedType() && 274 !ContainsKey(permitted, gallery.pref_id) && 275 !ContainsKey(ignore_list, gallery.pref_id)) { 276 ScanResults::iterator existing = scan_results->find(gallery.pref_id); 279 (*scan_results)[gallery.pref_id] = Entry(gallery, tru [all...] |
H A D | media_scan_manager.cc | 160 const MediaGalleryPrefInfo& gallery = it->second; local 161 if (!gallery.IsBlackListedType()) { 163 SumFilesUnderPath(gallery.AbsolutePath(), child_folders); 164 if (gallery.audio_count != file_counts.audio_count || 165 gallery.image_count != file_counts.image_count || 166 gallery.video_count != file_counts.video_count) { 176 const MediaGalleryPrefInfo& gallery = local 178 preferences->AddGallery(gallery.device_id, gallery.path, gallery 199 MediaGalleryPrefInfo gallery; local [all...] |
H A D | media_file_system_registry.cc | 277 // For each gallery in the list of permitted |galleries|, checks if the 299 // Checks if |gallery| is attached and if so, registers the file system and 302 const MediaGalleryPrefInfo& gallery, 307 device_ids->insert(gallery.device_id); 310 base::Owned(device_ids), gallery, callback)); 315 PrefIdFsInfoMap::iterator gallery = pref_id_map_.find(id); local 316 if (gallery == pref_id_map_.end()) 319 file_system_context_->RevokeFileSystem(gallery->second.fsid); 320 pref_id_map_.erase(gallery); 410 const MediaGalleryPrefInfo& gallery, 301 RegisterMediaFileSystem( const MediaGalleryPrefInfo& gallery, const base::Callback<void(base::File::Error result)>& callback) argument 408 RegisterAttachedMediaFileSystem( const MediaStorageUtil::DeviceIdSet* attached_device, const MediaGalleryPrefInfo& gallery, const base::Callback<void(base::File::Error result)>& callback) argument 534 MediaGalleriesPrefInfoMap::const_iterator gallery = local [all...] |
H A D | media_galleries_preferences.cc | 53 // Pref key for the list of media gallery permissions. 291 const MediaGalleryPrefInfo& gallery) { 294 base::Uint64ToString(gallery.pref_id)); 295 dict->SetString(kMediaGalleriesDeviceIdKey, gallery.device_id); 296 dict->SetString(kMediaGalleriesPathKey, gallery.path.value()); 297 dict->SetString(kMediaGalleriesTypeKey, TypeToStringValue(gallery.type)); 299 if (gallery.default_gallery_type != MediaGalleryPrefInfo::kNotDefault) { 302 gallery.default_gallery_type)); 305 if (gallery.volume_metadata_valid) { 306 dict->SetString(kMediaGalleriesVolumeLabelKey, gallery 290 CreateGalleryPrefInfoDictionary( const MediaGalleryPrefInfo& gallery) argument 789 const MediaGalleryPrefInfo& gallery = known_galleries_.find(*it)->second; local 1239 MediaGalleriesPrefInfoMap::const_iterator gallery = local [all...] |
/external/chromium_org/ui/file_manager/gallery/js/ |
H A D | gallery.js | 21 * Data model for gallery. 69 * @param {Gallery.Item} item Original gallery item. 206 this.container_ = document.querySelector('.gallery'); 250 * Time until mosaic is initialized in the background. Used to make gallery 289 * Closes gallery when a volume containing the selected item is unmounted. 532 self.context_.pageState.gallery === 'mosaic'); 870 // gallery in the curDirEntry directory. 890 {gallery: (this.currentMode_ === this.mosaicMode_ ? 'mosaic' : 'slide')}); 1016 * Singleton gallery. 1019 var gallery variable [all...] |
/external/chromium_org/chrome/browser/extensions/api/media_galleries/ |
H A D | media_galleries_api.cc | 80 "Failed to set gallery permission."; 81 const char kInvalidGalleryIdMsg[] = "Invalid gallery id."; 83 const char kNonExistentGalleryId[] = "Non-existent gallery id."; 616 const MediaGalleryPrefInfo& gallery = gallery_it->second; local 618 metadata.name = base::UTF16ToUTF8(gallery.GetGalleryDisplayName()); 619 metadata.gallery_id = base::Uint64ToString(gallery.pref_id); 620 metadata.is_removable = StorageInfo::IsRemovableDevice(gallery.device_id); 621 metadata.is_media_device = StorageInfo::IsMediaDevice(gallery.device_id); 622 metadata.is_available = ContainsKey(*available_devices, gallery.device_id);
|