Home
last modified time | relevance | path

Searched refs:nativeContext (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/core/jni/BroadcastRadio/
DTuner.cpp66 jfieldID nativeContext; member
101 auto nativeContext = reinterpret_cast<TunerContext*>(nativeContextHandle); in getNativeContext() local
102 LOG_ALWAYS_FATAL_IF(nativeContext == nullptr, "Native context not initialized"); in getNativeContext()
103 return *nativeContext; in getNativeContext()
110 return getNativeContext(env->GetLongField(jTuner.get(), gjni.Tuner.nativeContext)); in getNativeContext()
126 static void nativeFinalize(JNIEnv *env, jobject obj, jlong nativeContext) { in nativeFinalize() argument
130 auto ctx = reinterpret_cast<TunerContext*>(nativeContext); in nativeFinalize()
187 static sp<V1_0::ITuner> getHalTuner(jlong nativeContext) { in getHalTuner() argument
189 return getHalTuner(getNativeContext(nativeContext)); in getHalTuner()
192 static sp<V1_1::ITuner> getHalTuner11(jlong nativeContext) { in getHalTuner11() argument
[all …]
DBroadcastRadioService.cpp98 auto nativeContext = reinterpret_cast<ServiceContext*>(nativeContextHandle); in getNativeContext() local
99 LOG_ALWAYS_FATAL_IF(nativeContext == nullptr, "Native context not initialized"); in getNativeContext()
100 return *nativeContext; in getNativeContext()
107 auto nativeContext = new ServiceContext(); in nativeInit() local
108 static_assert(sizeof(jlong) >= sizeof(nativeContext), "jlong is smaller than a pointer"); in nativeInit()
109 return reinterpret_cast<jlong>(nativeContext); in nativeInit()
112 static void nativeFinalize(JNIEnv *env, jobject obj, jlong nativeContext) { in nativeFinalize() argument
116 auto ctx = reinterpret_cast<ServiceContext*>(nativeContext); in nativeFinalize()
120 static jobject nativeLoadModules(JNIEnv *env, jobject obj, jlong nativeContext) { in nativeLoadModules() argument
123 auto& ctx = getNativeContext(nativeContext); in nativeLoadModules()
[all …]
DTunerCallback.cpp61 jfieldID nativeContext; member
345 auto nativeContext = reinterpret_cast<TunerCallbackContext*>(nativeContextHandle); in getNativeContext() local
346 LOG_ALWAYS_FATAL_IF(nativeContext == nullptr, "Native context not initialized"); in getNativeContext()
347 return *nativeContext; in getNativeContext()
354 return getNativeContext(env->GetLongField(jTunerCb, gjni.TunerCallback.nativeContext)); in getNativeContext()
370 static void nativeFinalize(JNIEnv *env, jobject obj, jlong nativeContext) { in nativeFinalize() argument
374 auto ctx = reinterpret_cast<TunerCallbackContext*>(nativeContext); in nativeFinalize()
378 static void nativeDetach(JNIEnv *env, jobject obj, jlong nativeContext) { in nativeDetach() argument
381 auto& ctx = getNativeContext(nativeContext); in nativeDetach()
411 gjni.TunerCallback.nativeContext = GetFieldIDOrDie(env, tunerCbClass, "mNativeContext", "J"); in register_android_server_broadcastradio_TunerCallback()
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/
DTuner.java76 private native void nativeFinalize(long nativeContext); in nativeFinalize() argument
77 private native void nativeClose(long nativeContext); in nativeClose() argument
79 private native void nativeSetConfiguration(long nativeContext, in nativeSetConfiguration() argument
81 private native RadioManager.BandConfig nativeGetConfiguration(long nativeContext, int region); in nativeGetConfiguration() argument
83 … private native void nativeStep(long nativeContext, boolean directionDown, boolean skipSubChannel); in nativeStep() argument
84 … private native void nativeScan(long nativeContext, boolean directionDown, boolean skipSubChannel); in nativeScan() argument
85 private native void nativeTune(long nativeContext, @NonNull ProgramSelector selector); in nativeTune() argument
86 private native void nativeCancel(long nativeContext); in nativeCancel() argument
88 private native void nativeCancelAnnouncement(long nativeContext); in nativeCancelAnnouncement() argument
90 private native boolean nativeStartBackgroundScan(long nativeContext); in nativeStartBackgroundScan() argument
[all …]
DBroadcastRadioService.java49 private native void nativeFinalize(long nativeContext); in nativeFinalize() argument
50 private native List<RadioManager.ModuleProperties> nativeLoadModules(long nativeContext); in nativeLoadModules() argument
51 private native Tuner nativeOpenTuner(long nativeContext, int moduleId, in nativeOpenTuner() argument
DTunerCallback.java66 private native void nativeFinalize(long nativeContext); in nativeFinalize() argument
67 private native void nativeDetach(long nativeContext); in nativeDetach() argument
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp1032 sp<NativeContext> nativeContext = new NativeContext(characteristics, results); in DngCreator_init() local
1043 nativeContext->setCaptureTime(String8(captureTime)); in DngCreator_init()
1045 DngCreator_setNativeContext(env, thiz, nativeContext); in DngCreator_init()
1051 NativeContext* nativeContext = DngCreator_getNativeContext(env, thiz); in DngCreator_setup() local
1053 if (nativeContext == nullptr) { in DngCreator_setup()
1059 CameraMetadata characteristics = *(nativeContext->getCharacteristics()); in DngCreator_setup()
1060 CameraMetadata results = *(nativeContext->getResult()); in DngCreator_setup()
1286 if (nativeContext->hasCaptureTime()) { in DngCreator_setup()
1288 String8 captureTime = nativeContext->getCaptureTime(); in DngCreator_setup()
1868 uint16_t orientation = nativeContext->getOrientation(); in DngCreator_setup()
[all …]
Dandroid_os_HwBinder.cpp232 static void releaseNativeContext(void *nativeContext) { in releaseNativeContext() argument
233 sp<JHwBinderHolder> context = static_cast<JHwBinderHolder *>(nativeContext); in releaseNativeContext()
Dandroid_os_HwRemoteBinder.cpp307 static void releaseNativeContext(void *nativeContext) { in releaseNativeContext() argument
308 sp<JHwRemoteBinder> binder = (JHwRemoteBinder *)nativeContext; in releaseNativeContext()
Dandroid_os_HwBlob.cpp247 static void releaseNativeContext(void *nativeContext) { in releaseNativeContext() argument
248 sp<JHwBlob> parcel = (JHwBlob *)nativeContext; in releaseNativeContext()
Dandroid_os_HwParcel.cpp231 static void releaseNativeContext(void *nativeContext) { in releaseNativeContext() argument
232 sp<JHwParcel> parcel = (JHwParcel *)nativeContext; in releaseNativeContext()