Searched refs:handle (Results 26 - 50 of 347) sorted by relevance

1234567891011>>

/frameworks/base/core/jni/
H A Dandroid_database_SQLiteCommon.h32 /* throw a SQLiteException with a message appropriate for the error in handle */
33 void throw_sqlite3_exception(JNIEnv* env, sqlite3* handle);
38 /* throw a SQLiteException with a message appropriate for the error in handle
41 void throw_sqlite3_exception(JNIEnv* env, sqlite3* handle, const char* message);
H A Dandroid_database_SQLiteCommon.cpp23 /* throw a SQLiteException with a message appropriate for the error in handle */
24 void throw_sqlite3_exception(JNIEnv* env, sqlite3* handle) { argument
25 throw_sqlite3_exception(env, handle, NULL);
33 /* throw a SQLiteException with a message appropriate for the error in handle
36 void throw_sqlite3_exception(JNIEnv* env, sqlite3* handle, const char* message) { argument
37 if (handle) {
42 throw_sqlite3_exception(env, sqlite3_extended_errcode(handle),
43 sqlite3_errmsg(handle), message);
H A Dandroid_app_NativeActivity.cpp271 void* handle = OpenNativeLibrary(env, sdkVersion, pathStr, classLoader, libraryPath); local
272 if (handle == NULL) {
274 handle = NativeBridgeLoadLibrary(pathStr, RTLD_LAZY);
280 if (handle != NULL) {
284 funcPtr = NativeBridgeGetTrampoline(handle, funcStr, NULL, 0);
286 funcPtr = dlsym(handle, funcStr);
289 code.reset(new NativeCode(handle, (ANativeActivity_createFunc*)funcPtr));
372 unloadNativeCode_native(JNIEnv* env, jobject clazz, jlong handle) argument
377 if (handle != 0) {
378 NativeCode* code = (NativeCode*)handle;
384 onStart_native(JNIEnv* env, jobject clazz, jlong handle) argument
398 onResume_native(JNIEnv* env, jobject clazz, jlong handle) argument
412 onSaveInstanceState_native(JNIEnv* env, jobject clazz, jlong handle) argument
441 onPause_native(JNIEnv* env, jobject clazz, jlong handle) argument
455 onStop_native(JNIEnv* env, jobject clazz, jlong handle) argument
469 onConfigurationChanged_native(JNIEnv* env, jobject clazz, jlong handle) argument
483 onLowMemory_native(JNIEnv* env, jobject clazz, jlong handle) argument
497 onWindowFocusChanged_native(JNIEnv* env, jobject clazz, jlong handle, jboolean focused) argument
511 onSurfaceCreated_native(JNIEnv* env, jobject clazz, jlong handle, jobject surface) argument
533 onSurfaceChanged_native(JNIEnv* env, jobject clazz, jlong handle, jobject surface, jint format, jint width, jint height) argument
576 onSurfaceRedrawNeeded_native(JNIEnv* env, jobject clazz, jlong handle) argument
590 onSurfaceDestroyed_native(JNIEnv* env, jobject clazz, jlong handle, jobject surface) argument
606 onInputQueueCreated_native(JNIEnv* env, jobject clazz, jlong handle, jlong queuePtr) argument
621 onInputQueueDestroyed_native(JNIEnv* env, jobject clazz, jlong handle, jlong queuePtr) argument
636 onContentRectChanged_native(JNIEnv* env, jobject clazz, jlong handle, jint x, jint y, jint w, jint h) argument
[all...]
H A Dandroid_util_jar_StrictJarFile.cpp60 ZipArchiveHandle handle; local
61 int32_t error = OpenArchive(fileChars.c_str(), &handle);
63 CloseArchive(handle);
68 return reinterpret_cast<jlong>(handle);
97 IterationHandle* handle = new IterationHandle(); local
101 handle->CookieAddress(), NULL, NULL);
105 handle->CookieAddress(), &entry_name, NULL);
113 return reinterpret_cast<jlong>(handle);
120 IterationHandle* handle = reinterpret_cast<IterationHandle*>(iterationHandle); local
121 const int32_t error = Next(*handle
[all...]
/frameworks/native/services/sensorservice/
H A DSensorInterface.h37 virtual status_t setDelay(void* ident, int handle, int64_t ns) = 0;
38 virtual status_t batch(void* ident, int handle, int /*flags*/, int64_t samplingPeriodNs,
41 virtual status_t flush(void* /*ident*/, int /*handle*/) = 0;
45 virtual void autoDisable(void* /*ident*/, int /*handle*/) = 0;
54 virtual status_t batch(void* ident, int handle, int, int64_t samplingPeriodNs,
57 return setDelay(ident, handle, samplingPeriodNs);
62 virtual status_t flush(void* /*ident*/, int /*handle*/) override {
67 virtual void autoDisable(void* /*ident*/, int /*handle*/) override { }
86 virtual status_t batch(void* ident, int handle, int flags, int64_t samplingPeriodNs,
88 virtual status_t setDelay(void* ident, int handle, int64_
[all...]
H A DSensorInterface.cpp65 status_t HardwareSensor::batch(void* ident, int /*handle*/, int flags,
71 status_t HardwareSensor::flush(void* ident, int handle) { argument
72 return mSensorDevice.flush(ident, handle);
75 status_t HardwareSensor::setDelay(void* ident, int handle, int64_t ns) { argument
76 return mSensorDevice.setDelay(ident, handle, ns);
79 void HardwareSensor::autoDisable(void *ident, int handle) { argument
80 mSensorDevice.autoDisable(ident, handle);
H A DSensorList.cpp30 int handle, SensorInterface* si, bool isForDebug, bool isVirtual) {
32 if (handle == si->getSensor().getHandle() &&
33 mUsedHandle.insert(handle).second) {
34 // will succeed as the mUsedHandle does not have this handle
35 mHandleMap.emplace(handle, Entry(si, isForDebug, isVirtual));
38 // handle exist already or handle mismatch
42 bool SensorList::remove(int handle) { argument
44 auto entry = mHandleMap.find(handle);
52 String8 SensorList::getName(int handle) cons
29 add( int handle, SensorInterface* si, bool isForDebug, bool isVirtual) argument
[all...]
H A DSensorDevice.h39 void handleDynamicSensorConnection(int handle, bool connected);
43 status_t activate(void* ident, int handle, int enabled);
44 status_t batch(void* ident, int handle, int flags, int64_t samplingPeriodNs,
47 status_t setDelay(void* ident, int handle, int64_t ns);
48 status_t flush(void* ident, int handle);
52 void autoDisable(void *ident, int handle);
H A DSensorList.h41 bool add(int handle, SensorInterface* si, bool isForDebug = false, bool isVirtual = false);
43 // After a handle is removed, the object that SensorInterface * pointing to may get deleted if
45 bool remove(int handle);
55 String8 getName(int handle) const;
56 sp<SensorInterface> getInterface(int handle) const;
57 bool isNewHandle(int handle) const;
100 T getOne(int handle, const TF& accessor, T def = T()) const;
125 T SensorList::getOne(int handle, const TF& accessor, T def) const { argument
127 auto i = mHandleMap.find(handle);
H A DSensorService.cpp269 int handle = s->getSensor().getHandle(); local
271 if (mSensors.add(handle, s, isDebug, isVirtual)){
272 mRecentEvent.emplace(handle, new RecentEventLogger(type));
283 bool SensorService::unregisterDynamicSensorLocked(int handle) { argument
284 bool ret = mSensors.remove(handle);
286 const auto i = mRecentEvent.find(handle);
392 int handle = mActiveSensors.keyAt(i); local
393 result.appendFormat("%s (handle=0x%08x, connections=%zu)\n",
394 getSensorName(handle).string(),
395 handle,
461 int handle = buffer[i].sensor; local
604 int handle = mSensorEventBuffer[i].dynamic_sensor_meta.handle; local
628 int handle = mSensorEventBuffer[i].dynamic_sensor_meta.handle; local
765 int handle = event.sensor; local
946 int handle = mActiveSensors.keyAt(i); local
986 enable(const sp<SensorEventConnection>& connection, int handle, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs, int reservedFlags, const String16& opPackageName) argument
1115 disable(const sp<SensorEventConnection>& connection, int handle) argument
1142 cleanupWithoutDisable( const sp<SensorEventConnection>& connection, int handle) argument
1148 cleanupWithoutDisableLocked( const sp<SensorEventConnection>& connection, int handle) argument
1171 setEventRate(const sp<SensorEventConnection>& connection, int handle, nsecs_t ns, const String16& opPackageName) argument
1202 const int handle = connection->mSensorInfo.keyAt(i); local
[all...]
/frameworks/native/services/surfaceflinger/
H A DClient.h47 void attachLayer(const sp<IBinder>& handle, const sp<Layer>& layer);
51 sp<Layer> getLayerUser(const sp<IBinder>& handle) const;
58 sp<IBinder>* handle,
61 virtual status_t destroySurface(const sp<IBinder>& handle);
63 virtual status_t clearLayerFrameStats(const sp<IBinder>& handle) const;
65 virtual status_t getLayerFrameStats(const sp<IBinder>& handle, FrameStats* outStats) const;
/frameworks/native/libs/gui/
H A DISurfaceComposerClient.cpp58 sp<IBinder>* handle,
68 *handle = reply.readStrongBinder();
73 virtual status_t destroySurface(const sp<IBinder>& handle) { argument
76 data.writeStrongBinder(handle);
81 virtual status_t clearLayerFrameStats(const sp<IBinder>& handle) const {
84 data.writeStrongBinder(handle);
89 virtual status_t getLayerFrameStats(const sp<IBinder>& handle, FrameStats* outStats) const { argument
92 data.writeStrongBinder(handle);
118 sp<IBinder> handle; local
121 createFlags, &handle,
56 createSurface(const String8& name, uint32_t width, uint32_t height, PixelFormat format, uint32_t flags, sp<IBinder>* handle, sp<IGraphicBufferProducer>* gbp) argument
134 sp<IBinder> handle = data.readStrongBinder(); local
141 sp<IBinder> handle = data.readStrongBinder(); local
[all...]
/frameworks/av/media/mtp/
H A DMtpDatabase.h44 MtpObjectHandle handle,
63 virtual MtpResponseCode getObjectPropertyValue(MtpObjectHandle handle,
67 virtual MtpResponseCode setObjectPropertyValue(MtpObjectHandle handle,
79 virtual MtpResponseCode getObjectPropertyList(MtpObjectHandle handle,
84 virtual MtpResponseCode getObjectInfo(MtpObjectHandle handle,
87 virtual void* getThumbnail(MtpObjectHandle handle, size_t& outThumbSize) = 0;
89 virtual MtpResponseCode getObjectFilePath(MtpObjectHandle handle,
94 virtual MtpResponseCode deleteFile(MtpObjectHandle handle) = 0;
96 virtual MtpObjectHandleList* getObjectReferences(MtpObjectHandle handle) = 0;
98 virtual MtpResponseCode setObjectReferences(MtpObjectHandle handle,
[all...]
/frameworks/native/include/binder/
H A DIPCThreadState.h63 status_t transact(int32_t handle,
67 void incStrongHandle(int32_t handle);
68 void decStrongHandle(int32_t handle);
69 void incWeakHandle(int32_t handle);
70 void decWeakHandle(int32_t handle);
71 status_t attemptIncStrongHandle(int32_t handle);
72 static void expungeHandle(int32_t handle, IBinder* binder);
73 status_t requestDeathNotification( int32_t handle,
75 status_t clearDeathNotification( int32_t handle,
101 int32_t handle,
[all...]
/frameworks/opt/net/voip/src/java/com/android/server/sip/
H A DSipSessionListenerProxy.java55 handle(t, "onCalling()");
71 handle(t, "onRinging()");
86 handle(t, "onRingingBack()");
102 handle(t, "onCallEstablished()");
117 handle(t, "onCallEnded()");
133 handle(t, "onCallTransferring()");
148 handle(t, "onCallBusy()");
164 handle(t, "onCallChangeFailed()");
180 handle(t, "onError()");
195 handle(
248 private void handle(Throwable t, String message) { method in class:SipSessionListenerProxy
[all...]
/frameworks/native/libs/ui/
H A DGraphicBufferMapper.cpp56 status_t GraphicBufferMapper::registerBuffer(buffer_handle_t handle) argument
61 err = mAllocMod->registerBuffer(mAllocMod, handle);
64 handle, err, strerror(-err));
68 status_t GraphicBufferMapper::unregisterBuffer(buffer_handle_t handle) argument
73 err = mAllocMod->unregisterBuffer(mAllocMod, handle);
76 handle, err, strerror(-err));
80 status_t GraphicBufferMapper::lock(buffer_handle_t handle, argument
86 err = mAllocMod->lock(mAllocMod, handle, static_cast<int>(usage),
94 status_t GraphicBufferMapper::lockYCbCr(buffer_handle_t handle, argument
104 err = mAllocMod->lock_ycbcr(mAllocMod, handle, static_cas
112 unlock(buffer_handle_t handle) argument
123 lockAsync(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd) argument
147 lockAsyncYCbCr(buffer_handle_t handle, uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) argument
177 unlockAsync(buffer_handle_t handle, int *fenceFd) argument
[all...]
/frameworks/base/cmds/telecom/src/com/android/commands/telecom/
H A DTelecom.java134 final PhoneAccountHandle handle = getPhoneAccountHandleFromArgs();
135 final boolean success = mTelecomService.enablePhoneAccount(handle, enabled);
137 System.out.println("Success - " + handle + (enabled ? " enabled." : " disabled."));
139 System.out.println("Error - is " + handle + " a valid PhoneAccount?");
144 final PhoneAccountHandle handle = getPhoneAccountHandleFromArgs();
146 PhoneAccount account = PhoneAccount.builder(handle, label)
149 System.out.println("Success - " + handle + " registered.");
153 final PhoneAccountHandle handle = getPhoneAccountHandleFromArgs();
157 handle, label)
167 System.out.println("Success - " + handle
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DConnectionRequest.java39 * @param handle The handle (e.g., phone number) to which the {@link Connection} is to connect.
44 Uri handle,
46 this(accountHandle, handle, extras, VideoProfile.STATE_AUDIO_ONLY, null);
51 * @param handle The handle (e.g., phone number) to which the {@link Connection} is to connect.
57 Uri handle,
60 this(accountHandle, handle, extras, videoState, null);
65 * @param handle The handle (
42 ConnectionRequest( PhoneAccountHandle accountHandle, Uri handle, Bundle extras) argument
55 ConnectionRequest( PhoneAccountHandle accountHandle, Uri handle, Bundle extras, int videoState) argument
71 ConnectionRequest( PhoneAccountHandle accountHandle, Uri handle, Bundle extras, int videoState, String telecomCallId) argument
[all...]
/frameworks/native/cmds/servicemanager/
H A Dservice_manager.c142 uint32_t handle; member in struct:svcinfo
169 if (si->handle) {
170 binder_release(bs, si->handle);
171 si->handle = 0;
185 if (!si || !si->handle) {
202 return si->handle;
207 uint32_t handle, uid_t uid, int allow_isolated,
212 //ALOGI("add_service('%s',%x,%s) uid=%d\n", str8(s, len), handle,
215 if (!handle || (len == 0) || (len > 127))
220 str8(s, len), handle, ui
205 do_add_service(struct binder_state *bs, const uint16_t *s, size_t len, uint32_t handle, uid_t uid, int allow_isolated, pid_t spid) argument
263 uint32_t handle; local
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_input_InputApplicationHandle.cpp94 NativeInputApplicationHandle* handle; local
96 handle = reinterpret_cast<NativeInputApplicationHandle*>(ptr);
99 handle = new NativeInputApplicationHandle(objWeak);
100 handle->incStrong((void*)android_server_InputApplicationHandle_getHandle);
102 reinterpret_cast<jlong>(handle));
104 return handle;
117 NativeInputApplicationHandle* handle = reinterpret_cast<NativeInputApplicationHandle*>(ptr); local
118 handle->decStrong((void*)android_server_InputApplicationHandle_getHandle);
/frameworks/base/core/java/com/android/internal/content/
H A DNativeLibraryHelper.java66 * A handle to an opened package, consisting of one or more APKs. Used as
150 private static native void nativeClose(long handle); argument
152 private static native long nativeSumNativeBinaries(long handle, String cpuAbi); argument
154 private native static int nativeCopyNativeBinaries(long handle, String sharedLibraryPath, argument
157 private static long sumNativeBinaries(Handle handle, String abi) { argument
159 for (long apkHandle : handle.apkHandles) {
168 * @param handle APK file to scan for native libraries
173 public static int copyNativeBinaries(Handle handle, File sharedLibraryDir, String abi) { argument
174 for (long apkHandle : handle.apkHandles) {
176 handle
191 findSupportedAbi(Handle handle, String[] supportedAbis) argument
216 nativeFindSupportedAbi(long handle, String[] supportedAbis) argument
283 sumNativeBinariesForSupportedAbi(Handle handle, String[] abiList) argument
292 copyNativeBinariesForSupportedAbi(Handle handle, File libraryRoot, String[] abiList, boolean useIsaSubdir) argument
325 copyNativeBinariesWithOverride(Handle handle, File libraryRoot, String abiOverride) argument
386 sumNativeBinariesWithOverride(Handle handle, String abiOverride) argument
432 hasRenderscriptBitcode(Handle handle) argument
[all...]
/frameworks/av/include/soundtrigger/
H A DSoundTrigger.h49 sound_model_handle_t *handle);
51 status_t unloadSoundModel(sound_model_handle_t handle);
53 status_t startRecognition(sound_model_handle_t handle, const sp<IMemory>& dataMemory);
54 status_t stopRecognition(sound_model_handle_t handle);
/frameworks/av/services/audioflinger/
H A DAudioHwDevice.h41 AudioHwDevice(audio_module_handle_t handle, argument
45 : mHandle(handle)
59 audio_module_handle_t handle() const { return mHandle; } function in class:android::AudioHwDevice
73 audio_io_handle_t handle,
/frameworks/base/native/android/
H A Dnet.c26 static int getnetidfromhandle(net_handle_t handle, unsigned *netid) { argument
33 if (handle != NETWORK_UNSPECIFIED &&
34 (handle & k32BitMask) != kHandleMagic) {
39 *netid = ((handle >> (CHAR_BIT * sizeof(k32BitMask))) & k32BitMask);
/frameworks/native/include/gui/
H A DISurfaceComposerClient.h63 sp<IBinder>* handle,
69 virtual status_t destroySurface(const sp<IBinder>& handle) = 0;
74 virtual status_t clearLayerFrameStats(const sp<IBinder>& handle) const = 0;
79 virtual status_t getLayerFrameStats(const sp<IBinder>& handle, FrameStats* outStats) const = 0;

Completed in 423 milliseconds

1234567891011>>