Home
last modified time | relevance | path

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

1234

/packages/modules/Virtualization/libs/libfdt/src/
Dlibfdt.rs33 let fdt = fdt.as_mut_ptr().cast(); in create_empty_tree()
45 let fdt = fdt.as_ptr().cast(); in check_full()
72 let fdt = self.as_fdt_slice().as_ptr().cast(); in path_offset_namelen()
75 let path = path.as_ptr().cast(); in path_offset_namelen()
85 let fdt = self.as_fdt_slice().as_ptr().cast(); in node_offset_by_phandle()
99 let fdt = self.as_fdt_slice().as_ptr().cast(); in node_offset_by_compatible()
110 let fdt = self.as_fdt_slice().as_ptr().cast(); in next_node()
129 let fdt = self.as_fdt_slice().as_ptr().cast(); in parent_offset()
142 let fdt = self.as_fdt_slice().as_ptr().cast(); in supernode_atdepth_offset()
159 let fdt = self.as_fdt_slice().as_ptr().cast(); in subnode_offset_namelen()
[all …]
Dlib.rs109 self.0.data.as_ptr().cast() in data_ptr()
798 get_slice_at_ptr(self.as_fdt_slice(), ptr.cast(), len).ok_or(FdtError::Internal) in get_from_ptr()
803 self.buffer.as_ptr().cast() in as_ptr()
807 let p = self.as_ptr().cast::<libfdt_bindgen::fdt_header>(); in header()
/packages/modules/NeuralNetworks/runtime/test/generated/spec_V1_2/
Dcast.example.cpp7 namespace generated_tests::cast { namespace
54 namespace generated_tests::cast { namespace
135 namespace generated_tests::cast { namespace
182 namespace generated_tests::cast { namespace
263 namespace generated_tests::cast { namespace
310 namespace generated_tests::cast { namespace
391 namespace generated_tests::cast { namespace
438 namespace generated_tests::cast { namespace
519 namespace generated_tests::cast { namespace
566 namespace generated_tests::cast { namespace
[all …]
/packages/modules/Virtualization/vmbase/src/
Dheap.rs79 allocate(size, false).map_or(ptr::null_mut(), |p| p.cast::<c_void>().as_ptr()) in malloc()
85 allocate(size, true).map_or(ptr::null_mut(), |p| p.cast::<c_void>().as_ptr()) in calloc()
119 let ptr = ptr.cast::<usize>().as_ptr().offset(-1); in free()
143 let ptr = NonNull::new(ptr)?.cast::<usize>().as_ptr(); in allocate()
Dbionic.rs100 let buffer = unsafe { slice::from_raw_parts_mut(buffer.cast::<u8>(), length) }; in getentropy()
181 cstr_error(n).as_ptr().cast_mut().cast() in strerror()
Dutil.rs25 unsafe { core::slice::from_raw_parts(original.as_ptr().cast(), len) }
/packages/modules/IntentResolver/java/src/com/android/intentresolver/validation/types/
DSimpleValue.kt26 import kotlin.reflect.cast
37 expected.isInstance(value) -> return Valid(expected.cast(value)) in validate()
DParceledArray.kt27 import kotlin.reflect.cast
56 null -> Valid(value.map { elementType.cast(it) }) in validate()
/packages/modules/NeuralNetworks/common/types/operations/src/
DCast.cpp26 namespace cast { namespace
75 NN_DEFINE_VALIDATION_FUNCTION(CAST, cast::validate);
/packages/modules/Virtualization/vmbase/src/virtio/
Dhal.rs95 let src = buffer.cast::<u8>().as_ptr().cast_const(); in share()
108 let dest = buffer.cast::<u8>().as_ptr(); in unshare()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DPreferenceController.java280 mPreference = getPreferenceType().cast(preference); in setPreference()
283 getPreferenceType().cast(changedPref), newValue)); in setPreference()
294 return handlePreferenceClicked(getPreferenceType().cast(clickedPref)); in setPreference()
/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/
DExerciseRouteReadTest.java198 .map(ExerciseSessionRecord.class::cast) in getChangelogs_cannotAccessOtherAppRoute()
220 .map(ExerciseSessionRecord.class::cast) in getChangelogs_canAccessOwnRoute()
244 .map(ExerciseSessionRecord.class::cast) in getChangelogs_mixedOwnAndOtherAppSession()
DExerciseRouteBackgroundReadTest.java208 .map(ExerciseSessionRecord.class::cast) in getChangelogs_cannotAccessOtherAppRoute()
231 .map(ExerciseSessionRecord.class::cast) in getChangelogs_canAccessOwnRoute()
256 .map(ExerciseSessionRecord.class::cast) in getChangelogs_mixedOwnAndOtherAppSession()
DReadExerciseRoutesPermissionTest.java198 .map(ExerciseSessionRecord.class::cast) in getChangelogs_canAccessOtherAppRoute()
221 .map(ExerciseSessionRecord.class::cast) in getChangelogs_canAccessOwnRoute()
246 .map(ExerciseSessionRecord.class::cast) in getChangelogs_mixedOwnAndOtherAppSession()
DExerciseRouteReadAllFeatureOffTest.java147 .map(ExerciseSessionRecord.class::cast) in getChangelogs_canNotAccessOtherAppRoute()
170 .map(ExerciseSessionRecord.class::cast) in getChangelogs_canAccessOwnRoute()
/packages/modules/NeuralNetworks/common/types/operations/include/
DCast.h24 namespace cast {
/packages/modules/Bluetooth/system/gd/rust/topshim/src/
Dsyslog.rs8 use num_traits::cast::ToPrimitive;
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DInputConsumer.java135 return c.cast(this); in getInputConsumerOfClass()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/
DDelegateInputConsumer.java54 return c.cast(this); in getInputConsumerOfClass()
/packages/modules/NeuralNetworks/common/cpu_operations/
DCast.cpp28 namespace cast { namespace
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DExceptionUtils.java68 throw c.cast(t); in propagateIfInstanceOf()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDvrItemPresenter.java72 dvrItem = itemType.cast(item); in onBindViewHolder()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkePayload.java182 payloadList.add(payloadClass.cast(payload)); in getPayloadListForTypeInProvidedList()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/
DTransactionManagerExerciseRoutesTest.java112 ExerciseSessionRecordInternal.class::cast)); in readRecordsByIds_doesNotReturnRoutesOfOtherApps()
231 ExerciseSessionRecordInternal.class::cast)); in readRecordsAndPageToken_byFilters_doesNotReturnRoutesOfOtherApps()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/concurrency/
DFailableResultSyncCallback.java103 return expectedClass.cast(failure); in assertFailureReceived()

1234