Home
last modified time | relevance | path

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

1234

/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/unit/com/android/documentsui/archives/
DReadableArchiveTest.java120 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.java58 RESOURCES.put("archive.zip", R.raw.archive);
59 RESOURCES.put("broken.zip", R.raw.broken);
60 RESOURCES.put("empty_dirs.zip", R.raw.empty_dirs);
61 RESOURCES.put("images.zip", R.raw.images);
62 RESOURCES.put("no_dirs.zip", R.raw.no_dirs);
63 RESOURCES.put("images.7z", R.raw.images_7z);
64 RESOURCES.put("images.tar", R.raw.images_tar);
65 RESOURCES.put("images.tar.xz", R.raw.images_tar_xz);
66 RESOURCES.put("images.tgz", R.raw.images_tgz);
67 RESOURCES.put("images.tar.br", R.raw.images_tar_br);
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastSearchIndexableProvider.java132 Object[] raw = new Object[INDEXABLES_RAW_COLUMNS.length]; in queryRawData() local
133 raw[COLUMN_INDEX_RAW_TITLE] = res.getString(R.string.sms_cb_settings); in queryRawData()
153 raw[COLUMN_INDEX_RAW_KEYWORDS] = TextUtils.join(",", keywordList); in queryRawData()
155 raw[COLUMN_INDEX_RAW_SCREEN_TITLE] = res.getString(R.string.sms_cb_settings); in queryRawData()
156 raw[COLUMN_INDEX_RAW_KEY] = CellBroadcastSettings.class.getSimpleName(); in queryRawData()
157 raw[COLUMN_INDEX_RAW_INTENT_ACTION] = Intent.ACTION_MAIN; in queryRawData()
158 raw[COLUMN_INDEX_RAW_INTENT_TARGET_PACKAGE] = getContextMethod().getPackageName(); in queryRawData()
159 raw[COLUMN_INDEX_RAW_INTENT_TARGET_CLASS] = CellBroadcastSettings.class.getName(); in queryRawData()
161 cursor.addRow(raw); in queryRawData()
DCellBroadcastAlertAudio.java481 setDataSourceFromResource(res, mMediaPlayer, R.raw.etws_earthquake); in playAlertTone()
484 setDataSourceFromResource(res, mMediaPlayer, R.raw.etws_tsunami); in playAlertTone()
487 setDataSourceFromResource(res, mMediaPlayer, R.raw.etws_other_disaster); in playAlertTone()
490 setDataSourceFromResource(res, mMediaPlayer, R.raw.etws_default); in playAlertTone()
493 setDataSourceFromResource(res, mMediaPlayer, R.raw.info); in playAlertTone()
498 setDataSourceFromResource(res, mMediaPlayer, R.raw.default_tone); in playAlertTone()
/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/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java235 doPlaylist(R.raw.test_m3u, "test.m3u"); in testPlaylistM3u()
241 doPlaylist(R.raw.test_pls, "test.pls"); in testPlaylistPls()
247 doPlaylist(R.raw.test_wpl, "test.wpl"); in testPlaylistWpl()
253 stage(R.raw.test_audio, new File(music, "001.mp3")); in doPlaylist()
254 stage(R.raw.test_audio, new File(music, "002.mp3")); in doPlaylist()
255 stage(R.raw.test_audio, new File(music, "003.mp3")); in doPlaylist()
304 stage(R.raw.test_image, file); in testScan_Common()
357 stage(R.raw.test_image, new File(red, "red.jpg")); in testScan_Nomedia_Dir()
358 stage(R.raw.test_image, new File(blue, "blue.jpg")); in testScan_Nomedia_Dir()
383 stage(R.raw.test_image, image); in testScan_Nomedia_File()
DMediaScannerTest.java119 stage(R.raw.test_audio, new File(dir, "test.mp3")); in testCorrectness()
120 stage(R.raw.test_video, new File(dir, "test.mp4")); in testCorrectness()
121 stage(R.raw.test_image, new File(dir, "test.jpg")); in testCorrectness()
237 stage(R.raw.test_image, new File(dir, System.nanoTime() + ".jpg")); in stage()
238 stage(R.raw.test_video, new File(dir, System.nanoTime() + ".mp4")); in stage()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DXmpInterfaceTest.java60 try (InputStream in = context.getResources().openRawResource(R.raw.test_image)) { in testContainer_Empty()
72 try (InputStream in = context.getResources().openRawResource(R.raw.lg_g4_iso_800_jpg)) { in testContainer_ValidAttrs()
84 try (InputStream in = context.getResources().openRawResource(R.raw.lg_g4_iso_800_dng)) { in testContainer_ValidTags()
104 try (InputStream in = context.getResources().openRawResource(R.raw.lg_g4_iso_800_jpg)) { in testContainer_ExifRedactionRanges()
120 final File file = stageFile(R.raw.test_video_xmp); in testContainer_IsoRedactionRanges()
138 final File file = stageFile(R.raw.test_video_xmp_bad_tag); in testContainer_IsoRedactionRanges_BadTagValue()
156 final File file = stageFile(R.raw.test_video_xmp_malformed); in testContainer_IsoRedactionRanges_MalformedXml()
DIsoInterfaceTest.java43 final File file = stageFile(R.raw.test_video); in testRepeated()
56 final File file = stageFile(R.raw.test_video_gps); in testGps()
67 final File file = stageFile(R.raw.test_video_xmp); in testXmp()
/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/apps/Settings/tests/unit/src/com/android/settings/core/
DUniquePreferenceTest.java207 for (SearchIndexableRaw raw : rawsToIndex) { in verifyRaws()
208 if (TextUtils.isEmpty(raw.key)) { in verifyRaws()
214 if (uniqueKeys.contains(raw.key) && !WHITELISTED_DUPLICATE_KEYS.contains(raw.key)) { in verifyRaws()
215 Log.e(TAG, "Every SearchIndexableRaw key must unique; found " + raw.key in verifyRaws()
217 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.java181 mMusicPlayerForSelectedDisplay = new AudioPlayer(mContext, R.raw.well_worth_the_wait, in initializePlayers()
183 mMusicPlayer = new AudioPlayer(mContext, R.raw.well_worth_the_wait, in initializePlayers()
185 mMusicPlayerShort = new AudioPlayer(mContext, R.raw.ring_classic_01, in initializePlayers()
187 mNavGuidancePlayer = new AudioPlayer(mContext, R.raw.turnright, in initializePlayers()
189 mVrPlayer = new AudioPlayer(mContext, R.raw.one2six, in initializePlayers()
191 mSystemPlayer = new AudioPlayer(mContext, R.raw.ring_classic_01, in initializePlayers()
193 mWavPlayer = new AudioPlayer(mContext, R.raw.free_flight, in initializePlayers()
559 R.raw.well_worth_the_wait, in createDisplayAudioPlayer()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityGestureNavigationTutorial.java123 ? R.raw.illustration_accessibility_gesture_three_finger in createTutorialDialogContentView()
124 : R.raw.illustration_accessibility_gesture_two_finger, in createTutorialDialogContentView()
138 ? R.raw.illustration_accessibility_gesture_three_finger in createTutorialDialogContentView()
139 : R.raw.illustration_accessibility_gesture_two_finger, in createTutorialDialogContentView()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbapclient/
DPbapParserTest.java76 com.android.bluetooth.tests.R.raw.no_timestamp_call_log); in testNoTimestamp()
98 com.android.bluetooth.tests.R.raw.single_missed_call); in testMissedCall()
119 com.android.bluetooth.tests.R.raw.unknown_number_call); in testUnknownCall()
142 com.android.bluetooth.tests.R.raw.v30_simple); in testPullPhoneBook()
/packages/apps/TV/src/com/android/tv/license/
DLicenses.java40 context.getApplicationContext(), R.raw.third_party_license_metadata, 0, -1) in hasLicenses()
48 context.getApplicationContext(), R.raw.third_party_license_metadata, 0, -1), in getLicenses()
85 return getTextFromResource(context, R.raw.third_party_licenses, offset, length); in getLicenseText()
/packages/providers/MediaProvider/src/com/android/providers/media/
DRingtoneOverlayService.java65 copyResourceAndSetAsSound(R.raw.default_ringtone, in updateRingtones()
67 copyResourceAndSetAsSound(R.raw.default_notification_sound, in updateRingtones()
69 copyResourceAndSetAsSound(R.raw.default_alarm_alert, in updateRingtones()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DDisclaimersParserTest.java88 DISCLAIMER_URI_1 = TestUtils.resourceToUri(testContext, R.raw.test_disclaimer1); in setUpClass()
91 DISCLAIMER_URI_2 = TestUtils.resourceToUri(testContext, R.raw.test_disclaimer2); in setUpClass()
94 DISCLAIMER_URI_3 = TestUtils.resourceToUri(testContext, R.raw.test_disclaimer3); in setUpClass()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperTest.java58 mInputStream = mContext.getResources().openRawResource(R.raw.car_audio_configuration); in setUp()
202 R.raw.car_audio_configuration_duplicate_ports)) { in loadAudioZones_throwsOnDuplicatePorts()
214 R.raw.car_audio_configuration_non_numerical_port)) { in loadAudioZones_throwsOnNonNumericalPort()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DBluetoothDashboardFragmentTest.java52 raw -> TextUtils.equals(raw.title, in rawData_includesFragmentResult()

1234