Home
last modified time | relevance | path

Searched refs:raw (Results 1 – 25 of 104) sorted by relevance

12345

/packages/apps/Settings/src/com/android/settings/search/
DSettingsSearchIndexablesProvider.java173 for (SearchIndexableRaw raw : rawList) { in queryDynamicRawData()
174 cursor.addRow(createIndexableRawColumnObjects(raw)); in queryDynamicRawData()
346 for (SearchIndexableRaw raw : providerRaws) { in getSearchIndexableRawFromProvider()
349 raw.className = bundle.getTargetClass().getName(); in getSearchIndexableRawFromProvider()
372 for (SearchIndexableRaw raw : providerRaws) { in getDynamicSearchIndexableRawFromProvider()
375 raw.className = bundle.getTargetClass().getName(); in getDynamicSearchIndexableRawFromProvider()
395 final SearchIndexableRaw raw = new SearchIndexableRaw(context); in getInjectionIndexableRawData() local
397 raw.title = TextUtils.isEmpty(title) ? null : title.toString(); in getInjectionIndexableRawData()
398 if (TextUtils.isEmpty(raw.title)) { in getInjectionIndexableRawData()
401 raw.key = dashboardFeatureProvider.getDashboardKeyForTile(tile); in getInjectionIndexableRawData()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/search/
DCarSettingsSearchIndexablesProvider.java100 raw -> cursor.addRow(createIndexableRawColumnObjects(raw)))); in queryRawData()
105 private static Object[] createIndexableRawColumnObjects(SearchIndexableRaw raw) { in createIndexableRawColumnObjects() argument
107 ref[COLUMN_INDEX_RAW_TITLE] = raw.title; in createIndexableRawColumnObjects()
108 ref[COLUMN_INDEX_RAW_SUMMARY_ON] = raw.summaryOn; in createIndexableRawColumnObjects()
109 ref[COLUMN_INDEX_RAW_SUMMARY_OFF] = raw.summaryOff; in createIndexableRawColumnObjects()
110 ref[COLUMN_INDEX_RAW_ENTRIES] = raw.entries; in createIndexableRawColumnObjects()
111 ref[COLUMN_INDEX_RAW_KEYWORDS] = raw.keywords; in createIndexableRawColumnObjects()
112 ref[COLUMN_INDEX_RAW_SCREEN_TITLE] = raw.screenTitle; in createIndexableRawColumnObjects()
113 ref[COLUMN_INDEX_RAW_CLASS_NAME] = raw.className; in createIndexableRawColumnObjects()
114 ref[COLUMN_INDEX_RAW_ICON_RESID] = raw.iconResId; in createIndexableRawColumnObjects()
[all …]
DCarBaseSearchIndexProvider.java112 SearchIndexableRaw raw = new SearchIndexableRaw(context); in createRawDataEntry() local
113 raw.key = key; in createRawDataEntry()
114 raw.title = title; in createRawDataEntry()
115 raw.screenTitle = screenTitle; in createRawDataEntry()
116 raw.intentAction = mIntentAction; in createRawDataEntry()
117 raw.intentTargetPackage = context.getPackageName(); in createRawDataEntry()
118 raw.intentTargetClass = mIntentClass; in createRawDataEntry()
119 return raw; in createRawDataEntry()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperTest.java79 mInputStream = mContext.getResources().openRawResource(R.raw.car_audio_configuration); in setUp()
148 R.raw.car_audio_configuration_V1)) { in loadAudioZones_versionOneParsesAllZones()
262 R.raw.car_audio_configuration_V1); in loadAudioZones_forVersionOne_bindsNonLegacyContextsToDefault()
282 R.raw.car_audio_configuration_V1_with_non_legacy_contexts); in loadAudioZones_forVersionOneWithNonLegacyContexts_throws()
297 R.raw.car_audio_configuration_no_audio_zone_id_for_primary_zone)) { in loadAudioZones_passesOnMissingAudioZoneIdForPrimary()
314 R.raw.car_audio_configuration_V1_with_audio_zone_id)) { in loadAudioZones_versionOneFailsOnAudioZoneId()
328 R.raw.car_audio_configuration_V1_with_occupant_zone_id)) { in loadAudioZones_versionOneFailsOnOccupantZoneId()
342 R.raw.car_audio_configuration_with_input_devices)) { in loadAudioZones_parsesInputDevices()
375 R.raw.car_audio_configuration_duplicate_occupant_zone_id)) { in loadAudioZones_failsOnDuplicateOccupantZoneId()
389 R.raw.car_audio_configuration_duplicate_audio_zone_id)) { in loadAudioZones_failsOnDuplicateAudioZoneId()
[all …]
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DIndexDataConverter.java159 private IndexData convertRaw(Context context, String authority, SearchIndexableRaw raw, in convertRaw() argument
161 if (TextUtils.isEmpty(raw.key)) { in convertRaw()
162 Log.w(TAG, "Skipping null key for raw indexable " + authority + "/" + raw.title); in convertRaw()
166 boolean enabled = !(nonIndexableKeys != null && nonIndexableKeys.contains(raw.key)); in convertRaw()
169 builder.setTitle(raw.title) in convertRaw()
170 .setSummaryOn(raw.summaryOn) in convertRaw()
171 .setEntries(raw.entries) in convertRaw()
172 .setKeywords(raw.keywords) in convertRaw()
173 .setClassName(raw.className) in convertRaw()
174 .setScreenTitle(raw.screenTitle) in convertRaw()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DObexAppParameters.java34 public ObexAppParameters(byte[] raw) { in ObexAppParameters() argument
37 if (raw != null) { in ObexAppParameters()
38 for (int i = 0; i < raw.length; ) { in ObexAppParameters()
39 if (raw.length - i < 2) { in ObexAppParameters()
43 byte tag = raw[i++]; in ObexAppParameters()
44 byte len = raw[i++]; in ObexAppParameters()
46 if (raw.length - i - len < 0) { in ObexAppParameters()
52 System.arraycopy(raw, i, val, 0, len); in ObexAppParameters()
62 byte[] raw = (byte[]) headerset.getHeader(HeaderSet.APPLICATION_PARAMETER); in fromHeaderSet()
63 return new ObexAppParameters(raw); in fromHeaderSet()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DObexAppParameters.java34 public ObexAppParameters(byte[] raw) { in ObexAppParameters() argument
37 if (raw != null) { in ObexAppParameters()
38 for (int i = 0; i < raw.length; ) { in ObexAppParameters()
39 if (raw.length - i < 2) { in ObexAppParameters()
43 byte tag = raw[i++]; in ObexAppParameters()
44 byte len = raw[i++]; in ObexAppParameters()
46 if (raw.length - i - len < 0) { in ObexAppParameters()
52 System.arraycopy(raw, i, val, 0, len); in ObexAppParameters()
62 byte[] raw = (byte[]) headerset.getHeader(HeaderSet.APPLICATION_PARAMETER); in fromHeaderSet()
63 return new ObexAppParameters(raw); in fromHeaderSet()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
DReadableArchiveTest.java121 loadArchive(mTestUtils.getNonSeekableDescriptor(R.raw.archive)); in testQueryChildDocument()
171 loadArchive(mTestUtils.getNonSeekableDescriptor(R.raw.no_dirs)); in testQueryChildDocument_NoDirs()
220 loadArchive(mTestUtils.getNonSeekableDescriptor(R.raw.empty_dirs)); in testQueryChildDocument_EmptyDirs()
276 loadArchive(mTestUtils.getNonSeekableDescriptor(R.raw.archive)); in testGetDocumentType()
285 loadArchive(mTestUtils.getNonSeekableDescriptor(R.raw.archive)); in testIsChildDocument()
300 loadArchive(mTestUtils.getNonSeekableDescriptor(R.raw.archive)); in testQueryDocument()
339 queryDocumentByResIdWithMimeTypeAndVerify(R.raw.hello_7z, in archive_sevenZFile_containsList()
346 queryDocumentByResIdWithMimeTypeAndVerify(R.raw.hello_tar, "application/x-tar"); in archive_tar_containsList()
352 queryDocumentByResIdWithMimeTypeAndVerify(R.raw.hello_tgz, in archive_tgz_containsList()
359 queryDocumentByResIdWithMimeTypeAndVerify(R.raw.hello_tar_xz, in archive_tarXz_containsList()
[all …]
DResourcesProvider.java55 RESOURCES.put("archive.zip", R.raw.archive);
56 RESOURCES.put("broken.zip", R.raw.broken);
57 RESOURCES.put("empty_dirs.zip", R.raw.empty_dirs);
58 RESOURCES.put("images.zip", R.raw.images);
59 RESOURCES.put("no_dirs.zip", R.raw.no_dirs);
60 RESOURCES.put("images.7z", R.raw.images_7z);
61 RESOURCES.put("images.tar", R.raw.images_tar);
62 RESOURCES.put("images.tar.xz", R.raw.images_tar_xz);
63 RESOURCES.put("images.tgz", R.raw.images_tgz);
64 RESOURCES.put("images.tar.br", R.raw.images_tar_br);
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java503 doPlaylist(R.raw.test_m3u, "test.m3u"); in testPlaylistM3u()
508 doPlaylist(R.raw.test_pls, "test.pls"); in testPlaylistPls()
513 doPlaylist(R.raw.test_wpl, "test.wpl"); in testPlaylistWpl()
518 doPlaylist(R.raw.test_xspf, "test.xspf"); in testPlaylistXspf()
524 stage(R.raw.test_audio, new File(music, "001.mp3")); in doPlaylist()
525 stage(R.raw.test_audio, new File(music, "002.mp3")); in doPlaylist()
526 stage(R.raw.test_audio, new File(music, "003.mp3")); in doPlaylist()
527 stage(R.raw.test_audio, new File(music, "004.mp3")); in doPlaylist()
528 stage(R.raw.test_audio, new File(music, "005.mp3")); in doPlaylist()
581 stage(R.raw.test_audio, new File(soundtracks, "002.mp3")); in doPlaylist()
[all …]
DMediaScannerTest.java140 stage(R.raw.test_audio, new File(dir, "test.mp3")); in testCorrectness()
141 stage(R.raw.test_video, new File(dir, "test.mp4")); in testCorrectness()
142 stage(R.raw.test_image, new File(dir, "test.jpg")); in testCorrectness()
259 stage(R.raw.test_image, new File(dir, System.nanoTime() + ".jpg")); in stage()
260 stage(R.raw.test_video, new File(dir, System.nanoTime() + ".mp4")); in stage()
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/utils/
DMetadataProcessing.java52 context.getResources().openRawResource(R.raw.system_dtcs)); in MetadataProcessing()
61 context.getResources().openRawResource(R.raw.vendor_dtcs))); in MetadataProcessing()
72 context.getResources().openRawResource(R.raw.system_float_sensors)); in MetadataProcessing()
82 context.getResources().openRawResource(R.raw.vendor_float_sensors))); in MetadataProcessing()
94 context.getResources().openRawResource(R.raw.system_integer_sensors)); in MetadataProcessing()
104 context.getResources().openRawResource(R.raw.vendor_integer_sensors))); in MetadataProcessing()
116 context.getResources().openRawResource(R.raw.vendor_ecus)); in MetadataProcessing()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastSearchIndexableProvider.java141 Object[] raw = new Object[INDEXABLES_RAW_COLUMNS.length]; in queryRawData() local
142 raw[COLUMN_INDEX_RAW_TITLE] = res.getString(R.string.sms_cb_settings); in queryRawData()
162 raw[COLUMN_INDEX_RAW_KEYWORDS] = TextUtils.join(",", keywordList); in queryRawData()
164 raw[COLUMN_INDEX_RAW_SCREEN_TITLE] = res.getString(R.string.sms_cb_settings); in queryRawData()
165 raw[COLUMN_INDEX_RAW_KEY] = CellBroadcastSettings.class.getSimpleName(); in queryRawData()
166 raw[COLUMN_INDEX_RAW_INTENT_ACTION] = Intent.ACTION_MAIN; in queryRawData()
167 raw[COLUMN_INDEX_RAW_INTENT_TARGET_PACKAGE] = getContextMethod().getPackageName(); in queryRawData()
168 raw[COLUMN_INDEX_RAW_INTENT_TARGET_CLASS] = CellBroadcastSettings.class.getName(); in queryRawData()
170 cursor.addRow(raw); in queryRawData()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipImageTest.java58 com.android.bluetooth.tests.R.raw.image_200_200); in testParseImage_200by200()
62 com.android.bluetooth.tests.R.raw.image_200_200); in testParseImage_200by200()
72 com.android.bluetooth.tests.R.raw.image_600_600); in testParseImage_600by600()
76 com.android.bluetooth.tests.R.raw.image_600_600); in testParseImage_600by600()
86 com.android.bluetooth.tests.R.raw.image_200_200); in testMakeFromImage_200by200()
96 com.android.bluetooth.tests.R.raw.image_600_600); in testMakeFromImage_600by600()
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/
DResourceCaptureToolsImpl.java70 FocusSound focusSound = new FocusSound(soundPlayer, R.raw.material_camera_focus); in create()
102 mSoundPlayer.loadSound(R.raw.timer_final_second); // Will be balanced in close(). in ResourceCaptureToolsImpl()
103 mSoundPlayer.loadSound(R.raw.timer_increment); // Will be balanced in close(). in ResourceCaptureToolsImpl()
115 mSoundPlayer.unloadSound(R.raw.timer_increment); in close()
116 mSoundPlayer.unloadSound(R.raw.timer_final_second); in close()
209 mSoundPlayer.play(R.raw.timer_final_second, 0.6f); in playCountDownSound()
211 mSoundPlayer.play(R.raw.timer_increment, 0.6f); in playCountDownSound()
/packages/apps/Contacts/src/com/android/contacts/activities/
DAttachPhotoActivity.java288 RawContactDelta raw = deltaList.getFirstWritableRawContact(this); in saveContact() local
289 if (raw == null) { in saveContact()
295 saveToContact(contact, deltaList, raw); in saveContact()
299 RawContactDelta raw) { in saveToContact() argument
329 AccountType account = raw.getRawContactAccountType(this); in saveToContact()
331 RawContactModifier.ensureKindExists(raw, account, Photo.CONTENT_ITEM_TYPE); in saveToContact()
349 raw.getRawContactId() != null ? raw.getRawContactId() : -1, in saveToContact()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaDocumentsProviderTest.java253 stage(R.raw.test_audio, new File(dir, "audio.mp3")); in stageTestMedia()
254 stage(R.raw.test_video, new File(dir, "video.mp4")); in stageTestMedia()
255 stage(R.raw.test_image, new File(dir, "image.jpg")); in stageTestMedia()
256 stage(R.raw.test_m3u, new File(dir, "playlist.m3u")); in stageTestMedia()
257 stage(R.raw.test_srt, new File(dir, "subtitle.srt")); in stageTestMedia()
258 stage(R.raw.test_txt, new File(dir, "document.txt")); in stageTestMedia()
259 stage(R.raw.test_bin, new File(dir, "random.bin")); in stageTestMedia()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DXmpInterfaceTest.java57 try (InputStream in = context.getResources().openRawResource(R.raw.test_image)) { in testContainer_Empty()
69 try (InputStream in = context.getResources().openRawResource(R.raw.lg_g4_iso_800_jpg)) { in testContainer_ValidAttrs()
81 try (InputStream in = context.getResources().openRawResource(R.raw.lg_g4_iso_800_dng)) { in testContainer_ValidTags()
99 try (InputStream in = context.getResources().openRawResource(R.raw.lg_g4_iso_800_jpg)) { in testContainer_ExifRedactionRanges()
125 final File file = stageFile(R.raw.test_video_xmp); in testContainer_IsoRedactionRanges()
150 final File file = stageFile(R.raw.test_video_xmp_bad_tag); in testContainer_IsoRedactionRanges_BadTagValue()
168 final File file = stageFile(R.raw.test_video_xmp_malformed); in testContainer_IsoRedactionRanges_MalformedXml()
DIsoInterfaceTest.java53 final File file = stageFile(R.raw.test_video); in testRepeated()
66 final File file = stageFile(R.raw.test_video_gps); in testGps()
77 final File file = stageFile(R.raw.test_video_xmp); in testXmp()
89 final IsoInterface isoMeta = IsoInterface.fromFile(stageFile(R.raw.test_video_xmp)); in testIsoMeta()
100 final IsoInterface qtMeta = IsoInterface.fromFile(stageFile(R.raw.testvideo_meta)); in testQtMeta()
/packages/apps/Settings/tests/unit/src/com/android/settings/core/
DUniquePreferenceTest.java205 for (SearchIndexableRaw raw : rawsToIndex) { in verifyRaws()
206 if (TextUtils.isEmpty(raw.key)) { in verifyRaws()
212 if (uniqueKeys.contains(raw.key) && !WHITELISTED_DUPLICATE_KEYS.contains(raw.key)) { in verifyRaws()
213 Log.e(TAG, "Every SearchIndexableRaw key must unique; found " + raw.key in verifyRaws()
215 duplicatedKeys.add(raw.key); in verifyRaws()
/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/
DBaseTunerSetupActivity.java71 R.raw.ut_us_atsc_center_frequencies_8vsb,
72 R.raw.ut_us_cable_standard_center_frequencies_qam256,
73 R.raw.ut_us_all,
74 R.raw.ut_kr_atsc_center_frequencies_8vsb,
75 R.raw.ut_kr_cable_standard_center_frequencies_qam256,
76 R.raw.ut_kr_all,
77 R.raw.ut_kr_dev_cj_cable_center_frequencies_qam256,
78 R.raw.ut_euro_dvbt_all
/packages/services/Telephony/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/
DFileServiceRepository.java53 Uri sunAndTree = initFile("sunAndTree.png", R.raw.suntree); in FileServiceRepository()
54 Uri snake = initFile("animals/snake.png", R.raw.snake); in FileServiceRepository()
55 Uri unicorn = initFile("animals/unicorn.png", R.raw.unicorn); in FileServiceRepository()
56 Uri sheep = initFile("animals/sheep.png", R.raw.sheep); in FileServiceRepository()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTestFragment.java365 mMusicPlayerForSelectedDeviceAddress = new AudioPlayer(mContext, R.raw.well_worth_the_wait, in initializePlayers()
367 mMusicPlayer = new AudioPlayer(mContext, R.raw.well_worth_the_wait, in initializePlayers()
369 mMusicPlayerWithDelayedFocus = new AudioPlayer(mContext, R.raw.well_worth_the_wait, in initializePlayers()
371 mMusicPlayerShort = new AudioPlayer(mContext, R.raw.ring_classic_01, in initializePlayers()
373 mNavGuidancePlayer = new AudioPlayer(mContext, R.raw.turnright, in initializePlayers()
375 mPhoneAudioPlayer = new AudioPlayer(mContext, R.raw.free_flight, in initializePlayers()
377 mVrPlayer = new AudioPlayer(mContext, R.raw.one2six, in initializePlayers()
379 mSystemPlayer = new AudioPlayer(mContext, R.raw.ring_classic_01, in initializePlayers()
381 mWavPlayer = new AudioPlayer(mContext, R.raw.free_flight, in initializePlayers()
683 R.raw.well_worth_the_wait, in createDeviceAddressAudioPlayer()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountDashboardFragment.java118 final SearchIndexableRaw raw = new SearchIndexableRaw(context);
119 raw.key = AccountTypePreference.buildKey(account);
120 raw.title = account.name;
121 indexRaws.add(raw);
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleListEditor.java337 final SearchIndexableRaw raw = new SearchIndexableRaw(context);
338 raw.key = INDEX_KEY_ADD_LANGUAGE;
339 raw.title = res.getString(R.string.add_a_language);
340 raw.keywords = res.getString(R.string.keywords_add_language);
341 indexRaws.add(raw);

12345