auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void clearInternal ( ) { java.util.Set < android.net.INetworkScoreCache > cachesToClear = getScoreCaches ( ) ; for ( android.net.INetworkScoreCache scoreCache : cachesToClear ) { try { scoreCache.clearScores ( ) ; } catch ( android.os.RemoteException e ) { if ( android.util.Log.isLoggable ( com.android.server.NetworkScoreService.TAG , Log.VERBOSE ) ) { android.util.Log.v ( com.android.server.NetworkScoreService.TAG , "Unable to clear scores" , e ) ; } } } }

Target:
public void accept ( android.net.INetworkScoreCache networkScoreCache ) { try { networkScoreCache.clearScores ( ) ; } catch ( android.os.RemoteException e ) { if ( android.util.Log.isLoggable ( com.android.server.NetworkScoreService.TAG , Log.VERBOSE ) ) { android.util.Log.v ( com.android.server.NetworkScoreService.TAG , "Unable to clear scores" , e ) ; } } }
Source:
public com.android.sched.vfs.InputVFile getInputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NotFileOrDirectoryException { java.io.File file = new java.io.File ( dir , path.getPathAsString ( java.io.File.separatorChar ) ) ; if ( ! ( file.isFile ( ) ) ) { throw new com.android.sched.util.file.NotFileOrDirectoryException ( new com.android.sched.util.location.FileLocation ( file ) ) ; } return new com.android.sched.vfs.direct.DirectFile ( file ) ; }

Target:
public com.android.sched.vfs.InputVFile getInputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NotFileOrDirectoryException { java.io.File file = new java.io.File ( dir , path.getPathAsString ( java.io.File.separatorChar ) ) ; if ( ! ( file.isFile ( ) ) ) { throw new com.android.sched.util.file.NotFileOrDirectoryException ( new com.android.sched.util.location.FileLocation ( file ) ) ; } return new com.android.sched.vfs.direct.DirectFile ( file , vfsRoot ) ; }
Source:
private static java.lang.String getCurrentHash ( byte [ ] content ) { if ( content == null ) { return "0" ; } try { java.security.MessageDigest dgst = java.security.MessageDigest.getInstance ( "SHA512" ) ; byte [ ] fingerprint = dgst.digest ( content ) ; return com.android.server.updates.IntegralToString.bytesToHexString ( fingerprint , false ) ; } catch ( java.security.NoSuchAlgorithmException e ) { throw new java.lang.AssertionError ( e ) ; } }

Target:
private static java.lang.String getCurrentHash ( byte [ ] content ) { if ( content == null ) { return "0" ; } try { java.security.MessageDigest dgst = java.security.MessageDigest.getInstance ( "SHA512" ) ; byte [ ] fingerprint = dgst.digest ( content ) ; return com.android.internal.util.HexDump.toHexString ( fingerprint , false ) ; } catch ( java.security.NoSuchAlgorithmException e ) { throw new java.lang.AssertionError ( e ) ; } }
Source:
public void writeTo ( java.io.OutputStream out , java.io.Writer humanOut , boolean verbose ) throws java.io.IOException { boolean annotate = humanOut != null ; com.android.dx.util.ByteArrayAnnotatedOutput result = toDex0 ( annotate , verbose ) ; if ( out != null ) { out.write ( result.getArray ( ) ) ; } if ( annotate ) { result.writeAnnotationsTo ( humanOut ) ; } }

Target:
public void writeTo ( java.io.OutputStream out , com.android.dx.dex.file.DexFile.Storage storage , java.io.Writer humanOut , boolean verbose ) throws java.io.IOException { boolean annotate = humanOut != null ; com.android.dx.util.ByteArrayAnnotatedOutput result = toDex0 ( annotate , verbose , storage ) ; if ( out != null ) { out.write ( result.getArray ( ) ) ; } if ( annotate ) { result.writeAnnotationsTo ( humanOut ) ; } }
Source:
private static com.android.compatibility.common.util.IInvocationResult findResult ( java.io.File resultsDir , java.lang.Integer sessionId , java.lang.Boolean useChecksum ) throws java.io.FileNotFoundException { if ( sessionId < 0 ) { throw new java.lang.IllegalArgumentException ( java.lang.String.format ( "Invalid session id [%d] " , sessionId ) ) ; } java.util.List < com.android.compatibility.common.util.IInvocationResult > results = com.android.compatibility.common.util.ResultHandler.getResults ( resultsDir , useChecksum ) ; if ( ( results == null ) || ( sessionId >= ( results.size ( ) ) ) ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "Could not find session [%d]" , sessionId ) ) ; } return results.get ( sessionId ) ; }

Target:
private static com.android.compatibility.common.util.IInvocationResult findResult ( java.io.File resultsDir , java.lang.Integer sessionId , java.lang.Boolean useChecksum ) throws java.io.FileNotFoundException { if ( sessionId < 0 ) { throw new java.lang.IllegalArgumentException ( java.lang.String.format ( "Invalid session id [%d] " , sessionId ) ) ; } java.io.File resultDir = com.android.compatibility.common.util.ResultHandler.getResultDirectory ( resultsDir , sessionId ) ; com.android.compatibility.common.util.IInvocationResult result = com.android.compatibility.common.util.ResultHandler.getResultFromDir ( resultDir , useChecksum ) ; if ( result == null ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "Could not find session [%d]" , sessionId ) ) ; } return result ; }
Source:
private static java.lang.invoke.MethodHandle zero ( sun.invoke.util.Wrapper btw , java.lang.Class < ? > rtype ) { int pos = btw.ordinal ( ) ; java.lang.invoke.MethodHandle zero = java.lang.invoke.MethodHandles.ZERO_MHS [ pos ] ; if ( zero == null ) { zero = java.lang.invoke.MethodHandles.setCachedMethodHandle ( java.lang.invoke.MethodHandles.ZERO_MHS , pos , java.lang.invoke.MethodHandles.makeZero ( btw.primitiveType ( ) ) ) ; } if ( ( zero.type ( ) . returnType ( ) ) == rtype ) return zero ; assert btw == ( sun.invoke.util.Wrapper.OBJECT ) ; return java.lang.invoke.MethodHandles.makeZero ( rtype ) ; }

