/frameworks/base/libs/androidfw/tests/ |
D | Theme_test.cpp | 78 ApkAssetsCookie cookie; in TEST_F() local 80 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags); in TEST_F() 81 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() 86 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags); in TEST_F() 87 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() 102 ApkAssetsCookie cookie; in TEST_F() local 104 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags); in TEST_F() 105 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() 110 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags); in TEST_F() 111 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() [all …]
|
D | AssetManager2_test.cpp | 94 ApkAssetsCookie cookie = in TEST_F() local 97 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() 100 EXPECT_EQ(0, cookie); in TEST_F() 124 ApkAssetsCookie cookie = in TEST_F() local 127 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() 130 EXPECT_EQ(1, cookie); in TEST_F() 152 ApkAssetsCookie cookie = in TEST_F() local 155 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() 158 EXPECT_EQ(2, cookie); in TEST_F() 162 cookie = assetmanager.GetResource(value.data, false /* may_be_bag */, 0 /* density_override*/, in TEST_F() [all …]
|
/frameworks/base/core/java/android/content/ |
D | AsyncQueryHandler.java | 56 public Object cookie; field in AsyncQueryHandler.WorkerArgs 164 public void startQuery(int token, Object cookie, Uri uri, in startQuery() argument 178 args.cookie = cookie; in startQuery() 207 public final void startInsert(int token, Object cookie, Uri uri, in startInsert() argument 216 args.cookie = cookie; in startInsert() 233 public final void startUpdate(int token, Object cookie, Uri uri, in startUpdate() argument 242 args.cookie = cookie; in startUpdate() 261 public final void startDelete(int token, Object cookie, Uri uri, in startDelete() argument 270 args.cookie = cookie; in startDelete() 286 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { in onQueryComplete() argument [all …]
|
/frameworks/native/libs/binder/ |
D | Debug.cpp | 150 void printTypeCode(uint32_t typeCode, debugPrintFunc func, void* cookie) in printTypeCode() argument 155 func ? (*func)(cookie, buffer) : defaultPrintFunc(cookie, buffer); in printTypeCode() 161 debugPrintFunc func, void* cookie) in printHexData() argument 175 if (singleLineBytesCutoff < 0) func(cookie, "\n"); in printHexData() 176 func(cookie, "(NULL)"); in printHexData() 181 if (singleLineBytesCutoff < 0) func(cookie, "\n"); in printHexData() 182 func(cookie, "(empty)"); in printHexData() 187 if (singleLineBytesCutoff < 0) func(cookie, "\n"); in printHexData() 190 func(cookie, buf); in printHexData() 203 func(cookie, "{\n"); in printHexData() [all …]
|
/frameworks/base/libs/androidfw/ |
D | ZipFileRO.cpp | 43 void *cookie; member in _ZipEntryRO 45 _ZipEntryRO() : cookie(NULL) {} in _ZipEntryRO() 48 EndIteration(cookie); in ~_ZipEntryRO() 129 bool ZipFileRO::startIteration(void** cookie) { in startIteration() argument 130 return startIteration(cookie, NULL, NULL); in startIteration() 133 bool ZipFileRO::startIteration(void** cookie, const char* prefix, const char* suffix) in startIteration() argument 138 int32_t error = StartIteration(mHandle, &(ze->cookie), in startIteration() 147 *cookie = ze; in startIteration() 151 ZipEntryRO ZipFileRO::nextEntry(void* cookie) in nextEntry() argument 153 _ZipEntryRO* ze = reinterpret_cast<_ZipEntryRO*>(cookie); in nextEntry() [all …]
|
D | AssetManager2.cpp | 122 const ResStringPool* AssetManager2::GetStringPoolForCookie(ApkAssetsCookie cookie) const { in GetStringPoolForCookie() 123 if (cookie < 0 || static_cast<size_t>(cookie) >= apk_assets_.size()) { in GetStringPoolForCookie() 126 return apk_assets_[cookie]->GetLoadedArsc()->GetStringPool(); in GetStringPoolForCookie() 141 const DynamicRefTable* AssetManager2::GetDynamicRefTableForCookie(ApkAssetsCookie cookie) const { in GetDynamicRefTableForCookie() 144 if (package_cookie == cookie) { in GetDynamicRefTableForCookie() 196 std::unique_ptr<Asset> AssetManager2::Open(const std::string& filename, ApkAssetsCookie cookie, in Open() argument 199 return OpenNonAsset(new_path, cookie, mode); in Open() 255 ApkAssetsCookie cookie, Asset::AccessMode mode) { in OpenNonAsset() argument 257 if (cookie < 0 || static_cast<size_t>(cookie) >= apk_assets_.size()) { in OpenNonAsset() 260 return apk_assets_[cookie]->Open(filename, mode); in OpenNonAsset() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | CallerInfoAsyncQuery.java | 74 public void onQueryComplete(int token, Object cookie, CallerInfo ci); in onQueryComplete() argument 84 public Object cookie; field in CallerInfoAsyncQuery.CookieWrapper 178 CookieWrapper cw = (CookieWrapper) args.cookie; in handleMessage() 227 CookieWrapper cw = (CookieWrapper) args.cookie; in handleGeoDescription() 228 if (!TextUtils.isEmpty(cw.number) && cw.cookie != null && mContext != null) { in handleGeoDescription() 269 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { in onQueryComplete() argument 273 CookieWrapper cw = (CookieWrapper) cookie; in onQueryComplete() 377 cw.listener.onQueryComplete(token, cw.cookie, mCallerInfo); in onQueryComplete() 401 OnQueryCompleteListener listener, Object cookie) { in startQuery() argument 411 cw.cookie = cookie; in startQuery() [all …]
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteConnection.java | 238 final int cookie = mRecentOperations.beginOperation("close", null, null); in dispose() local 244 mRecentOperations.endOperation(cookie); in dispose() 499 final int cookie = mRecentOperations.beginOperation("prepare", sql, null); in prepare() local 523 mRecentOperations.failOperation(cookie, ex); in prepare() 526 mRecentOperations.endOperation(cookie); in prepare() 547 final int cookie = mRecentOperations.beginOperation("execute", sql, bindArgs); in execute() local 564 mRecentOperations.failOperation(cookie, ex); in execute() 567 mRecentOperations.endOperation(cookie); in execute() 590 final int cookie = mRecentOperations.beginOperation("executeForLong", sql, bindArgs); in executeForLong() local 607 mRecentOperations.failOperation(cookie, ex); in executeForLong() [all …]
|
/frameworks/base/core/java/android/os/ |
D | Trace.java | 112 private static native void nativeAsyncTraceBegin(long tag, String name, int cookie); in nativeAsyncTraceBegin() argument 114 private static native void nativeAsyncTraceEnd(long tag, String name, int cookie); in nativeAsyncTraceEnd() argument 261 public static void asyncTraceBegin(long traceTag, String methodName, int cookie) { in asyncTraceBegin() argument 263 nativeAsyncTraceBegin(traceTag, methodName, cookie); in asyncTraceBegin() 278 public static void asyncTraceEnd(long traceTag, String methodName, int cookie) { in asyncTraceEnd() argument 280 nativeAsyncTraceEnd(traceTag, methodName, cookie); in asyncTraceEnd()
|
D | HwRemoteBinder.java | 45 public native boolean linkToDeath(DeathRecipient recipient, long cookie); in linkToDeath() argument 61 private static final void sendDeathNotice(DeathRecipient recipient, long cookie) { in sendDeathNotice() argument 62 recipient.serviceDied(cookie); in sendDeathNotice()
|
/frameworks/av/media/libaudiohal/ |
D | HalDeathHandlerHidl.cpp | 39 void HalDeathHandler::registerAtExitHandler(void* cookie, AtExitHandler handler) { in registerAtExitHandler() argument 41 mHandlers.insert({cookie, handler}); in registerAtExitHandler() 44 void HalDeathHandler::unregisterAtExitHandler(void* cookie) { in unregisterAtExitHandler() argument 46 mHandlers.erase(cookie); in unregisterAtExitHandler()
|
/frameworks/av/services/soundtrigger/ |
D | SoundTriggerHalHidl.h | 56 void *cookie, 72 void *cookie); 87 const ISoundTriggerHwCallback::RecognitionEvent& event, CallbackCookie cookie); 89 const ISoundTriggerHwCallback::PhraseRecognitionEvent& event, int32_t cookie); 91 const ISoundTriggerHwCallback::ModelEvent& event, CallbackCookie cookie); 96 … void *cookie, android::hardware::soundtrigger::V2_0::SoundModelHandle halHandle) in SoundModel() argument 98 mSoundModelCallback(callback), mSoundModelCookie(cookie), in SoundModel()
|
D | SoundTriggerHalLegacy.cpp | 79 void *cookie, in loadSoundModel() argument 85 return mHwDevice->load_sound_model(mHwDevice, sound_model, callback, cookie, handle); in loadSoundModel() 99 void *cookie) in startRecognition() argument 104 return mHwDevice->start_recognition(mHwDevice, handle, config, callback, cookie); in startRecognition()
|
/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/ |
D | SysTrace.java | 102 public static void beginSectionAsync(String methodName, int cookie) { in beginSectionAsync() argument 104 Log.v(TAG, "beginSectionAsync " + methodName + " " + cookie); in beginSectionAsync() 116 public static void endSectionAsync(String methodName, int cookie) { in endSectionAsync() argument 118 Log.v(TAG, "endSectionAsync " + methodName + " " + cookie); in endSectionAsync()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | SystemViewInfo.java | 29 public SystemViewInfo(String name, Object cookie, int left, int top, in SystemViewInfo() argument 31 super(name, cookie, left, top, right, bottom); in SystemViewInfo() 34 public SystemViewInfo(String name, Object cookie, int left, int top, in SystemViewInfo() argument 36 super(name, cookie, left, top, right, bottom, viewObject, in SystemViewInfo()
|
/frameworks/base/core/jni/ |
D | android_os_Trace.cpp | 74 jlong tag, jstring nameStr, jint cookie) { in android_os_Trace_nativeAsyncTraceBegin() argument 79 ALOGV("%s: %" PRId64 " %s %d", __FUNCTION__, tag, utf8Chars.string(), cookie); in android_os_Trace_nativeAsyncTraceBegin() 80 atrace_async_begin(tag, utf8Chars.string(), cookie); in android_os_Trace_nativeAsyncTraceBegin() 84 jlong tag, jstring nameStr, jint cookie) { in android_os_Trace_nativeAsyncTraceEnd() argument 89 ALOGV("%s: %" PRId64 " %s %d", __FUNCTION__, tag, utf8Chars.string(), cookie); in android_os_Trace_nativeAsyncTraceEnd() 90 atrace_async_end(tag, utf8Chars.string(), cookie); in android_os_Trace_nativeAsyncTraceEnd()
|
/frameworks/base/core/java/android/content/res/ |
D | AssetManager.java | 329 /*package*/ final CharSequence getPooledStringForCookie(int cookie, int id) { in getPooledStringForCookie() argument 332 return mStringBlocks[cookie - 1].get(id); in getPooledStringForCookie() 447 public final InputStream openNonAsset(int cookie, String fileName) in openNonAsset() argument 449 return openNonAsset(cookie, fileName, ACCESS_STREAMING); in openNonAsset() 460 public final InputStream openNonAsset(int cookie, String fileName, int accessMode) in openNonAsset() argument 466 long asset = openNonAssetNative(cookie, fileName, accessMode); in openNonAsset() 481 public final AssetFileDescriptor openNonAssetFd(int cookie, in openNonAssetFd() argument 487 ParcelFileDescriptor pfd = openNonAssetFdNative(cookie, in openNonAssetFd() 512 public final XmlResourceParser openXmlResourceParser(int cookie, in openXmlResourceParser() argument 514 XmlBlock block = openXmlBlockAsset(cookie, fileName); in openXmlResourceParser() [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ZipFileRO.h | 93 bool startIteration(void** cookie); 94 bool startIteration(void** cookie, const char* prefix, const char* suffix); 100 ZipEntryRO nextEntry(void* cookie); 102 void endIteration(void* cookie);
|
D | AssetManager2.h | 53 ApkAssetsCookie cookie; member 105 const ResStringPool* GetStringPoolForCookie(ApkAssetsCookie cookie) const; 111 const DynamicRefTable* GetDynamicRefTableForCookie(ApkAssetsCookie cookie) const; 146 std::unique_ptr<Asset> Open(const std::string& filename, ApkAssetsCookie cookie, 165 std::unique_ptr<Asset> OpenNonAsset(const std::string& filename, ApkAssetsCookie cookie, 212 ApkAssetsCookie ResolveReference(ApkAssetsCookie cookie, Res_value* in_out_value, 331 ApkAssetsCookie ResolveAttributeReference(ApkAssetsCookie cookie, Res_value* in_out_value, 343 ApkAssetsCookie cookie; member
|
/frameworks/native/libs/binder/include/binder/ |
D | Debug.h | 31 typedef void (*debugPrintFunc)(void* cookie, const char* txt); 34 debugPrintFunc func = 0, void* cookie = 0); 39 debugPrintFunc func = 0, void* cookie = 0);
|
/frameworks/base/core/java/android/view/textservice/ |
D | SuggestionsInfo.java | 71 int suggestionsAttributes, String[] suggestions, int cookie, int sequence) { in SuggestionsInfo() argument 80 mCookie = cookie; in SuggestionsInfo() 113 public void setCookieAndSequence(int cookie, int sequence) { in setCookieAndSequence() argument 114 mCookie = cookie; in setCookieAndSequence()
|
D | TextInfo.java | 51 public TextInfo(String text, int cookie, int sequenceNumber) { in TextInfo() argument 52 this(text, 0, getStringLengthOrZero(text), cookie, sequenceNumber); in TextInfo() 68 public TextInfo(CharSequence charSequence, int start, int end, int cookie, int sequenceNumber) { in TextInfo() argument 83 mCookie = cookie; in TextInfo()
|
/frameworks/av/media/libaudiohal/include/media/audiohal/hidl/ |
D | HalDeathHandler.h | 38 void registerAtExitHandler(void* cookie, AtExitHandler handler); 39 void unregisterAtExitHandler(void* cookie); 42 virtual void serviceDied(uint64_t cookie, const wp<IBase>& who);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | LauncherAppsService.java | 736 BroadcastCookie cookie = (BroadcastCookie) mListeners.getBroadcastCookie(i); in onPackageAdded() local 737 if (!isEnabledProfileOf(user, cookie.user, "onPackageAdded")) continue; in onPackageAdded() 758 BroadcastCookie cookie = (BroadcastCookie) mListeners.getBroadcastCookie(i); in onPackageRemoved() local 759 if (!isEnabledProfileOf(user, cookie.user, "onPackageRemoved")) continue; in onPackageRemoved() 780 BroadcastCookie cookie = (BroadcastCookie) mListeners.getBroadcastCookie(i); in onPackageModified() local 781 if (!isEnabledProfileOf(user, cookie.user, "onPackageModified")) continue; in onPackageModified() 802 BroadcastCookie cookie = (BroadcastCookie) mListeners.getBroadcastCookie(i); in onPackagesAvailable() local 803 if (!isEnabledProfileOf(user, cookie.user, "onPackagesAvailable")) continue; in onPackagesAvailable() 824 BroadcastCookie cookie = (BroadcastCookie) mListeners.getBroadcastCookie(i); in onPackagesUnavailable() local 825 … if (!isEnabledProfileOf(user, cookie.user, "onPackagesUnavailable")) continue; in onPackagesUnavailable() [all …]
|
/frameworks/native/libs/binder/tests/ |
D | binderDriverInterfaceTest.cpp | 217 binder_uintptr_t cookie = 1234; in TEST_F() local 225 .cookie = 0, in TEST_F() 270 EXPECT_EQ(0u, br.arg2.cookie); in TEST_F() 300 binder_uintptr_t cookie = 1234; in TEST_F() local 316 .cookie = cookie, in TEST_F() 321 .cookie = cookie, in TEST_F() 344 EXPECT_EQ(cookie, br.arg1); in TEST_F()
|