Commit 4631105f by kimvde Committed by microkatz

Rename startTransformation to start

Also update some Javadoc in Transformer

PiperOrigin-RevId: 507395956
parent c32794f0
...@@ -213,7 +213,7 @@ public final class TransformerActivity extends AppCompatActivity { ...@@ -213,7 +213,7 @@ public final class TransformerActivity extends AppCompatActivity {
Transformer transformer = createTransformer(bundle, filePath); Transformer transformer = createTransformer(bundle, filePath);
EditedMediaItem editedMediaItem = createEditedMediaItem(mediaItem, bundle); EditedMediaItem editedMediaItem = createEditedMediaItem(mediaItem, bundle);
transformationStopwatch.start(); transformationStopwatch.start();
transformer.startTransformation(editedMediaItem, filePath); transformer.start(editedMediaItem, filePath);
this.transformer = transformer; this.transformer = transformer;
} catch (PackageManager.NameNotFoundException e) { } catch (PackageManager.NameNotFoundException e) {
throw new IllegalStateException(e); throw new IllegalStateException(e);
......
...@@ -231,8 +231,7 @@ public class TransformerAndroidTestRunner { ...@@ -231,8 +231,7 @@ public class TransformerAndroidTestRunner {
* @param testId An identifier for the test. * @param testId An identifier for the test.
* @param editedMediaItem The {@link EditedMediaItem} to transform. * @param editedMediaItem The {@link EditedMediaItem} to transform.
* @return The {@link TransformationTestResult}. * @return The {@link TransformationTestResult}.
* @throws IllegalStateException See {@link Transformer#startTransformation(EditedMediaItem, * @throws IllegalStateException See {@link Transformer#start(EditedMediaItem, String)}.
* String)}.
* @throws InterruptedException If the thread is interrupted whilst waiting for transformer to * @throws InterruptedException If the thread is interrupted whilst waiting for transformer to
* complete. * complete.
* @throws IOException If an error occurs opening the output file for writing. * @throws IOException If an error occurs opening the output file for writing.
...@@ -313,8 +312,7 @@ public class TransformerAndroidTestRunner { ...@@ -313,8 +312,7 @@ public class TransformerAndroidTestRunner {
.runOnMainSync( .runOnMainSync(
() -> { () -> {
try { try {
testTransformer.startTransformation( testTransformer.start(editedMediaItem, outputVideoFile.getAbsolutePath());
editedMediaItem, outputVideoFile.getAbsolutePath());
// Catch all exceptions to report. Exceptions thrown here and not caught will NOT // Catch all exceptions to report. Exceptions thrown here and not caught will NOT
// propagate. // propagate.
} catch (Exception e) { } catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment