/frameworks/base/libs/androidfw/tests/ |
D | Idmap_test.cpp | 66 ApkAssetsCookie cookie) { in GetStringFromApkAssets() argument 68 const ResStringPool* string_pool = assets[cookie]->GetLoadedArsc()->GetStringPool(); in GetStringFromApkAssets() 81 ApkAssetsCookie cookie = asset_manager.GetResource(overlayable::R::string::overlayable5, in TEST_F() local 85 ASSERT_EQ(cookie, 2U); in TEST_F() 87 ASSERT_EQ(GetStringFromApkAssets(asset_manager, val, cookie), "Overlay One"); in TEST_F() 97 ApkAssetsCookie cookie = asset_manager.GetResource(overlayable::R::string::overlayable10, in TEST_F() local 101 ASSERT_EQ(cookie, 0U); in TEST_F() 103 ASSERT_EQ(GetStringFromApkAssets(asset_manager, val, cookie), "yes"); in TEST_F() 113 ApkAssetsCookie cookie = asset_manager.GetResource(overlayable::R::string::overlayable8, in TEST_F() local 117 ASSERT_EQ(cookie, 2U); in TEST_F() [all …]
|
D | Theme_test.cpp | 85 ApkAssetsCookie cookie; in TEST_F() local 87 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags); in TEST_F() 88 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() 93 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags); in TEST_F() 94 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() 109 ApkAssetsCookie cookie; in TEST_F() local 111 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags); in TEST_F() 112 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() 117 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags); in TEST_F() 118 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() [all …]
|
D | AssetManager2_test.cpp | 115 ApkAssetsCookie cookie = in TEST_F() local 118 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() 121 EXPECT_EQ(0, cookie); in TEST_F() 145 ApkAssetsCookie cookie = in TEST_F() local 148 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() 151 EXPECT_EQ(1, cookie); in TEST_F() 173 ApkAssetsCookie cookie = in TEST_F() local 176 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() 179 EXPECT_EQ(2, cookie); in TEST_F() 183 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/av/services/camera/libcameraservice/hidl/ |
D | CameraHybridInterface.h | 44 void* cookie = nullptr, 48 void* cookie = nullptr, 56 void* cookie; member 63 recipient(r), cookie(c), flags(f), who(w) { in Obituary() 67 cookie(o.cookie), in Obituary() 73 cookie = o.cookie; 96 void* cookie, uint32_t flags) { in linkToDeath() argument 101 mObituaries.push_back(new Obituary(recipient, cookie, flags, this)); in linkToDeath() 116 void* cookie, uint32_t flags, in unlinkToDeath() argument 122 ((recipient == nullptr) && (cookie == (*i)->cookie)))) { in unlinkToDeath()
|
/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/services/core/java/com/android/server/soundtrigger_middleware/ |
D | SoundTriggerHw2Compat.java | 141 Callback callback, int cookie) { in loadSoundModel() argument 146 as2_1().loadSoundModel_2_1(soundModel, new SoundTriggerCallback(callback), cookie, in loadSoundModel() 153 return loadSoundModel_2_0(soundModel, callback, cookie); in loadSoundModel() 165 Callback callback, int cookie) { in loadPhraseSoundModel() argument 171 cookie, in loadPhraseSoundModel() 178 return loadPhraseSoundModel_2_0(soundModel, callback, cookie); in loadPhraseSoundModel() 221 Callback callback, int cookie) { in startRecognition() argument 228 startRecognition_2_1(modelHandle, config, callback, cookie); in startRecognition() 305 public boolean linkToDeath(IHwBinder.DeathRecipient recipient, long cookie) { in linkToDeath() argument 306 return mBinder.linkToDeath(recipient, cookie); in linkToDeath() [all …]
|
D | SoundTriggerHw2Enforcer.java | 61 int cookie) { in loadSoundModel() argument 64 cookie); in loadSoundModel() 76 int cookie) { in loadPhraseSoundModel() argument 80 cookie); in loadPhraseSoundModel() 130 int cookie) { in startRecognition() argument 133 cookie); in startRecognition() 179 public boolean linkToDeath(IHwBinder.DeathRecipient recipient, long cookie) { in linkToDeath() argument 180 return mUnderlying.linkToDeath(recipient, cookie); in linkToDeath() 214 int cookie) { in recognitionCallback() argument 227 mUnderlying.recognitionCallback(event, cookie); in recognitionCallback() [all …]
|
D | ISoundTriggerHw2.java | 68 SoundTriggerHw2Compat.Callback callback, int cookie); in loadSoundModel() argument 77 SoundTriggerHw2Compat.Callback callback, int cookie); in loadPhraseSoundModel() argument 101 SoundTriggerHw2Compat.Callback callback, int cookie); in startRecognition() argument 129 boolean linkToDeath(IHwBinder.DeathRecipient recipient, long cookie); in linkToDeath() argument 148 int cookie); in recognitionCallback() argument 156 int cookie); in phraseRecognitionCallback() argument
|
/frameworks/base/libs/androidfw/ |
D | AttributeResolution.cpp | 31 static uint32_t ApkAssetsCookieToJavaCookie(ApkAssetsCookie cookie) { in ApkAssetsCookieToJavaCookie() argument 32 return cookie != kInvalidCookie ? static_cast<uint32_t>(cookie + 1) : static_cast<uint32_t>(-1); in ApkAssetsCookieToJavaCookie() 109 ApkAssetsCookie cookie = kInvalidCookie; in ResolveAttrs() local 130 cookie = entry->cookie; in ResolveAttrs() 143 theme->ResolveAttributeReference(cookie, &value, &config, &type_set_flags, &resid); in ResolveAttrs() 145 cookie = new_cookie; in ResolveAttrs() 160 cookie = new_cookie; in ResolveAttrs() 175 cookie = kInvalidCookie; in ResolveAttrs() 185 out_values[STYLE_ASSET_COOKIE] = ApkAssetsCookieToJavaCookie(cookie); in ResolveAttrs() 283 ApkAssetsCookie cookie = kInvalidCookie; in ApplyStyle() local [all …]
|
D | ZipFileRO.cpp | 43 void *cookie; member in _ZipEntryRO 45 _ZipEntryRO() : cookie(NULL) {} in _ZipEntryRO() 48 EndIteration(cookie); in ~_ZipEntryRO() 145 bool ZipFileRO::startIteration(void** cookie) { in startIteration() argument 146 return startIteration(cookie, NULL, NULL); in startIteration() 149 bool ZipFileRO::startIteration(void** cookie, const char* prefix, const char* suffix) in startIteration() argument 152 int32_t error = StartIteration(mHandle, &(ze->cookie), in startIteration() 161 *cookie = ze; in startIteration() 165 ZipEntryRO ZipFileRO::nextEntry(void* cookie) in nextEntry() argument 167 _ZipEntryRO* ze = reinterpret_cast<_ZipEntryRO*>(cookie); in nextEntry() [all …]
|
D | AssetManager2.cpp | 226 const ResStringPool* AssetManager2::GetStringPoolForCookie(ApkAssetsCookie cookie) const { in GetStringPoolForCookie() 227 if (cookie < 0 || static_cast<size_t>(cookie) >= apk_assets_.size()) { in GetStringPoolForCookie() 230 return apk_assets_[cookie]->GetLoadedArsc()->GetStringPool(); in GetStringPoolForCookie() 246 ApkAssetsCookie cookie) const { in GetDynamicRefTableForCookie() 249 if (package_cookie == cookie) { in GetDynamicRefTableForCookie() 362 non_system_overlays.insert(apk_assets_[overlay.cookie]->GetPath()); in GetNonSystemOverlayPaths() 430 std::unique_ptr<Asset> AssetManager2::Open(const std::string& filename, ApkAssetsCookie cookie, in Open() argument 433 return OpenNonAsset(new_path, cookie, mode); in Open() 498 ApkAssetsCookie cookie, in OpenNonAsset() argument 500 if (cookie < 0 || static_cast<size_t>(cookie) >= apk_assets_.size()) { in OpenNonAsset() [all …]
|
/frameworks/base/core/java/android/os/ |
D | Trace.java | 131 private static native void nativeAsyncTraceBegin(long tag, String name, int cookie); in nativeAsyncTraceBegin() argument 133 private static native void nativeAsyncTraceEnd(long tag, String name, int cookie); in nativeAsyncTraceEnd() argument 234 public static void asyncTraceBegin(long traceTag, String methodName, int cookie) { in asyncTraceBegin() argument 236 nativeAsyncTraceBegin(traceTag, methodName, cookie); in asyncTraceBegin() 252 public static void asyncTraceEnd(long traceTag, String methodName, int cookie) { in asyncTraceEnd() argument 254 nativeAsyncTraceEnd(traceTag, methodName, cookie); in asyncTraceEnd() 314 public static void beginAsyncSection(@NonNull String methodName, int cookie) { in beginAsyncSection() argument 315 asyncTraceBegin(TRACE_TAG_APP, methodName, cookie); in beginAsyncSection() 326 public static void endAsyncSection(@NonNull String methodName, int cookie) { in endAsyncSection() argument 327 asyncTraceEnd(TRACE_TAG_APP, methodName, cookie); in endAsyncSection()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | CallerInfoAsyncQuery.java | 74 public void onQueryComplete(int token, Object cookie, CallerInfo ci); in onQueryComplete() argument 88 public Object cookie; field in CallerInfoAsyncQuery.CookieWrapper 182 CookieWrapper cw = (CookieWrapper) args.cookie; in handleMessage() 231 CookieWrapper cw = (CookieWrapper) args.cookie; in handleGeoDescription() 232 if (!TextUtils.isEmpty(cw.number) && cw.cookie != null && mContext != null) { in handleGeoDescription() 273 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { in onQueryComplete() argument 277 CookieWrapper cw = (CookieWrapper) cookie; in onQueryComplete() 381 cw.listener.onQueryComplete(token, cw.cookie, mCallerInfo); in onQueryComplete() 405 OnQueryCompleteListener listener, Object cookie) { in startQuery() argument 415 cw.cookie = cookie; in startQuery() [all …]
|
/frameworks/base/native/android/ |
D | trace.cpp | 32 void ATrace_beginAsyncSection(const char* sectionName, int32_t cookie) { in ATrace_beginAsyncSection() argument 33 atrace_async_begin(ATRACE_TAG_APP, sectionName, cookie); in ATrace_beginAsyncSection() 36 void ATrace_endAsyncSection(const char* sectionName, int32_t cookie) { in ATrace_endAsyncSection() argument 37 atrace_async_end(ATRACE_TAG_APP, sectionName, cookie); in ATrace_endAsyncSection()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteConnection.java | 222 final int cookie = mRecentOperations.beginOperation("open", null, null); in open() local 254 mRecentOperations.endOperation(cookie); in open() 275 final int cookie = mRecentOperations.beginOperation("close", null, null); in dispose() local 281 mRecentOperations.endOperation(cookie); in dispose() 650 final int cookie = mRecentOperations.beginOperation("prepare", sql, null); in prepare() local 674 mRecentOperations.failOperation(cookie, ex); in prepare() 677 mRecentOperations.endOperation(cookie); in prepare() 698 final int cookie = mRecentOperations.beginOperation("execute", sql, bindArgs); in execute() local 715 mRecentOperations.failOperation(cookie, ex); in execute() 718 mRecentOperations.endOperation(cookie); in execute() [all …]
|
/frameworks/base/core/jni/ |
D | android_os_Trace.cpp | 72 jlong tag, jstring nameStr, jint cookie) { in android_os_Trace_nativeAsyncTraceBegin() argument 73 withString(env, nameStr, [tag, cookie](char* str) { in android_os_Trace_nativeAsyncTraceBegin() 74 atrace_async_begin(tag, str, cookie); in android_os_Trace_nativeAsyncTraceBegin() 79 jlong tag, jstring nameStr, jint cookie) { in android_os_Trace_nativeAsyncTraceEnd() argument 80 withString(env, nameStr, [tag, cookie](char* str) { in android_os_Trace_nativeAsyncTraceEnd() 81 atrace_async_end(tag, str, cookie); in android_os_Trace_nativeAsyncTraceEnd()
|
D | android_util_AssetManager.cpp | 110 constexpr inline static jint ApkAssetsCookieToJavaCookie(ApkAssetsCookie cookie) { in ApkAssetsCookieToJavaCookie() argument 111 return cookie != kInvalidCookie ? static_cast<jint>(cookie + 1) : -1; in ApkAssetsCookieToJavaCookie() 114 constexpr inline static ApkAssetsCookie JavaCookieToApkAssetsCookie(jint cookie) { in JavaCookieToApkAssetsCookie() argument 115 return cookie > 0 ? static_cast<ApkAssetsCookie>(cookie - 1) : kInvalidCookie; in JavaCookieToApkAssetsCookie() 200 static jint CopyValue(JNIEnv* env, ApkAssetsCookie cookie, const Res_value& value, uint32_t ref, in CopyValue() argument 204 ApkAssetsCookieToJavaCookie(cookie)); in CopyValue() 212 return static_cast<jint>(ApkAssetsCookieToJavaCookie(cookie)); in CopyValue() 575 ApkAssetsCookie cookie = JavaCookieToApkAssetsCookie(jcookie); in NativeOpenNonAsset() local 592 if (cookie != kInvalidCookie) { in NativeOpenNonAsset() 593 asset = assetmanager->OpenNonAsset(asset_path_utf8.c_str(), cookie, in NativeOpenNonAsset() [all …]
|
/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/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/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
D | AppTrace.java | 28 public static void start(String key, int cookie) { in start() argument 29 android.os.Trace.asyncTraceBegin(TRACE_TAG_APP, key, cookie); in start() 49 public static void end(String key, int cookie) { in end() argument 50 android.os.Trace.asyncTraceEnd(TRACE_TAG_APP, key, cookie); in end()
|
/frameworks/av/media/bufferpool/1.0/ |
D | Accessor.cpp | 43 uint64_t cookie = it->second; in remove() local 45 auto cit = mCookieToConnections.find(cookie); in remove() 56 uint64_t cookie, in addCookieToConnection() argument 62 mConnectionToCookie.insert(std::make_pair(connectionId, cookie)); in addCookieToConnection() 63 auto it = mCookieToConnections.find(cookie); in addCookieToConnection() 68 cookie, std::set<int64_t>{connectionId})); in addCookieToConnection() 73 uint64_t cookie, in serviceDied() argument 80 auto it = mCookieToConnections.find(cookie); in serviceDied()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ZipFileRO.h | 100 bool startIteration(void** cookie); 101 bool startIteration(void** cookie, const char* prefix, const char* suffix); 107 ZipEntryRO nextEntry(void* cookie); 109 void endIteration(void* cookie);
|
/frameworks/av/media/bufferpool/2.0/ |
D | Accessor.cpp | 43 uint64_t cookie = it->second; in remove() local 45 auto cit = mCookieToConnections.find(cookie); in remove() 56 uint64_t cookie, in addCookieToConnection() argument 62 mConnectionToCookie.insert(std::make_pair(connectionId, cookie)); in addCookieToConnection() 63 auto it = mCookieToConnections.find(cookie); in addCookieToConnection() 68 cookie, std::set<int64_t>{connectionId})); in addCookieToConnection() 73 uint64_t cookie, in serviceDied() argument 80 auto it = mCookieToConnections.find(cookie); in serviceDied()
|