Target:
public static void arrayElementSetter ( long [ ] array , int i , long val ) { array [ i ] = val ; }
Source:
public void setIsRttCall ( boolean shouldBeRtt ) { boolean areStreamsInitialized = ( ( mInCallToConnectionServiceStreams ) != null ) && ( ( mConnectionServiceToInCallStreams ) != null ) ; if ( shouldBeRtt && ( ! areStreamsInitialized ) ) { try { mInCallToConnectionServiceStreams = android.os.ParcelFileDescriptor.createReliablePipe ( ) ; mConnectionServiceToInCallStreams = android.os.ParcelFileDescriptor.createReliablePipe ( ) ; } catch ( java.io.IOException e ) { android.telecom.Log.e ( this , e , "Failed to create pipes for RTT call." ) ; } } else if ( ( ! shouldBeRtt ) && areStreamsInitialized ) { closeRttPipes ( ) ; mInCallToConnectionServiceStreams = null ; mConnectionServiceToInCallStreams = null ; } }

Target:
public void setRttStreams ( boolean shouldBeRtt ) { boolean areStreamsInitialized = ( ( mInCallToConnectionServiceStreams ) != null ) && ( ( mConnectionServiceToInCallStreams ) != null ) ; if ( shouldBeRtt && ( ! areStreamsInitialized ) ) { try { mInCallToConnectionServiceStreams = android.os.ParcelFileDescriptor.createReliablePipe ( ) ; mConnectionServiceToInCallStreams = android.os.ParcelFileDescriptor.createReliablePipe ( ) ; } catch ( java.io.IOException e ) { android.telecom.Log.e ( this , e , "Failed to create pipes for RTT call." ) ; } } else if ( ( ! shouldBeRtt ) && areStreamsInitialized ) { closeRttPipes ( ) ; mInCallToConnectionServiceStreams = null ; mConnectionServiceToInCallStreams = null ; } }
Source:
private com.android.ddmlib.RawImage getDeviceImage ( ) { try { return mDevice.getScreenshot ( ) ; } catch ( java.io.IOException ioe ) { com.android.ddmlib.Log.w ( "ddms" , ( "Unable to get frame buffer: " + ( ioe.getMessage ( ) ) ) ) ; return null ; } }

Target:
private com.android.ddmlib.RawImage getDeviceImage ( ) { try { return mDevice.getScreenshot ( ) ; } catch ( java.io.IOException ioe ) { com.android.ddmlib.Log.w ( "ddms" , ( "Unable to get frame buffer: " + ( ioe.getMessage ( ) ) ) ) ; return null ; } catch ( com.android.ddmlib.TimeoutException e ) { com.android.ddmlib.Log.w ( "ddms" , "Unable to get frame buffer: timeout " ) ; return null ; } catch ( com.android.ddmlib.AdbCommandRejectedException e ) { com.android.ddmlib.Log.w ( "ddms" , ( "Unable to get frame buffer: " + ( e.getMessage ( ) ) ) ) ; return null ; } }
Source:
public int hashCode ( ) { int result = mBuildConfigFields.hashCode ( ) ; result = ( 31 * result ) + ( mProguardFiles.hashCode ( ) ) ; result = ( 31 * result ) + ( mConsumerProguardFiles.hashCode ( ) ) ; return result ; }

Target:
public int hashCode ( ) { int result = mBuildConfigFields.hashCode ( ) ; result = ( 31 * result ) + ( mResValues.hashCode ( ) ) ; result = ( 31 * result ) + ( mProguardFiles.hashCode ( ) ) ; result = ( 31 * result ) + ( mConsumerProguardFiles.hashCode ( ) ) ; return result ; }
Source:
public < T > T [ ] toArray ( T [ ] other ) { if ( ( other.length ) < ( size ) ) { other = com.google.common.collect.ObjectArrays.newArray ( other , size ) ; } else if ( ( other.length ) > ( size ) ) { other [ size ] = null ; } java.lang.System.arraycopy ( array , offset , other , 0 , size ) ; return other ; }

Target:
int copyIntoArray ( java.lang.Object [ ] dst , int dstOff ) { java.lang.System.arraycopy ( array , offset , dst , dstOff , size ) ; return dstOff + ( size ) ; }
Source:
public final byte [ ] update ( byte [ ] input ) { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( input == null ) { throw new java.lang.IllegalArgumentException ( "input == null" ) ; } if ( ( input.length ) == 0 ) { return null ; } return spiImpl.engineUpdate ( input , 0 , input.length ) ; }

Target:
public final byte [ ] update ( byte [ ] input ) { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( input == null ) { throw new java.lang.IllegalArgumentException ( "input == null" ) ; } if ( ( input.length ) == 0 ) { return null ; } return getSpi ( ) . engineUpdate ( input , 0 , input.length ) ; }
Source:
public static int runSmaliTest ( java.lang.String name , boolean input ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } try { java.lang.Class < ? > c = java.lang.Class.forName ( "SmaliTests" ) ; java.lang.reflect.Method m = c.getMethod ( name , new java.lang.Class [ ] { boolean . class } ) ; return ( ( java.lang.Integer ) ( m.invoke ( null , input ) ) ) ; } catch ( java.lang.Exception ex ) { throw new java.lang.Error ( ex ) ; } }

