/frameworks/base/libs/androidfw/tests/ |
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 | 106 ApkAssetsCookie cookie = in TEST_F() local 109 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() 112 EXPECT_EQ(0, cookie); in TEST_F() 136 ApkAssetsCookie cookie = in TEST_F() local 139 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() 142 EXPECT_EQ(1, cookie); in TEST_F() 164 ApkAssetsCookie cookie = in TEST_F() local 167 ASSERT_NE(kInvalidCookie, cookie); in TEST_F() 170 EXPECT_EQ(2, cookie); in TEST_F() 174 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/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 154 int32_t error = StartIteration(mHandle, &(ze->cookie), in startIteration() 164 *cookie = ze; in startIteration() 168 ZipEntryRO ZipFileRO::nextEntry(void* cookie) in nextEntry() argument 170 _ZipEntryRO* ze = reinterpret_cast<_ZipEntryRO*>(cookie); in nextEntry() [all …]
|
D | AssetManager2.cpp | 182 const ResStringPool* AssetManager2::GetStringPoolForCookie(ApkAssetsCookie cookie) const { in GetStringPoolForCookie() 183 if (cookie < 0 || static_cast<size_t>(cookie) >= apk_assets_.size()) { in GetStringPoolForCookie() 186 return apk_assets_[cookie]->GetLoadedArsc()->GetStringPool(); in GetStringPoolForCookie() 201 const DynamicRefTable* AssetManager2::GetDynamicRefTableForCookie(ApkAssetsCookie cookie) const { in GetDynamicRefTableForCookie() 204 if (package_cookie == cookie) { in GetDynamicRefTableForCookie() 297 std::unique_ptr<Asset> AssetManager2::Open(const std::string& filename, ApkAssetsCookie cookie, in Open() argument 300 return OpenNonAsset(new_path, cookie, mode); in Open() 365 ApkAssetsCookie cookie, in OpenNonAsset() argument 367 if (cookie < 0 || static_cast<size_t>(cookie) >= apk_assets_.size()) { in OpenNonAsset() 370 return apk_assets_[cookie]->Open(filename, mode); in OpenNonAsset() [all …]
|
/frameworks/base/core/java/android/os/ |
D | Trace.java | 127 private static native void nativeAsyncTraceBegin(long tag, String name, int cookie); in nativeAsyncTraceBegin() argument 129 private static native void nativeAsyncTraceEnd(long tag, String name, int cookie); in nativeAsyncTraceEnd() argument 282 public static void asyncTraceBegin(long traceTag, String methodName, int cookie) { in asyncTraceBegin() argument 284 nativeAsyncTraceBegin(traceTag, methodName, cookie); in asyncTraceBegin() 300 public static void asyncTraceEnd(long traceTag, String methodName, int cookie) { in asyncTraceEnd() argument 302 nativeAsyncTraceEnd(traceTag, methodName, cookie); in asyncTraceEnd() 362 public static void beginAsyncSection(@NonNull String methodName, int cookie) { in beginAsyncSection() argument 363 asyncTraceBegin(TRACE_TAG_APP, methodName, cookie); in beginAsyncSection() 374 public static void endAsyncSection(@NonNull String methodName, int cookie) { in endAsyncSection() argument 375 asyncTraceEnd(TRACE_TAG_APP, methodName, cookie); in endAsyncSection()
|
/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 | 213 final int cookie = mRecentOperations.beginOperation("open", null, null); in open() local 220 mRecentOperations.endOperation(cookie); in open() 246 final int cookie = mRecentOperations.beginOperation("close", null, null); in dispose() local 252 mRecentOperations.endOperation(cookie); in dispose() 591 final int cookie = mRecentOperations.beginOperation("prepare", sql, null); in prepare() local 615 mRecentOperations.failOperation(cookie, ex); in prepare() 618 mRecentOperations.endOperation(cookie); in prepare() 639 final int cookie = mRecentOperations.beginOperation("execute", sql, bindArgs); in execute() local 656 mRecentOperations.failOperation(cookie, ex); in execute() 659 mRecentOperations.endOperation(cookie); in execute() [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/av/services/soundtrigger/ |
D | SoundTriggerHalHidl.h | 69 void *cookie, 85 void *cookie); 108 const V2_0_ISoundTriggerHwCallback::RecognitionEvent& event, CallbackCookie cookie); 110 const V2_0_ISoundTriggerHwCallback::PhraseRecognitionEvent& event, int32_t cookie); 112 const V2_0_ISoundTriggerHwCallback::ModelEvent& event, CallbackCookie cookie); 114 const RecognitionEvent& event, CallbackCookie cookie); 116 const PhraseRecognitionEvent& event, int32_t cookie); 118 const ModelEvent& event, CallbackCookie cookie); 123 … void *cookie, android::hardware::soundtrigger::V2_0::SoundModelHandle halHandle) in SoundModel() argument 125 mSoundModelCallback(callback), mSoundModelCookie(cookie), in SoundModel()
|
/frameworks/base/core/jni/ |
D | android_os_Trace.cpp | 76 jlong tag, jstring nameStr, jint cookie) { in android_os_Trace_nativeAsyncTraceBegin() argument 77 withString(env, nameStr, [tag, cookie](char* str) { in android_os_Trace_nativeAsyncTraceBegin() 78 atrace_async_begin(tag, str, cookie); in android_os_Trace_nativeAsyncTraceBegin() 83 jlong tag, jstring nameStr, jint cookie) { in android_os_Trace_nativeAsyncTraceEnd() argument 84 withString(env, nameStr, [tag, cookie](char* str) { in android_os_Trace_nativeAsyncTraceEnd() 85 atrace_async_end(tag, str, cookie); in android_os_Trace_nativeAsyncTraceEnd()
|
D | android_util_AssetManager.cpp | 118 constexpr inline static jint ApkAssetsCookieToJavaCookie(ApkAssetsCookie cookie) { in ApkAssetsCookieToJavaCookie() argument 119 return cookie != kInvalidCookie ? static_cast<jint>(cookie + 1) : -1; in ApkAssetsCookieToJavaCookie() 122 constexpr inline static ApkAssetsCookie JavaCookieToApkAssetsCookie(jint cookie) { in JavaCookieToApkAssetsCookie() argument 123 return cookie > 0 ? static_cast<ApkAssetsCookie>(cookie - 1) : kInvalidCookie; in JavaCookieToApkAssetsCookie() 309 static jint CopyValue(JNIEnv* env, ApkAssetsCookie cookie, const Res_value& value, uint32_t ref, in CopyValue() argument 313 ApkAssetsCookieToJavaCookie(cookie)); in CopyValue() 321 return static_cast<jint>(ApkAssetsCookieToJavaCookie(cookie)); in CopyValue() 647 ApkAssetsCookie cookie = JavaCookieToApkAssetsCookie(jcookie); in NativeOpenNonAsset() local 664 if (cookie != kInvalidCookie) { in NativeOpenNonAsset() 665 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/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/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/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/core/java/android/content/res/ |
D | AssetManager.java | 506 final int cookie = nativeGetResourceValue( in getResourceValue() local 508 if (cookie <= 0) { in getResourceValue() 517 outValue.string = mApkAssets[cookie - 1].getStringFromPool(outValue.data); in getResourceValue() 554 final int cookie = nativeGetResourceBagValue(mObject, resId, bagEntryId, outValue); in getResourceBagText() local 555 if (cookie <= 0) { in getResourceBagText() 564 return mApkAssets[cookie - 1].getStringFromPool(outValue.data); in getResourceBagText() 639 int cookie = rawInfoArray[i]; in getResourceTextArray() local 641 retArray[j] = (index >= 0 && cookie > 0) in getResourceTextArray() 642 ? mApkAssets[cookie - 1].getStringFromPool(index) : null; in getResourceTextArray() 687 final int cookie = nativeThemeGetAttributeValue(mObject, theme, resId, outValue, in getThemeValue() local [all …]
|
/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);
|
D | AssetManager2.h | 56 ApkAssetsCookie cookie; member 117 const ResStringPool* GetStringPoolForCookie(ApkAssetsCookie cookie) const; 125 const DynamicRefTable* GetDynamicRefTableForCookie(ApkAssetsCookie cookie) const; 165 std::unique_ptr<Asset> Open(const std::string& filename, ApkAssetsCookie cookie, 184 std::unique_ptr<Asset> OpenNonAsset(const std::string& filename, ApkAssetsCookie cookie, 231 ApkAssetsCookie ResolveReference(ApkAssetsCookie cookie, Res_value* in_out_value, 398 ApkAssetsCookie cookie = kInvalidCookie; member 465 ApkAssetsCookie ResolveAttributeReference(ApkAssetsCookie cookie, Res_value* in_out_value,
|
/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()
|
/frameworks/native/libs/binder/include/binder/ |
D | Debug.h | 31 typedef void (*debugPrintFunc)(void* cookie, const char* txt); 34 debugPrintFunc func = nullptr, void* cookie = nullptr); 39 debugPrintFunc func = nullptr, void* cookie = nullptr);
|