/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/ |
D | DownloadsDeletionTypeTest.java | 57 File temp = new File(mDownloadsDirectory, "temp"); in testInitializeWithUncheckedFiles() local 60 filePaths[0] = temp.getPath(); in testInitializeWithUncheckedFiles() 64 assertThat(mDeletion.isChecked(temp)).isFalse(); in testInitializeWithUncheckedFiles() 70 File temp = new File(mDownloadsDirectory, "temp"); in testFetchDownloads() local 73 result.files.add(temp); in testFetchDownloads() 79 assertThat(fileSet.contains(temp)).isTrue(); in testFetchDownloads() 85 File temp = new File(mDownloadsDirectory, "temp"); in testSetChecked() local 87 result.files.add(temp); in testSetChecked() 92 assertThat(mDeletion.isChecked(temp)).isTrue(); in testSetChecked() 93 mDeletion.setFileChecked(temp, false); in testSetChecked() [all …]
|
/packages/apps/SecureElement/src/com/android/se/security/gpac/ |
D | Response_RefreshTag_DO.java | 85 long temp; in interpret() local 86 temp = data[index++]; in interpret() 87 mRefreshTag = (temp << 56L); in interpret() 88 temp = data[index++]; in interpret() 89 mRefreshTag += (temp << 48L); in interpret() 90 temp = data[index++]; in interpret() 91 mRefreshTag += (temp << 40L); in interpret() 92 temp = data[index++]; in interpret() 93 mRefreshTag += (temp << 32L); in interpret() 94 temp = data[index++]; in interpret() [all …]
|
D | AR_DO.java | 117 BerTlv temp = BerTlv.decode(data, index); in interpret() local 119 if (temp.getTag() == APDU_AR_DO.TAG) { // APDU-AR-DO in interpret() 120 mApduAr = new APDU_AR_DO(data, temp.getValueIndex(), temp.getValueLength()); in interpret() 122 } else if (temp.getTag() == NFC_AR_DO.TAG) { // NFC-AR-DO in interpret() 123 mNfcAr = new NFC_AR_DO(data, temp.getValueIndex(), temp.getValueLength()); in interpret() 125 } else if (temp.getTag() == PERM_AR_DO.TAG) { // PERM-AR-DO in interpret() 126 mPermAr = new PERM_AR_DO(data, temp.getValueIndex(), temp.getValueLength()); in interpret() 133 index = temp.getValueIndex() + temp.getValueLength(); in interpret() 158 ByteArrayOutputStream temp = new ByteArrayOutputStream(); in build() local 160 mApduAr.build(temp); in build() [all …]
|
D | REF_DO.java | 127 BerTlv temp = BerTlv.decode(data, index); in interpret() local 129 if (temp.getTag() == AID_REF_DO.TAG in interpret() 130 || temp.getTag() == AID_REF_DO.TAG_DEFAULT_APPLICATION) { // AID-REF-DO in interpret() 131 mAidDo = new AID_REF_DO(data, temp.getTag(), temp.getValueIndex(), in interpret() 132 temp.getValueLength()); in interpret() 134 } else if (temp.getTag() == Hash_REF_DO.TAG) { // Hash-REF-DO in interpret() 135 mHashDo = new Hash_REF_DO(data, temp.getValueIndex(), temp.getValueLength()); in interpret() 137 } else if (temp.getTag() == PKG_REF_DO.TAG) { // PKG-REF-DO in interpret() 138 mPkgDo = new PKG_REF_DO(data, temp.getValueIndex(), temp.getValueLength()); in interpret() 145 index = temp.getValueIndex() + temp.getValueLength(); in interpret() [all …]
|
D | REF_AR_DO.java | 98 BerTlv temp = BerTlv.decode(data, index); in interpret() local 99 if (temp.getTag() == REF_DO.TAG) { // REF-DO in interpret() 100 mRefDo = new REF_DO(data, temp.getValueIndex(), temp.getValueLength()); in interpret() 102 } else if (temp.getTag() == AR_DO.TAG) { // AR-DO in interpret() 103 mArDo = new AR_DO(data, temp.getValueIndex(), temp.getValueLength()); in interpret() 111 index = temp.getValueIndex() + temp.getValueLength(); in interpret() 132 ByteArrayOutputStream temp = new ByteArrayOutputStream(); in build() local 139 mRefDo.build(temp); in build() 140 mArDo.build(temp); in build() 142 byte[] data = temp.toByteArray(); in build()
|
D | Response_ARAC_AID_DO.java | 87 BerTlv temp; in interpret() local 91 temp = BerTlv.decode(data, currentPos); in interpret() 95 if (temp.getTag() == AID_REF_DO.TAG in interpret() 96 || temp.getTag() == AID_REF_DO.TAG_DEFAULT_APPLICATION) { in interpret() 98 new AID_REF_DO(data, temp.getTag(), temp.getValueIndex(), in interpret() 99 temp.getValueLength()); in interpret() 108 currentPos = temp.getValueIndex() + temp.getValueLength(); in interpret()
|
D | BerTlv.java | 87 int temp = data[curIndex++] & 0xff; in decode() local 88 switch (temp) { in decode() 92 tag = ((temp & 0xff) << 8) | (data[curIndex++] & 0xff); in decode() 100 tag = temp; in decode() 110 int temp = data[curIndex++] & 0xff; in decode() local 111 if (temp < 0x80) { in decode() 112 length = temp; in decode() 113 } else if (temp == 0x81) { in decode() 126 } else if (temp == 0x82) { in decode() 139 } else if (temp == 0x83) { in decode()
|
D | Response_ALL_AR_DO.java | 87 BerTlv temp; in interpret() local 91 temp = BerTlv.decode(data, currentPos); in interpret() 95 if (temp.getTag() == REF_AR_DO.TAG) { // REF-AR-DO tag in interpret() 96 tempRefArDo = new REF_AR_DO(data, temp.getValueIndex(), temp.getValueLength()); in interpret() 105 currentPos = temp.getValueIndex() + temp.getValueLength(); in interpret()
|
D | Response_AR_DO.java | 86 BerTlv temp = BerTlv.decode(data, currentPos); in interpret() local 88 if (temp.getTag() == AR_DO.TAG) { // AR-DO tag in interpret() 89 mArDo = new AR_DO(data, temp.getValueIndex(), temp.getValueLength()); in interpret() 97 currentPos = temp.getValueIndex() + temp.getValueLength(); in interpret()
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_rob_image_homography.cpp | 114 double back,Jf_dx[18],f[2],temp,temp2; in db_RobImageHomography_Jacobians() local 130 temp=Jf_dx[0]; temp2=Jf_dx[9]; in db_RobImageHomography_Jacobians() 131 JtJ[0]+=temp*Jf_dx[0]+temp2*Jf_dx[9]; in db_RobImageHomography_Jacobians() 132 JtJ[1]+=temp*Jf_dx[1]+temp2*Jf_dx[10]; in db_RobImageHomography_Jacobians() 133 JtJ[2]+=temp*Jf_dx[2]+temp2*Jf_dx[11]; in db_RobImageHomography_Jacobians() 134 JtJ[3]+=temp*Jf_dx[3]+temp2*Jf_dx[12]; in db_RobImageHomography_Jacobians() 135 JtJ[4]+=temp*Jf_dx[4]+temp2*Jf_dx[13]; in db_RobImageHomography_Jacobians() 136 JtJ[5]+=temp*Jf_dx[5]+temp2*Jf_dx[14]; in db_RobImageHomography_Jacobians() 137 JtJ[6]+=temp*Jf_dx[6]+temp2*Jf_dx[15]; in db_RobImageHomography_Jacobians() 138 JtJ[7]+=temp*Jf_dx[7]+temp2*Jf_dx[16]; in db_RobImageHomography_Jacobians() [all …]
|
D | db_utilities_linalg.cpp | 33 double s,temp; in db_CholeskyDecomp6x6() local 39 temp=db_SafeReciprocal(d[0]); in db_CholeskyDecomp6x6() 40 A[6]=A[1]*temp; in db_CholeskyDecomp6x6() 41 A[12]=A[2]*temp; in db_CholeskyDecomp6x6() 42 A[18]=A[3]*temp; in db_CholeskyDecomp6x6() 43 A[24]=A[4]*temp; in db_CholeskyDecomp6x6() 44 A[30]=A[5]*temp; in db_CholeskyDecomp6x6() 48 temp=db_SafeReciprocal(d[1]); in db_CholeskyDecomp6x6() 49 A[13]=(A[8]-A[6]*A[12])*temp; in db_CholeskyDecomp6x6() 50 A[19]=(A[9]-A[6]*A[18])*temp; in db_CholeskyDecomp6x6() [all …]
|
D | db_utilities_linalg.h | 152 double temp; in db_Swap7() local 153 …temp= *A; *A++ = *B; *B++ =temp; temp= *A; *A++ = *B; *B++ =temp; temp= *A; *A++ = *B; *B++ … in db_Swap7() 154 …temp= *A; *A++ = *B; *B++ =temp; temp= *A; *A++ = *B; *B++ =temp; temp= *A; *A++ = *B; *B++ … in db_Swap7() 155 temp= *A; *A++ = *B; *B++ =temp; in db_Swap7() 164 double temp; in db_Swap9() local 165 …temp= *A; *A++ = *B; *B++ =temp; temp= *A; *A++ = *B; *B++ =temp; temp= *A; *A++ = *B; *B++ … in db_Swap9() 166 …temp= *A; *A++ = *B; *B++ =temp; temp= *A; *A++ = *B; *B++ =temp; temp= *A; *A++ = *B; *B++ … in db_Swap9() 167 …temp= *A; *A++ = *B; *B++ =temp; temp= *A; *A++ = *B; *B++ =temp; temp= *A; *A++ = *B; *B++ … in db_Swap9() 214 double temp; in db_OrthogonalizationSwap7() local 217 temp=ss[0]; ss[0]=ss[i]; ss[i]=temp; in db_OrthogonalizationSwap7() [all …]
|
D | db_utilities_geometry.h | 55 const double *temp; in db_PointCentroid2D() local 60 temp= *X++; in db_PointCentroid2D() 61 cx+=temp[0]; in db_PointCentroid2D() 62 cy+=temp[1]; in db_PointCentroid2D() 101 const double *temp; in db_PointCentroid3D() local 106 temp= *X++; in db_PointCentroid3D() 107 cx+=temp[0]; in db_PointCentroid3D() 108 cy+=temp[1]; in db_PointCentroid3D() 109 cz+=temp[2]; in db_PointCentroid3D()
|
D | db_utilities_indexing.cpp | 38 double temp; in db_LeanPartitionOnPivot() local 51 temp= *(s_point++); in db_LeanPartitionOnPivot() 52 if(temp<pivot) *(d_bottom++)=temp; in db_LeanPartitionOnPivot() 53 else if(temp>pivot) *(d_top--)=temp; in db_LeanPartitionOnPivot() 59 double db_LeanQuickSelect(const double *s,long nr_elements,long pos,double *temp) in db_LeanQuickSelect() argument 71 tempA=temp; in db_LeanQuickSelect() 72 tempB=temp+nr_elements; in db_LeanQuickSelect()
|
D | db_utilities_random.h | 77 int temp,temp2,i,j; in db_RandomSample() local 81 temp=db_RandomInt(r_seed,pool_size-1-i); in db_RandomSample() 85 if(s[j]<=temp) temp++; in db_RandomSample() 89 temp2=temp; in db_RandomSample() 90 temp=s[j]; in db_RandomSample() 94 s[i]=temp; in db_RandomSample()
|
/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
D | PduParser.java | 966 int temp = pduDataStream.read(); in parseUnsignedInt() local 967 if (temp == -1) { in parseUnsignedInt() 968 return temp; in parseUnsignedInt() 971 while((temp & 0x80) != 0) { in parseUnsignedInt() 973 result |= temp & 0x7F; in parseUnsignedInt() 974 temp = pduDataStream.read(); in parseUnsignedInt() 975 if (temp == -1) { in parseUnsignedInt() 976 return temp; in parseUnsignedInt() 981 result |= temp & 0x7F; in parseUnsignedInt() 1002 int temp = pduDataStream.read(); in parseValueLength() local [all …]
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
D | PduParser.java | 1000 int temp = pduDataStream.read(); in parseUnsignedInt() local 1001 if (temp == -1) { in parseUnsignedInt() 1002 return temp; in parseUnsignedInt() 1005 while ((temp & 0x80) != 0) { in parseUnsignedInt() 1007 result |= temp & 0x7F; in parseUnsignedInt() 1008 temp = pduDataStream.read(); in parseUnsignedInt() 1009 if (temp == -1) { in parseUnsignedInt() 1010 return temp; in parseUnsignedInt() 1015 result |= temp & 0x7F; in parseUnsignedInt() 1036 int temp = pduDataStream.read(); in parseValueLength() local [all …]
|
D | PduComposer.java | 265 long temp = longInt; in appendLongInteger() local 268 for (size = 0; (temp != 0) && (size < LONG_INTEGER_LENGTH_MAX); size++) { in appendLongInteger() 269 temp = (temp >>> 8); in appendLongInteger() 383 long temp = value >>> (i * 7); in appendUintvarInteger() local 384 temp = temp & 0x7f; in appendUintvarInteger() 386 append((int) ((temp | 0x80) & 0xff)); in appendUintvarInteger() 463 EncodedStringValue temp = null; in appendAddressType() local 467 temp = EncodedStringValue.copy(address); in appendAddressType() 470 temp.appendTextString(STRING_PHONE_NUMBER_ADDRESS_TYPE.getBytes()); in appendAddressType() 473 temp.appendTextString(STRING_IPV4_ADDRESS_TYPE.getBytes()); in appendAddressType() [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Delaunay.cpp | 132 EdgePointer temp, ans; in makeEdge() local 133 temp = allocEdge(); in makeEdge() 134 ans = temp; in makeEdge() 136 onext(temp) = ans; in makeEdge() 137 orig(temp) = origin; in makeEdge() 138 onext(++temp) = (EdgePointer) (ans + 3); in makeEdge() 139 onext(++temp) = (EdgePointer) (ans + 2); in makeEdge() 140 orig(temp) = destination; in makeEdge() 141 onext(++temp) = (EdgePointer) (ans + 1); in makeEdge() 148 EdgePointer alpha, beta, temp; in splice() local [all …]
|
/packages/apps/Car/Hvac/src/com/android/car/hvac/ |
D | HvacPolicy.java | 72 public float userToHardwareTemp(int temp) { in userToHardwareTemp() argument 74 return fahrenheitToCelsius(temp); in userToHardwareTemp() 78 return celsiusToFahrenheit(temp); in userToHardwareTemp() 81 return temp; in userToHardwareTemp() 84 public int hardwareToUserTemp(float temp) { in hardwareToUserTemp() argument 86 return (int) celsiusToFahrenheit(temp); in hardwareToUserTemp() 90 return (int) fahrenheitToCelsius(temp); in hardwareToUserTemp() 93 return (int) temp; in hardwareToUserTemp()
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | Location.java | 86 long temp; in hashCode() local 87 temp = Double.doubleToLongBits(mLatitude); in hashCode() 88 result = (int) (temp ^ (temp >>> 32)); in hashCode() 89 temp = Double.doubleToLongBits(mLongitude); in hashCode() 90 result = 31 * result + (int) (temp ^ (temp >>> 32)); in hashCode()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/survey/ |
D | SurveyMixinTest.java | 64 FragmentActivity temp = Robolectric.setupActivity(FragmentActivity.class); in onResume_triesRegisteringReceiverAndDownloadingWhenNoSurveyDetected() local 65 when(mFragment.getActivity()).thenReturn(temp); in onResume_triesRegisteringReceiverAndDownloadingWhenNoSurveyDetected() 83 FragmentActivity temp = Robolectric.setupActivity(FragmentActivity.class); in onResume_triesShowingSurveyWhenOneIsPresent() local 84 when(mFragment.getActivity()).thenReturn(temp); in onResume_triesShowingSurveyWhenOneIsPresent() 114 FragmentActivity temp = Robolectric.setupActivity(FragmentActivity.class); in onPause_removesReceiverIfPreviouslySet() local 115 when(mFragment.getActivity()).thenReturn(temp); in onPause_removesReceiverIfPreviouslySet() 117 LocalBroadcastManager manager = LocalBroadcastManager.getInstance(temp); in onPause_removesReceiverIfPreviouslySet() 135 FragmentActivity temp = Robolectric.setupActivity(FragmentActivity.class); in onPause_doesNothingWhenActivityOrReceiverNull() local 136 when(mFragment.getActivity()).thenReturn(temp); in onPause_doesNothingWhenActivityOrReceiverNull()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/helpers/ |
D | Util.java | 56 Metadata temp = new Metadata(); in bundleToMetadata() 57 temp.title = bundle.getString(MediaMetadata.METADATA_KEY_TITLE, "Not Provided"); in bundleToMetadata() 58 temp.artist = bundle.getString(MediaMetadata.METADATA_KEY_ARTIST, ""); in bundleToMetadata() 59 temp.album = bundle.getString(MediaMetadata.METADATA_KEY_ALBUM, ""); in bundleToMetadata() 60 temp.trackNum = "" + bundle.getLong(MediaMetadata.METADATA_KEY_TRACK_NUMBER, 1); in bundleToMetadata() 61 temp.numTracks = "" + bundle.getLong(MediaMetadata.METADATA_KEY_NUM_TRACKS, 1); in bundleToMetadata() 62 temp.genre = bundle.getString(MediaMetadata.METADATA_KEY_GENRE, ""); in bundleToMetadata() 63 temp.duration = "" + bundle.getLong(MediaMetadata.METADATA_KEY_DURATION, 0); in bundleToMetadata() 64 return temp; in bundleToMetadata()
|
/packages/apps/Gallery2/jni/filters/ |
D | geometry.c | 31 int temp = total - width; in flipVertical() local 33 memcpy(destination + temp - i, source + i, bytes_to_copy); in flipVertical() 46 int temp = 0; in flipHorizontal() local 48 temp = width + i - cpy_bytes; in flipHorizontal() 50 memcpy(destination + temp - j, source + i + j, cpy_bytes); in flipHorizontal() 60 uint8_t* temp = (uint8_t *) malloc(arr_len); in flip_fun() local 61 flipHorizontal(source, srcWidth, srcHeight, temp, dstWidth, dstHeight); in flip_fun() 62 flipVertical(temp, dstWidth, dstHeight, destination, dstWidth, dstHeight); in flip_fun() 63 free(temp); in flip_fun()
|
/packages/apps/Car/Hvac/src/com/android/car/hvac/controllers/ |
D | TemperatureController.java | 75 final int temp = ((Float) value.getValue()).intValue(); 76 mPassengerTempBarExpanded.setTemperature(temp); 77 mPassengerTempBarCollapsed.setTemperature(temp); 87 final int temp = ((Float) value.getValue()).intValue(); 88 mDriverTempBarCollapsed.setTemperature(temp); 89 mDriverTempBarExpanded.setTemperature(temp);
|