Target:
public static int $noinline$runSmaliTest ( java.lang.String name , boolean input ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } try { java.lang.Class < ? > c = java.lang.Class.forName ( "SmaliTests" ) ; java.lang.reflect.Method m = c.getMethod ( name , new java.lang.Class [ ] { boolean . class } ) ; return ( ( java.lang.Integer ) ( m.invoke ( null , input ) ) ) ; } catch ( java.lang.Exception ex ) { throw new java.lang.Error ( ex ) ; } }
Source:
public void testMultipleSdk ( ) throws java.lang.Exception { assertEquals ( ( "AndroidManifest.xml:8: Error: There should only be a single <uses-sdk> element in the manifest: merge these together [MultipleUsesSdk]\n" + ( ( ( ( ( ( ( ( ( ( ( " <uses-sdk android:targetSdkVersion=\"14\" />\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + " AndroidManifest.xml:7: Also appears here\n" ) + " AndroidManifest.xml:9: Also appears here\n" ) + "AndroidManifest.xml:7: Warning: <uses-sdk> tag should specify a target API level (the highest verified version; when running on later versions, compatibility behaviors may be enabled) with android:targetSdkVersion=\"?\" [UsesMinSdkAttributes]\n" ) + " <uses-sdk android:minSdkVersion=\"5\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "AndroidManifest.xml:9: Warning: <uses-sdk> tag should specify a minimum API level with android:minSdkVersion=\"?\" [UsesMinSdkAttributes]\n" ) + " <uses-sdk android:maxSdkVersion=\"15\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 2 warnings\n" ) + "" ) ) , lintProject ( "multiplesdk.xml=>AndroidManifest.xml" , "res/values/strings.xml" ) ) ; }

Target:
public void testMultipleSdk ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( ManifestOrderDetector.MULTIPLE_USES_SDK ) ; assertEquals ( ( "AndroidManifest.xml:8: Error: There should only be a single <uses-sdk> element in the manifest: merge these together [MultipleUsesSdk]\n" + ( ( ( ( " <uses-sdk android:targetSdkVersion=\"14\" />\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + " AndroidManifest.xml:7: Also appears here\n" ) + " AndroidManifest.xml:9: Also appears here\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "multiplesdk.xml=>AndroidManifest.xml" , "res/values/strings.xml" ) ) ; }
Source:
public android.telephony.euicc.EuiccInfo getEuiccInfo ( ) { if ( ! ( isEnabled ( ) ) ) { return null ; } try { return android.telephony.euicc.EuiccManager.getIEuiccController ( ) . getEuiccInfo ( ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void getDefaultDownloadableSubscriptionList ( android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { getIEuiccController ( ) . getDefaultDownloadableSubscriptionList ( mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public android.content.res.Configuration updateOrientationFromAppTokens ( android.content.res.Configuration currentConfig , android.os.IBinder freezeThisOneIfNeeded ) { if ( ! ( checkCallingPermission ( android.Manifest.permission.MANAGE_APP_TOKENS , "updateOrientationFromAppTokens()" ) ) ) { throw new java.lang.SecurityException ( "Requires MANAGE_APP_TOKENS permission" ) ; } android.content.res.Configuration config ; long ident = android.os.Binder.clearCallingIdentity ( ) ; config = updateOrientationFromAppTokensUnchecked ( currentConfig , freezeThisOneIfNeeded ) ; android.os.Binder.restoreCallingIdentity ( ident ) ; return config ; }

Target:
boolean updateOrientationFromAppTokensLocked ( ) { if ( mDisplayFrozen ) { return false ; } boolean changed = false ; long ident = android.os.Binder.clearCallingIdentity ( ) ; try { int req = computeForcedAppOrientationLocked ( ) ; if ( req != ( mForcedAppOrientation ) ) { mForcedAppOrientation = req ; mPolicy.setCurrentOrientationLw ( req ) ; if ( setRotationUncheckedLocked ( WindowManagerPolicy.USE_LAST_ROTATION , ( ( mLastRotationFlags ) | ( android.view.Surface.FLAGS_ORIENTATION_ANIMATION_DISABLE ) ) ) ) { changed = true ; } } return changed ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } }
Source:
public java.lang.Object [ ] getChildren ( java.lang.Object parentElement ) { if ( parentElement instanceof com.android.resources.ResourceType ) { return mResources.getResources ( ( ( com.android.resources.ResourceType ) ( parentElement ) ) ) ; } else if ( ( mFullLevels ) && ( parentElement instanceof com.android.ide.eclipse.adt.internal.resources.manager.ConfigurableResourceItem ) ) { return ( ( com.android.ide.eclipse.adt.internal.resources.manager.ConfigurableResourceItem ) ( parentElement ) ) . getSourceFileArray ( ) ; } return null ; }

Target:
public java.lang.Object [ ] getChildren ( java.lang.Object parentElement ) { if ( parentElement instanceof com.android.resources.ResourceType ) { java.lang.Object [ ] array = mResources.getResourceItemsOfType ( ( ( com.android.resources.ResourceType ) ( parentElement ) ) ) . toArray ( ) ; java.util.Arrays.sort ( array ) ; return array ; } else if ( ( mFullLevels ) && ( parentElement instanceof com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem ) ) { return ( ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem ) ( parentElement ) ) . getSourceFileArray ( ) ; } return null ; }
Source:
protected void computeResult ( ) { java.lang.Object [ ] elements = getSelectedElements ( ) ; if ( ( ( elements.length ) == 1 ) && ( ( elements [ 0 ] ) instanceof com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem ) ) { com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem item = ( ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem ) ( elements [ 0 ] ) ) ; mCurrentResource = item.getXmlString ( mResourceType , mSystemButton.getSelection ( ) ) ; if ( ( ( mInputValidator ) != null ) && ( ( mInputValidator.isValid ( mCurrentResource ) ) != null ) ) { mCurrentResource = null ; } } }

Target:
protected void computeResult ( ) { java.lang.Object [ ] elements = getSelectedElements ( ) ; if ( ( ( elements.length ) == 1 ) && ( ( elements [ 0 ] ) instanceof com.android.ide.common.resources.ResourceItem ) ) { com.android.ide.common.resources.ResourceItem item = ( ( com.android.ide.common.resources.ResourceItem ) ( elements [ 0 ] ) ) ; mCurrentResource = item.getXmlString ( mResourceType , mSystemButton.getSelection ( ) ) ; if ( ( ( mInputValidator ) != null ) && ( ( mInputValidator.isValid ( mCurrentResource ) ) != null ) ) { mCurrentResource = null ; } } }
Source:
public void reportConnectionEventPropagatesSuccessToLastMileLogger ( ) { final boolean verbosityToggle = false ; mWifiDiagnostics.startLogging ( verbosityToggle ) ; mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_SUCCEEDED ) ; org.mockito.Mockito.verify ( mLastMileLogger ) . reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_SUCCEEDED ) ; }

Target:
public void loggerFetchesRxFatesEvenIfFetchingTxFatesFails ( ) { final boolean verbosityToggle = true ; org.mockito.Mockito.when ( mWifiNative.getTxPktFates ( org.mockito.Mockito.anyObject ( ) ) ) . thenReturn ( false ) ; mWifiDiagnostics.startLogging ( verbosityToggle ) ; mWifiDiagnostics.reportConnectionEvent ( com.android.server.wifi.WifiDiagnosticsTest.FAKE_CONNECTION_ID , WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; org.mockito.Mockito.verify ( mWifiNative ) . getTxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; org.mockito.Mockito.verify ( mWifiNative ) . getRxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; }
Source:
private static < K , V > com.google.common.collect.MapDifference < K , V > mapDifference ( boolean areEqual , java.util.Map < K , V > onlyOnLeft , java.util.Map < K , V > onlyOnRight , java.util.Map < K , V > onBoth , java.util.Map < K , com.google.common.collect.MapDifference.ValueDifference < V > > differences ) { return new com.google.common.collect.Maps.MapDifferenceImpl < K , V > ( areEqual , java.util.Collections.unmodifiableMap ( onlyOnLeft ) , java.util.Collections.unmodifiableMap ( onlyOnRight ) , java.util.Collections.unmodifiableMap ( onBoth ) , java.util.Collections.unmodifiableMap ( differences ) ) ; }

Target:
static < K , V > java.util.Iterator < V > valueIterator ( java.util.Iterator < java.util.Map.Entry < K , V > > entryIterator ) { return com.google.common.collect.Iterators.transform ( entryIterator , com.google.common.collect.Maps.< V > valueFunction ( ) ) ; }
Source:
public void focusChanged ( ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { synchronized ( this ) { loadImage ( ) ; selectedNode = model.getSelected ( ) ; } } } ) ; doRedraw ( ) ; }

Target:
public void imageChanged ( ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { synchronized ( this ) { loadImage ( ) ; } } } ) ; doRedraw ( ) ; }
Source:
public java.lang.Object [ ] getChildren ( java.lang.Object parentElement ) { if ( parentElement instanceof com.android.resources.ResourceType ) { java.lang.Object [ ] array = mResources.getResourceItemsOfType ( ( ( com.android.resources.ResourceType ) ( parentElement ) ) ) . toArray ( ) ; java.util.Arrays.sort ( array ) ; return array ; } else if ( ( mFullLevels ) && ( parentElement instanceof com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem ) ) { return ( ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem ) ( parentElement ) ) . getSourceFileArray ( ) ; } return null ; }

Target:
public java.lang.Object [ ] getChildren ( java.lang.Object parentElement ) { if ( parentElement instanceof com.android.resources.ResourceType ) { java.lang.Object [ ] array = mResources.getResourceItemsOfType ( ( ( com.android.resources.ResourceType ) ( parentElement ) ) ) . toArray ( ) ; java.util.Arrays.sort ( array ) ; return array ; } else if ( ( mFullLevels ) && ( parentElement instanceof com.android.ide.common.resources.ResourceItem ) ) { return ( ( com.android.ide.common.resources.ResourceItem ) ( parentElement ) ) . getSourceFileArray ( ) ; } return null ; }
Source:
public static int $noinline$runSmaliTest ( java.lang.String name , boolean input ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } try { java.lang.Class < ? > c = java.lang.Class.forName ( "SmaliTests" ) ; java.lang.reflect.Method m = c.getMethod ( name , boolean . class ) ; return ( ( java.lang.Integer ) ( m.invoke ( null , input ) ) ) ; } catch ( java.lang.Exception ex ) { throw new java.lang.Error ( ex ) ; } }

Target:
public static boolean $noinline$runSmaliTestBoolean ( java.lang.String name , boolean input ) { try { java.lang.Class < ? > c = java.lang.Class.forName ( "SmaliTests" ) ; java.lang.reflect.Method m = c.getMethod ( name , boolean . class ) ; return ( ( java.lang.Boolean ) ( m.invoke ( null , input ) ) ) ; } catch ( java.lang.Exception ex ) { throw new java.lang.Error ( ex ) ; } }
Source:
public com.android.sched.vfs.InputVFile getFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException { try { com.android.sched.vfs.VPath clonedPath = typePath.clone ( ) ; clonedPath.addSuffix ( fileType.getFileExtension ( ) ) ; return baseVFS.getRootInputVDir ( ) . getInputVFile ( clonedPath ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }

Target:
public com.android.sched.vfs.InputVFile getFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException { try { com.android.sched.vfs.VPath clonedPath = typePath.clone ( ) ; clonedPath.addSuffix ( fileType.getFileExtension ( ) ) ; return inputVFS.getRootInputVDir ( ) . getInputVFile ( clonedPath ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }
Source:
public boolean onOptionsItemSelected ( android.view.MenuItem item ) { switch ( item.getItemId ( ) ) { case com.android.cellbroadcastreceiver.CellBroadcastListActivity.MENU_DELETE_ALL : confirmDeleteThread ( ( - 1 ) ) ; break ; case com.android.cellbroadcastreceiver.CellBroadcastListActivity.MENU_PREFERENCES : android.content.Intent intent = new android.content.Intent ( this , com.android.cellbroadcastreceiver.CellBroadcastSettings.class ) ; startActivityIfNeeded ( intent , ( - 1 ) ) ; break ; default : return true ; } return false ; }

Target:
public android.content.Loader < android.database.Cursor > onCreateLoader ( int id , android.os.Bundle args ) { return new android.content.CursorLoader ( getActivity ( ) , CellBroadcastContentProvider.CONTENT_URI , Telephony.CellBroadcasts.QUERY_COLUMNS , null , null , ( ( Telephony.CellBroadcasts.DELIVERY_TIME ) + " DESC" ) ) ; }
Source:
public void testAbiOnlyWithUniversalMatch ( ) { com.android.build.SplitOutput match ; java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( ( match = com.android.ide.common.build.SplitOutputMatcherTest.getUniversalOutput ( 1 ) ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "foo" , 2 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "bar" , 3 ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "zzz" ) ; assertEquals ( match , result ) ; }

Target:
public void testMultiFilterWithNoMatch ( ) { java.util.List < com.android.build.VariantOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 320 , "zzz" , 1 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 160 , "bar" , 2 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 320 , "foo" , 3 ) ) ; java.util.List < java.io.File > result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "zzz" ) ; assertEquals ( 0 , result.size ( ) ) ; }
Source:
public static java.util.Collection < com.android.jack.ir.ast.JAnnotationType > getAnnotationTypes ( @ javax.annotation.Nonnull java.util.Collection < com.android.jack.ir.ast.JAnnotation > annotations ) { return com.google.common.collect.Collections2.transform ( annotations , new com.google.common.base.Function < com.android.jack.ir.ast.JAnnotation , com.android.jack.ir.ast.JAnnotationType > ( ) { @ java.lang.Override public com.android.jack.ir.ast.JAnnotationType apply ( com.android.jack.ir.ast.JAnnotation annotation ) { return annotation.getType ( ) ; } } ) ; }

Target:
public static java.util.Set < com.android.jack.ir.ast.JAnnotationType > getAnnotationTypes ( @ javax.annotation.Nonnull java.util.Collection < com.android.jack.ir.ast.JAnnotation > annotations ) { java.util.Set < com.android.jack.ir.ast.JAnnotationType > annotationTypes = new java.util.HashSet < com.android.jack.ir.ast.JAnnotationType > ( ) ; for ( com.android.jack.ir.ast.JAnnotation annotation : annotations ) { annotationTypes.add ( annotation.getType ( ) ) ; } return annotationTypes ; }
Source:
private java.lang.CharSequence getDialerTos ( ) { if ( ! ( isVoicemailTranscriptionEnabled ( ) ) ) { return "" ; } if ( isVvm3 ( ) ) { return context.getString ( R.string.dialer_terms_and_conditions_for_verizon_1_0 ) ; } else { java.lang.String learnMoreText = context.getString ( R.string.dialer_terms_and_conditions_learn_more ) ; return context.getString ( R.string.dialer_terms_and_conditions_1_0 , learnMoreText ) ; } }

Target:
private java.lang.CharSequence getNewUserDialerTos ( ) { if ( ! ( isVoicemailTranscriptionEnabled ( ) ) ) { return "" ; } java.lang.String learnMoreText = context.getString ( R.string.dialer_terms_and_conditions_learn_more ) ; return context.getString ( R.string.dialer_terms_and_conditions_1_0 , learnMoreText ) ; }
Source:
private void verifyEnumType ( com.google.protobuf.Descriptors.FieldDescriptor field , java.lang.Object value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } if ( ! ( value instanceof com.google.protobuf.Descriptors.EnumValueDescriptor ) ) { throw new java.lang.IllegalArgumentException ( "DynamicMessage should use EnumValueDescriptor to set Enum Value." ) ; } if ( ( field.getEnumType ( ) ) != ( ( ( com.google.protobuf.Descriptors.EnumValueDescriptor ) ( value ) ) . getType ( ) ) ) { throw new java.lang.IllegalArgumentException ( "EnumValueDescriptor doesn't much Enum Field." ) ; } }

Target:
private void ensureSingularEnumValueDescriptor ( com.google.protobuf.Descriptors.FieldDescriptor field , java.lang.Object value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } if ( ! ( value instanceof com.google.protobuf.Descriptors.EnumValueDescriptor ) ) { throw new java.lang.IllegalArgumentException ( "DynamicMessage should use EnumValueDescriptor to set Enum Value." ) ; } if ( ( field.getEnumType ( ) ) != ( ( ( com.google.protobuf.Descriptors.EnumValueDescriptor ) ( value ) ) . getType ( ) ) ) { throw new java.lang.IllegalArgumentException ( "EnumValueDescriptor doesn't much Enum Field." ) ; } }
Source:
private java.lang.IllegalStateException generateBuildException ( java.lang.String err ) { java.lang.String device = "" ; if ( ( mManufacturer ) != null ) { device = ( mManufacturer ) + " " ; } if ( ( mName ) != null ) { device += mName ; } else { device = ( "Unknown " + device ) + "Device" ; } return new java.lang.IllegalStateException ( ( ( ( "Error building " + device ) + ": " ) + err ) ) ; }

Target:
private java.lang.IllegalStateException generateBuildException ( java.lang.String err ) { java.lang.String device = "" ; if ( ( mManufacturer ) != null ) { device = ( mManufacturer ) + ' ' ; } if ( ( mName ) != null ) { device += mName ; } else { device = ( "Unknown " + device ) + "Device" ; } return new java.lang.IllegalStateException ( ( ( ( "Error building " + device ) + ": " ) + err ) ) ; }
Source:
public void TestArabicLongStyle ( ) { if ( logKnownIssue ( "12181" , "No support for negative numbers in CDF" ) ) { return ; } com.ibm.icu.text.NumberFormat cdf = com.ibm.icu.text.CompactDecimalFormat.getInstance ( new java.util.Locale ( "ar" ) , CompactStyle.LONG ) ; assertEquals ( "Arabic Long" , "‏-٥٫٣ ألف" , cdf.format ( ( - 5300 ) ) ) ; }

Target:
public void TestArabicLongStyle ( ) { com.ibm.icu.text.NumberFormat cdf = com.ibm.icu.text.CompactDecimalFormat.getInstance ( new java.util.Locale ( "ar" ) , CompactStyle.LONG ) ; assertEquals ( "Arabic Long" , "؜-٥٫٣ ألف" , cdf.format ( ( - 5300 ) ) ) ; }
Source:
public final float float_literal ( ) throws org.jf.smali.RecognitionException { float value = 0.0F ; org.antlr.runtime.tree.CommonTree FLOAT_LITERAL208 = null ; try { { FLOAT_LITERAL208 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.FLOAT_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_FLOAT_LITERAL_in_float_literal3498 ) ) ) ; value = org.jf.smali.LiteralTools.parseFloat ( ( FLOAT_LITERAL208 != null ? FLOAT_LITERAL208.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final float float_literal ( ) throws org.jf.smali.RecognitionException { float value = 0.0F ; org.antlr.runtime.tree.CommonTree FLOAT_LITERAL213 = null ; try { { FLOAT_LITERAL213 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.FLOAT_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_FLOAT_LITERAL_in_float_literal3555 ) ) ) ; value = org.jf.smali.LiteralTools.parseFloat ( ( FLOAT_LITERAL213 != null ? FLOAT_LITERAL213.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
private final void dumpApplicationMemoryUsageHeader ( java.io.PrintWriter pw , long uptime , long realtime , boolean isCheckinRequest , boolean isCompact ) { if ( isCheckinRequest || isCompact ) { pw.print ( "time," ) ; pw.print ( uptime ) ; pw.print ( "," ) ; pw.println ( realtime ) ; } else { pw.println ( "Applications Memory Usage (kB):" ) ; pw.println ( ( ( ( "Uptime: " + uptime ) + " Realtime: " ) + realtime ) ) ; } }

Target:
private final void dumpApplicationMemoryUsageHeader ( java.io.PrintWriter pw , long uptime , long realtime , boolean isCheckinRequest , boolean isCompact ) { if ( isCompact ) { pw.print ( "version," ) ; pw.println ( com.android.server.am.ActivityManagerService.MEMINFO_COMPACT_VERSION ) ; } if ( isCheckinRequest || isCompact ) { pw.print ( "time," ) ; pw.print ( uptime ) ; pw.print ( "," ) ; pw.println ( realtime ) ; } else { pw.println ( "Applications Memory Usage (in Kilobytes):" ) ; pw.println ( ( ( ( "Uptime: " + uptime ) + " Realtime: " ) + realtime ) ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; setActivityInitialTouchMode ( false ) ; mActivity = getActivity ( ) ; com.android.rs.imagejb.ImageProcessingTestRunner mRunner = ( ( com.android.rs.imagejb.ImageProcessingTestRunner ) ( getInstrumentation ( ) ) ) ; mIteration = mRunner.mIteration ; assertTrue ( "please enter a valid iteration value" , ( ( mIteration ) > 0 ) ) ; }

Target:
protected void prepareTest ( ) { mActivity = getActivity ( ) ; mActivity.prepareInstrumentationTest ( ) ; }
Source:
public static void setUp ( ) { try { java.lang.reflect.Field field = sun.misc.Unsafe.class . getDeclaredField ( "THE_ONE" ) ; field.setAccessible ( true ) ; Main.UNSAFE = ( ( sun.misc.Unsafe ) ( field.get ( null ) ) ) ; } catch ( java.lang.NoSuchFieldException ex ) { throw new java.lang.RuntimeException ( ex ) ; } catch ( java.lang.IllegalAccessException ex ) { throw new java.lang.RuntimeException ( ex ) ; } }

Target:
public static void setUp ( ) throws java.lang.Exception { java.lang.reflect.Field field = null ; try { field = sun.misc.Unsafe.class . getDeclaredField ( "THE_ONE" ) ; } catch ( java.lang.NoSuchFieldException e1 ) { try { field = sun.misc.Unsafe.class . getDeclaredField ( "theUnsafe" ) ; } catch ( java.lang.NoSuchFieldException e2 ) { throw new java.lang.RuntimeException ( "Failed to find THE_ONE or theUnsafe" ) ; } } field.setAccessible ( true ) ; Main.UNSAFE = ( ( sun.misc.Unsafe ) ( field.get ( null ) ) ) ; }
Source:
private void mergeClassDefs ( ) { com.android.dx.merge.SortableType [ ] types = getSortedTypes ( ) ; contentsOut.classDefs.off = idsDefsOut.getPosition ( ) ; contentsOut.classDefs.size = types.length ; for ( com.android.dx.merge.SortableType type : types ) { com.android.dex.Dex in = type.getDex ( ) ; transformClassDef ( in , type.getClassDef ( ) , type.getIndexMap ( ) ) ; } }

Target:
private void mergeClassDefs ( ) { com.android.dx.merge.SortableType [ ] types = getSortedTypes ( ) ; contentsOut.classDefs.off = idsDefsOut.getPosition ( ) ; contentsOut.classDefs.size = types.length ; for ( com.android.dx.merge.SortableType type : types ) { com.android.dex.Dex in = type.getDex ( ) ; com.android.dx.merge.IndexMap indexMap = ( in == ( dexA ) ) ? aIndexMap : bIndexMap ; transformClassDef ( in , type.getClassDef ( ) , indexMap ) ; } }
Source:
private static java.util.List < com.android.builder.resources.Resource > getParsedResources ( ) throws java.io.FileNotFoundException { if ( ( com.android.builder.resources.ValueResourceParserTest.sResources ) == null ) { java.io.File root = getRoot ( "baseResourceSet" ) ; java.io.File values = new java.io.File ( root , "values" ) ; java.io.File valuesXml = new java.io.File ( values , "values.xml" ) ; com.android.builder.resources.ValueResourceParser parser = new com.android.builder.resources.ValueResourceParser ( valuesXml ) ; com.android.builder.resources.ValueResourceParserTest.sResources = parser.parseFile ( ) ; } return com.android.builder.resources.ValueResourceParserTest.sResources ; }

Target:
private static java.util.List < com.android.builder.resources.Resource > getParsedResources ( ) throws java.io.IOException { if ( ( com.android.builder.resources.ValueResourceParserTest.sResources ) == null ) { java.io.File root = getRoot ( "baseResourceSet" ) ; java.io.File values = new java.io.File ( root , "values" ) ; java.io.File valuesXml = new java.io.File ( values , "values.xml" ) ; com.android.builder.resources.ValueResourceParser parser = new com.android.builder.resources.ValueResourceParser ( valuesXml ) ; com.android.builder.resources.ValueResourceParserTest.sResources = parser.parseFile ( ) ; new com.android.builder.resources.ResourceFile ( valuesXml , com.android.builder.resources.ValueResourceParserTest.sResources , "" ) ; } return com.android.builder.resources.ValueResourceParserTest.sResources ; }
Source:
void createImpl ( ) throws java.net.SocketException { if ( ( impl ) == null ) { if ( ( java.net.DatagramSocket.factory ) != null ) { impl = java.net.DatagramSocket.factory.createDatagramSocketImpl ( ) ; checkOldImpl ( ) ; } else { boolean isMulticast = ( ( this ) instanceof java.net.MulticastSocket ) ? true : false ; impl = java.net.DefaultDatagramSocketImplFactory.createDatagramSocketImpl ( isMulticast ) ; checkOldImpl ( ) ; } } impl.create ( ) ; created = true ; }

Target:
void createImpl ( ) throws java.net.SocketException { if ( ( impl ) == null ) { if ( ( java.net.DatagramSocket.factory ) != null ) { impl = java.net.DatagramSocket.factory.createDatagramSocketImpl ( ) ; checkOldImpl ( ) ; } else { boolean isMulticast = ( ( this ) instanceof java.net.MulticastSocket ) ? true : false ; impl = java.net.DefaultDatagramSocketImplFactory.createDatagramSocketImpl ( isMulticast ) ; checkOldImpl ( ) ; } } impl.create ( ) ; impl.setDatagramSocket ( this ) ; created = true ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < com.google.common.collect.ImmutableMap < com.android.dialer.DialerPhoneNumber , java.lang.Boolean > > batchCheckSpamStatus ( com.google.common.collect.ImmutableSet < com.android.dialer.DialerPhoneNumber > dialerPhoneNumbers ) { return backgroundExecutorService.submit ( ( ) -> { com.google.common.collect.ImmutableMap.Builder < com.android.dialer.DialerPhoneNumber , java.lang.Boolean > resultBuilder = new com.google.common.collect.ImmutableMap.Builder < > ( ) ; for ( com.android.dialer.DialerPhoneNumber dialerPhoneNumber : dialerPhoneNumbers ) { resultBuilder.put ( dialerPhoneNumber , false ) ; } return resultBuilder.build ( ) ; } ) ; }

Target:
public com.google.common.base.Optional < java.lang.Long > getTimestampMillis ( ) { return com.google.common.base.Optional.absent ( ) ; }
Source:
public static void setUpClass ( ) throws com.android.jack.IllegalOptionsException , com.android.sched.util.config.ConfigurationException { com.android.jack.Options options = new com.android.jack.Options ( ) ; com.android.sched.util.RunnableHooks hooks = new com.android.sched.util.RunnableHooks ( ) ; options.checkValidity ( hooks ) ; options.getConfigBuilder ( hooks ) . getCodecContext ( ) . setDebug ( ) ; com.android.sched.util.config.ThreadConfig.setConfig ( options.getConfig ( ) ) ; }

Target:
public static void setUpClass ( ) throws com.android.jack.IllegalOptionsException , com.android.sched.util.config.ConfigurationException { com.android.jack.Options options = new com.android.jack.Options ( ) ; com.android.jack.util.GraphUtilsTests.hooks = new com.android.sched.util.RunnableHooks ( ) ; options.checkValidity ( com.android.jack.util.GraphUtilsTests.hooks ) ; options.getConfigBuilder ( com.android.jack.util.GraphUtilsTests.hooks ) . getCodecContext ( ) . setDebug ( ) ; com.android.sched.util.config.ThreadConfig.setConfig ( options.getConfig ( ) ) ; }
Source:
public java.lang.String toString ( ) { try { java.lang.StringBuffer sb = new java.lang.StringBuffer ( ) ; sb.append ( java.lang.String.format ( "RA %s -> %s %ds " , IPv6AddresstoString ( android.net.apf.ApfFilter.IPV6_SRC_ADDR_OFFSET ) , IPv6AddresstoString ( android.net.apf.ApfFilter.IPV6_DEST_ADDR_OFFSET ) , android.net.apf.ApfFilter.uint16 ( mPacket.getShort ( android.net.apf.ApfFilter.Ra.ICMP6_RA_ROUTER_LIFETIME_OFFSET ) ) ) ) ; for ( int i : mPrefixOptionOffsets ) { prefixOptionToString ( sb , i ) ; } for ( int i : mRdnssOptionOffsets ) { rdnssOptionToString ( sb , i ) ; } return sb.toString ( ) ; } catch ( java.nio.BufferUnderflowException | java.lang.IndexOutOfBoundsException e ) { return "<Malformed RA>" ; } }

Target:
public java.lang.String toString ( ) { try { java.lang.StringBuffer sb = new java.lang.StringBuffer ( ) ; sb.append ( java.lang.String.format ( "RA %s -> %s %ds " , IPv6AddresstoString ( android.net.apf.ApfFilter.IPV6_SRC_ADDR_OFFSET ) , IPv6AddresstoString ( android.net.apf.ApfFilter.IPV6_DEST_ADDR_OFFSET ) , android.net.apf.ApfFilter.getUint16 ( mPacket , android.net.apf.ApfFilter.Ra.ICMP6_RA_ROUTER_LIFETIME_OFFSET ) ) ) ; for ( int i : mPrefixOptionOffsets ) { prefixOptionToString ( sb , i ) ; } for ( int i : mRdnssOptionOffsets ) { rdnssOptionToString ( sb , i ) ; } return sb.toString ( ) ; } catch ( java.nio.BufferUnderflowException | java.lang.IndexOutOfBoundsException e ) { return "<Malformed RA>" ; } }
Source:
public void testEmptyUri ( ) { com.android.server.telecom.ContactsAsyncHelper cah = new com.android.server.telecom.ContactsAsyncHelper ( mNullContentResolverAdapter ) ; try { cah.startObtainPhotoAsync ( com.android.server.telecom.tests.ContactsAsyncHelperTest.TOKEN , mContext , null , mListener , com.android.server.telecom.tests.ContactsAsyncHelperTest.COOKIE ) ; } catch ( java.lang.IllegalStateException e ) { } org.mockito.Mockito.verify ( mListener , org.mockito.Mockito.timeout ( com.android.server.telecom.tests.ContactsAsyncHelperTest.TEST_TIMEOUT ) . never ( ) ) . onImageLoadComplete ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.any ( android.graphics.drawable.Drawable.class ) , org.mockito.Matchers.any ( android.graphics.Bitmap.class ) , org.mockito.Matchers.anyObject ( ) ) ; }

Target:
public void testEmptyUri ( ) throws java.lang.Exception { com.android.server.telecom.ContactsAsyncHelper cah = new com.android.server.telecom.ContactsAsyncHelper ( mNullContentResolverAdapter ) ; try { cah.startObtainPhotoAsync ( com.android.server.telecom.tests.ContactsAsyncHelperTest.TOKEN , mContext , null , mListener , com.android.server.telecom.tests.ContactsAsyncHelperTest.COOKIE ) ; } catch ( java.lang.IllegalStateException e ) { } java.lang.Thread.sleep ( com.android.server.telecom.tests.ContactsAsyncHelperTest.TEST_TIMEOUT ) ; org.mockito.Mockito.verify ( mListener , org.mockito.Mockito.never ( ) ) . onImageLoadComplete ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.any ( android.graphics.drawable.Drawable.class ) , org.mockito.Matchers.any ( android.graphics.Bitmap.class ) , org.mockito.Matchers.anyObject ( ) ) ; }
Source:
public void testMissingRequiredBundleFile ( ) throws java.lang.Exception { libcore.tzdata.update2.ConfigBundle installedConfigBundle = createValidTzDataBundle ( "2030a" ) ; assertTrue ( install ( installedConfigBundle ) ) ; assertTzDataInstalled ( installedConfigBundle ) ; libcore.tzdata.update2.ConfigBundle incompleteUpdate = createValidTzDataBundleBuilder ( "2030b" ) . clearBionicTzData ( ) . buildUnvalidated ( ) ; assertFalse ( install ( incompleteUpdate ) ) ; assertTzDataInstalled ( installedConfigBundle ) ; }

Target:
public void testBadSystemFile ( ) throws java.lang.Exception { java.io.File doesNotExist = new java.io.File ( testSystemTzDataDir , "doesNotExist" ) ; libcore.tzdata.update2.TzDataBundleInstaller brokenSystemInstaller = new libcore.tzdata.update2.TzDataBundleInstaller ( "TzDataBundleInstallerTest" , doesNotExist , testInstallDir ) ; libcore.tzdata.update2.ConfigBundle tzData = createValidTzDataBundle ( libcore.tzdata.update2.TzDataBundleInstallerTest.NEW_RULES_VERSION ) ; assertFalse ( brokenSystemInstaller.install ( tzData.getBundleBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }
Source:
public void onGuidedActionClicked ( android.support.v17.leanback.widget.GuidedAction action ) { if ( ( action.getId ( ) ) == ( com.android.tv.dvr.ui.DvrAlreadyRecordedFragment.ACTION_RECORD_ANYWAY ) ) { getDvrManager ( ) . addSchedule ( mProgram ) ; } else if ( ( action.getId ( ) ) == ( com.android.tv.dvr.ui.DvrAlreadyRecordedFragment.ACTION_WATCH ) ) { com.android.tv.dvr.DvrUiHelper.startDetailsActivity ( getActivity ( ) , mDuplicate , null , false ) ; } dismissDialog ( ) ; }

Target:
public void onGuidedActionClicked ( android.support.v17.leanback.widget.GuidedAction action ) { if ( ( action.getId ( ) ) == ( com.android.tv.dvr.ui.DvrAlreadyRecordedFragment.ACTION_RECORD_ANYWAY ) ) { getDvrManager ( ) . addSchedule ( mProgram ) ; } else if ( ( action.getId ( ) ) == ( com.android.tv.dvr.ui.DvrAlreadyRecordedFragment.ACTION_WATCH ) ) { com.android.tv.dvr.ui.DvrUiHelper.startDetailsActivity ( getActivity ( ) , mDuplicate , null , false ) ; } dismissDialog ( ) ; }
Source:
private boolean handleMultipartyIncallSupplementaryService ( java.lang.String dialString ) throws com.android.internal.telephony.CallStateException { if ( ( dialString.length ( ) ) > 1 ) { return false ; } if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.util.Log.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "MmiCode 3: merge calls" ) ; try { conference ( ) ; } catch ( com.android.internal.telephony.CallStateException e ) { if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.util.Log.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "conference failed" , e ) ; notifySuppServiceFailed ( Phone.SuppService.CONFERENCE ) ; } return true ; }

Target:
private boolean handleMultipartyIncallSupplementaryService ( java.lang.String dialString ) throws com.android.internal.telephony.CallStateException { if ( ( dialString.length ( ) ) > 1 ) { return false ; } if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "MmiCode 3: merge calls" ) ; try { conference ( ) ; } catch ( com.android.internal.telephony.CallStateException e ) { if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "conference failed" , e ) ; notifySuppServiceFailed ( Phone.SuppService.CONFERENCE ) ; } return true ; }
Source:
private void testInterruptWritableChannel ( final java.nio.channels.WritableByteChannel channel ) throws java.lang.Exception { interruptMeLater ( ) ; try { while ( true ) { channel.write ( java.nio.ByteBuffer.allocate ( libcore.java.io.InterruptedStreamTest.BUFFER_SIZE ) ) ; } } catch ( java.nio.channels.ClosedByInterruptException expected ) { } }

Target:
private void testInterruptWritableChannel ( final java.nio.channels.WritableByteChannel channel ) throws java.lang.Exception { interruptMeLater ( ) ; try { while ( true ) { channel.write ( java.nio.ByteBuffer.allocate ( libcore.java.io.InterruptedStreamTest.BUFFER_SIZE ) ) ; } } catch ( java.nio.channels.ClosedByInterruptException expected ) { } catch ( java.nio.channels.ClosedChannelException expected ) { } }
Source:
public void deleteSeriesRecordings ( com.android.tv.dvr.SeriesRecording ... seriesRecordings ) { android.database.sqlite.SQLiteDatabase db = getWritableDatabase ( ) ; android.database.sqlite.SQLiteStatement statement = db.compileStatement ( com.android.tv.dvr.provider.DvrDatabaseHelper.SQL_DELETE_SERIES_RECORDINGS ) ; db.beginTransaction ( ) ; try { for ( com.android.tv.dvr.SeriesRecording r : seriesRecordings ) { statement.clearBindings ( ) ; statement.bindLong ( 1 , r.getId ( ) ) ; statement.execute ( ) ; } db.setTransactionSuccessful ( ) ; } finally { db.endTransaction ( ) ; } }

Target:
public void deleteSeriesRecordings ( com.android.tv.dvr.data.SeriesRecording ... seriesRecordings ) { android.database.sqlite.SQLiteDatabase db = getWritableDatabase ( ) ; android.database.sqlite.SQLiteStatement statement = db.compileStatement ( com.android.tv.dvr.provider.DvrDatabaseHelper.SQL_DELETE_SERIES_RECORDINGS ) ; db.beginTransaction ( ) ; try { for ( com.android.tv.dvr.data.SeriesRecording r : seriesRecordings ) { statement.clearBindings ( ) ; statement.bindLong ( 1 , r.getId ( ) ) ; statement.execute ( ) ; } db.setTransactionSuccessful ( ) ; } finally { db.endTransaction ( ) ; } }